|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
4: Governed by the TrueCrypt License 2.4 the full text of which is contained
5: in the file License.txt included in TrueCrypt binary and source code
6: distribution packages.
7: */
8:
9: #ifndef TC_HEADER_Main_Forms_FavoriteVolumesDialog
10: #define TC_HEADER_Main_Forms_FavoriteVolumesDialog
11:
12: #include "Forms.h"
13: #include "Main/Main.h"
14: #include "Main/FavoriteVolume.h"
15:
16: namespace TrueCrypt
17: {
18: class FavoriteVolumesDialog : public FavoriteVolumesDialogBase
19: {
20: public:
21: FavoriteVolumesDialog (wxWindow* parent, const FavoriteVolumeList &favorites, size_t newItemCount = 0);
22:
23: FavoriteVolumeList GetFavorites () const { return Favorites; }
24:
25: protected:
26: void OnListItemDeselected (wxListEvent& event) { UpdateButtons (); }
27: void OnListItemSelected (wxListEvent& event) { UpdateButtons (); }
28: void OnMoveUpButtonClick (wxCommandEvent& event);
29: void OnMoveDownButtonClick (wxCommandEvent& event);
30: void OnOKButtonClick (wxCommandEvent& event);
31: void OnRemoveAllButtonClick (wxCommandEvent& event);
32: void OnRemoveButtonClick (wxCommandEvent& event);
33: void UpdateButtons ();
34:
35: enum
36: {
37: ColumnVolumePath = 0,
38: ColumnMountPoint
39: };
40:
41: FavoriteVolumeList Favorites;
42: };
43: }
44:
45: #endif // TC_HEADER_Main_Forms_FavoriteVolumesDialog
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.