NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
duplicatecodedialog.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2017 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19#ifndef DUPLICATECODEDIALOG_HPP
20#define DUPLICATECODEDIALOG_HPP
21
22#include "../compositions/viewerframe.hpp"
23#include <wx/panel.h>
24#include <wx/gauge.h>
25#include <wx/listctrl.h>
26#include <wx/spinctrl.h>
27#include <string>
28#include <vector>
29
31{
32 private:
34 wxPanel* m_mainPanel;
35 wxListCtrl* m_resultList;
36 wxWindow* m_parent;
37 wxCheckBox* m_varSemantics;
38 wxCheckBox* m_StringSemantics;
39 wxCheckBox* m_NumSemantics;
41
42 wxSpinCtrl* m_NumLines;
43
44 wxString createTextFromList();
45
46 public:
47 DuplicateCodeDialog(wxWindow* _parent, const wxString& title);
48
49 void SetProgress(double dPercentage);
50 void SetResult(const std::vector<std::string>& vResult);
51 void OnButtonOK(wxCommandEvent& event);
52 void OnButtonStart(wxCommandEvent& event);
53 void OnButtonCopy(wxCommandEvent& event);
54 void OnButtonReport(wxCommandEvent& event);
55 void OnItemClick(wxListEvent& event);
56 void OnItemRightClick(wxListEvent& event);
57 void OnClose(wxCloseEvent& event);
58 void OnColumnHeaderClick(wxListEvent& event);
59
60 void highlightSelection(const wxString& sSelection, bool firstMatch);
61
62 void OnStart();
63
65};
66
67#endif // DUPLICATECODEDIALOG_HPP
68
wxCheckBox * m_FunctionSemantics
void SetResult(const std::vector< std::string > &vResult)
void OnButtonCopy(wxCommandEvent &event)
void OnColumnHeaderClick(wxListEvent &event)
void OnItemClick(wxListEvent &event)
void OnItemRightClick(wxListEvent &event)
DuplicateCodeDialog(wxWindow *_parent, const wxString &title)
void OnClose(wxCloseEvent &event)
void OnButtonReport(wxCommandEvent &event)
void highlightSelection(const wxString &sSelection, bool firstMatch)
void OnButtonStart(wxCommandEvent &event)
void OnButtonOK(wxCommandEvent &event)
void SetProgress(double dPercentage)
This class generalizes a set of basic floating window functionalities like being closable by pressing...
Definition: viewerframe.hpp:31