Portability Libraries  2015.2.0.0
Common Methods and Objects for Platform Independance.
PwSafeEditorApp.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////
2 // C++ code generated with wxFormBuilder (version Jan 15 2015)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
6 ///////////////////////////////////////////////////////////////////////////
7 
8 #ifndef __PWSAFEEDITORAPP_H__
9 #define __PWSAFEEDITORAPP_H__
10 
11 #include <wx/artprov.h>
12 #include <wx/xrc/xmlres.h>
13 #include <wx/string.h>
14 #include <wx/bitmap.h>
15 #include <wx/image.h>
16 #include <wx/icon.h>
17 #include <wx/gdicmn.h>
18 #include <wx/toolbar.h>
19 #include <wx/font.h>
20 #include <wx/colour.h>
21 #include <wx/settings.h>
22 #include <wx/filepicker.h>
23 #include <wx/stattext.h>
24 #include <wx/grid.h>
25 #include <wx/sizer.h>
26 #include <wx/menu.h>
27 #include <wx/frame.h>
28 #include <wx/textctrl.h>
29 #include <wx/statline.h>
30 #include <wx/button.h>
31 #include <wx/dialog.h>
32 
33 ///////////////////////////////////////////////////////////////////////////
34 
35 ///////////////////////////////////////////////////////////////////////////////
36 /// Class EditorFrame
37 ///////////////////////////////////////////////////////////////////////////////
38 class EditorFrame : public wxFrame
39 {
40  private:
41 
42  protected:
43  wxToolBarToolBase* SaveItem;
44  wxToolBarToolBase* ChangePwItem;
45  wxToolBarToolBase* ReloadItem;
46  wxToolBarToolBase* ShowPwItem;
47  wxToolBarToolBase* AddAccountItem;
48  wxToolBarToolBase* DeleteRowItem;
49  wxToolBarToolBase* CloseItem;
50  wxToolBarToolBase* ToolNewSafe;
51  wxStaticText* KeyLabel;
52  wxMenu* KeyMenu;
53 
54  // Virtual event handlers, overide them in your derived class
55  virtual void ToolSave( wxCommandEvent& event ) = 0;
56  virtual void ToolChangePw( wxCommandEvent& event ) = 0;
57  virtual void ToolReload( wxCommandEvent& event ) = 0;
58  virtual void ToolShowPw( wxCommandEvent& event ) = 0;
59  virtual void ToolAddAcct( wxCommandEvent& event ) = 0;
60  virtual void ToolDeleteRow( wxCommandEvent& event ) = 0;
61  virtual void ToolClose( wxCommandEvent& event ) = 0;
62  virtual void ToolNewPwSafe( wxCommandEvent& event ) = 0;
63  virtual void PwSafeFileChanged( wxFileDirPickerEvent& event ) = 0;
64  virtual void CellChanged( wxGridEvent& event ) = 0;
65  virtual void RowSelected( wxGridEvent& event ) = 0;
66  virtual void LabelRightClick( wxGridEvent& event ) = 0;
67 
68 
69  public:
70  wxToolBar* ToolBar;
71  wxFilePickerCtrl* SafePicker;
72  wxGrid* ValuesGrid;
73 
74  EditorFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("SaS: Password Safe Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
75 
76  ~EditorFrame();
77 
78  void EditorFrameOnContextMenu( wxMouseEvent &event )
79  {
80  this->PopupMenu( KeyMenu, event.GetPosition() );
81  }
82 
83 };
84 
85 ///////////////////////////////////////////////////////////////////////////////
86 /// Class AccountDialog
87 ///////////////////////////////////////////////////////////////////////////////
88 class AccountDialog : public wxDialog
89 {
90  private:
91 
92  protected:
93  wxStaticText* InstructionsLabel;
94  wxStaticText* KeyLabel;
95  wxStaticText* UserLabel;
96  wxStaticText* PwLabel;
97  wxStaticLine* m_staticline1;
98  wxStaticLine* m_staticline2;
99  wxButton* CancelButton;
100  wxButton* OkayButton;
101 
102  // Virtual event handlers, overide them in your derived class
103  virtual void CancelClicked( wxCommandEvent& event ) = 0;
104  virtual void OkayClicked( wxCommandEvent& event ) = 0;
105 
106 
107  public:
108  wxTextCtrl* KeyText;
109  wxTextCtrl* UserText;
110  wxTextCtrl* PasswordText;
111 
112  AccountDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Add New Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
113  ~AccountDialog();
114 
115 };
116 
117 ///////////////////////////////////////////////////////////////////////////////
118 /// Class SaSGetMasterPwDialog
119 ///////////////////////////////////////////////////////////////////////////////
121 {
122  private:
123 
124  protected:
125  wxStaticText* EnterLabel;
126  wxButton* OpenPwOkay;
127 
128  // Virtual event handlers, overide them in your derived class
129  virtual void OkayClicked( wxCommandEvent& event ) = 0;
130 
131 
132  public:
133  wxTextCtrl* MasterPassword;
134 
135  SaSGetMasterPwDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Master Password"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
137 
138 };
139 
140 ///////////////////////////////////////////////////////////////////////////////
141 /// Class ChangePwDialog
142 ///////////////////////////////////////////////////////////////////////////////
143 class ChangePwDialog : public wxDialog
144 {
145  private:
146 
147  protected:
148  wxStaticText* InstructionsLabel;
149  wxStaticText* NewPassword1Label;
150  wxStaticText* NewPassword2Label;
151  wxStaticLine* m_staticline3;
152  wxStaticLine* m_staticline4;
153  wxButton* CancelButton;
154  wxButton* ClearButton;
155  wxButton* OkayButton;
156 
157  // Virtual event handlers, overide them in your derived class
158  virtual void CancelClicked( wxCommandEvent& event ) = 0;
159  virtual void ClearPwEntries( wxCommandEvent& event ) = 0;
160  virtual void OkayClicked( wxCommandEvent& event ) = 0;
161 
162 
163  public:
164  wxStaticText* OldLabel;
165  wxTextCtrl* OldPasswordText;
166  wxTextCtrl* NewPassword1Text;
167  wxTextCtrl* NewPassword2Text;
168 
169  ChangePwDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Change Password"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
170  ~ChangePwDialog();
171 
172 };
173 
174 #endif //__PWSAFEEDITORAPP_H__
wxButton * CancelButton
wxStaticLine * m_staticline4
wxStaticText * InstructionsLabel
wxTextCtrl * NewPassword2Text
wxToolBarToolBase * ChangePwItem
wxTextCtrl * MasterPassword
wxToolBarToolBase * AddAccountItem
virtual void ToolClose(wxCommandEvent &event)=0
wxStaticText * KeyLabel
Class AccountDialog.
wxToolBarToolBase * ToolNewSafe
Class SaSGetMasterPwDialog.
virtual void ToolSave(wxCommandEvent &event)=0
wxStaticText * PwLabel
wxButton * OkayButton
wxToolBarToolBase * SaveItem
virtual void ToolReload(wxCommandEvent &event)=0
wxTextCtrl * PasswordText
virtual void ToolDeleteRow(wxCommandEvent &event)=0
virtual void PwSafeFileChanged(wxFileDirPickerEvent &event)=0
wxToolBarToolBase * DeleteRowItem
wxMenu * KeyMenu
wxToolBarToolBase * ReloadItem
wxToolBarToolBase * CloseItem
Class ChangePwDialog.
wxButton * ClearButton
wxToolBar * ToolBar
virtual void ToolNewPwSafe(wxCommandEvent &event)=0
virtual void ToolShowPw(wxCommandEvent &event)=0
wxTextCtrl * UserText
wxTextCtrl * NewPassword1Text
wxButton * OkayButton
virtual void RowSelected(wxGridEvent &event)=0
virtual void ToolChangePw(wxCommandEvent &event)=0
wxStaticText * KeyLabel
wxFilePickerCtrl * SafePicker
EditorFrame(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("SaS: Password Safe Editor"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL)
wxGrid * ValuesGrid
virtual void ToolAddAcct(wxCommandEvent &event)=0
wxStaticLine * m_staticline1
wxStaticText * UserLabel
wxStaticText * EnterLabel
wxStaticText * InstructionsLabel
wxStaticText * NewPassword1Label
void EditorFrameOnContextMenu(wxMouseEvent &event)
wxTextCtrl * KeyText
wxTextCtrl * OldPasswordText
wxStaticLine * m_staticline2
virtual void CellChanged(wxGridEvent &event)=0
wxStaticText * NewPassword2Label
virtual void LabelRightClick(wxGridEvent &event)=0
wxButton * CancelButton
Class EditorFrame.
wxStaticText * OldLabel
wxToolBarToolBase * ShowPwItem
wxStaticLine * m_staticline3