diff options
Diffstat (limited to 'shared/customComboBox.h')
-rw-r--r-- | shared/customComboBox.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/shared/customComboBox.h b/shared/customComboBox.h new file mode 100644 index 00000000..b6af43bf --- /dev/null +++ b/shared/customComboBox.h @@ -0,0 +1,29 @@ +#ifndef CUSTOMCOMBOBOX_H_INCLUDED +#define CUSTOMCOMBOBOX_H_INCLUDED + +#include <wx/combobox.h> + +//combobox with history function + functionality to delete items (DEL) + +class CustomComboBox : public wxComboBox +{ +public: + CustomComboBox(wxWindow* parent, + wxWindowID id, + const wxString& value = wxEmptyString, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + int n = 0, + const wxString choices[] = (const wxString *) NULL, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxComboBoxNameStr); + + void addPairToFolderHistory(const wxString& newFolder, unsigned int maxHistSize); + +private: + void OnKeyEvent(wxKeyEvent& event); +}; + + +#endif // CUSTOMCOMBOBOX_H_INCLUDED |