summaryrefslogtreecommitdiff
path: root/ui/exec_finished_box.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/exec_finished_box.h')
-rw-r--r--ui/exec_finished_box.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/ui/exec_finished_box.h b/ui/exec_finished_box.h
deleted file mode 100644
index 2a69faef..00000000
--- a/ui/exec_finished_box.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// **************************************************************************
-// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
-// **************************************************************************
-
-#ifndef EXEC_FINISHED_BOX_18947773210473214
-#define EXEC_FINISHED_BOX_18947773210473214
-
-#include <vector>
-#include <string>
-#include <map>
-#include <wx/combobox.h>
-#include <zen/string_tools.h>
-
-//combobox with history function + functionality to delete items (DEL)
-
-//special command
-bool isCloseProgressDlgCommand(const std::wstring& value);
-
-
-class ExecFinishedBox : public wxComboBox
-{
-public:
- ExecFinishedBox(wxWindow* parent,
- wxWindowID id,
- const wxString& value = wxEmptyString,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- int n = 0,
- const wxString choices[] = nullptr,
- long style = 0,
- const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxComboBoxNameStr);
-
- void initHistory(std::vector<std::wstring>& history, size_t historyMax) { history_ = &history; historyMax_ = historyMax; }
- void addItemHistory(); //adds current item to history
-
- // use these two accessors instead of GetValue()/SetValue():
- std::wstring getValue() const;
- void setValue(const std::wstring& value);
- //required for setting value correctly + Linux to ensure the dropdown is shown as being populated
-
-private:
- void OnKeyEvent(wxKeyEvent& event);
- void OnMouseWheel(wxMouseEvent& event) {} //swallow! this gives confusing UI feedback anyway
- void OnSelection(wxCommandEvent& event);
- void OnValidateSelection(wxCommandEvent& event);
- void OnUpdateList(wxEvent& event);
-
- void setValueAndUpdateList(const std::wstring& value);
-
- std::vector<std::wstring>* history_;
- size_t historyMax_;
-
- const std::vector<std::pair<std::wstring, std::wstring>> defaultCommands;
-};
-
-
-#endif //EXEC_FINISHED_BOX_18947773210473214
bgstack15