NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
renamesymbolsdialog.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2019 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#include <wx/wx.h>
20#include <wx/listctrl.h>
21#include <vector>
22
23#ifndef RENAMESYMBOLSDIALOG_HPP
24#define RENAMESYMBOLSDIALOG_HPP
25
26class RenameSymbolsDialog : public wxDialog
27{
28 private:
33 wxTextCtrl* m_replaceName;
34
35 void fillChangesLog(wxListView* listView, const std::vector<wxString>& vChangeLog);
36
37 public:
38 RenameSymbolsDialog(wxWindow* parent, const std::vector<wxString>& vChangeLog, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxString& defaultval = wxEmptyString);
39
40 wxString GetValue()
41 {
42 return m_replaceName->GetValue();
43 }
45 {
46 return m_replaceInWholeFile->GetValue();
47 }
49 {
50 return m_replaceInComments->GetValue();
51 }
53 {
54 return m_replaceBeforeCursor->GetValue();
55 }
57 {
58 return m_replaceAfterCursor->GetValue();
59 }
60};
61
62#endif // RENAMESYMBOLSDIALOG_HPP
63
64
65
wxCheckBox * m_replaceInWholeFile
void fillChangesLog(wxListView *listView, const std::vector< wxString > &vChangeLog)
wxCheckBox * m_replaceBeforeCursor
RenameSymbolsDialog(wxWindow *parent, const std::vector< wxString > &vChangeLog, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxString &defaultval=wxEmptyString)
wxCheckBox * m_replaceAfterCursor
wxCheckBox * m_replaceInComments