1 /* 2 Derived from source code of TrueCrypt 7.1a, which is 3 Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed 4 by the TrueCrypt License 3.0. 5 6 Modifications and additions to the original source code (contained in this file) 7 and all other portions of this file are Copyright (c) 2013-2017 IDRIX 8 and are governed by the Apache License 2.0 the full text of which is 9 contained in the file License.txt included in VeraCrypt binary and source 10 code distribution packages. 11 */ 12 13 #ifndef TC_HEADER_Main_Forms_DeviceSelectionDialog 14 #define TC_HEADER_Main_Forms_DeviceSelectionDialog 15 16 #include "Forms.h" 17 #include "Main/Main.h" 18 19 namespace VeraCrypt 20 { 21 class DeviceSelectionDialog : public DeviceSelectionDialogBase 22 { 23 public: 24 DeviceSelectionDialog (wxWindow* parent); 25 26 HostDeviceList DeviceList; 27 HostDevice SelectedDevice; 28 29 protected: 30 enum 31 { 32 ColumnDevice = 0, 33 #ifdef TC_WINDOWS 34 ColumnDrive, 35 #endif 36 ColumnSize, 37 #ifdef TC_WINDOWS 38 ColumnName 39 #else 40 ColumnMountPoint 41 #endif 42 }; 43 44 void OnListItemActivated (wxListEvent& event); 45 void OnListItemDeselected (wxListEvent& event); 46 void OnListItemSelected (wxListEvent& event); 47 }; 48 } 49 50 #endif // TC_HEADER_Main_Forms_DeviceSelectionDialog