NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <duplicatecodedialog.hpp>
Public Member Functions | |
DuplicateCodeDialog (wxWindow *_parent, const wxString &title) | |
void | SetProgress (double dPercentage) |
void | SetResult (const std::vector< std::string > &vResult) |
void | OnButtonOK (wxCommandEvent &event) |
void | OnButtonStart (wxCommandEvent &event) |
void | OnButtonCopy (wxCommandEvent &event) |
void | OnButtonReport (wxCommandEvent &event) |
void | OnItemClick (wxListEvent &event) |
void | OnItemRightClick (wxListEvent &event) |
void | OnClose (wxCloseEvent &event) |
void | OnColumnHeaderClick (wxListEvent &event) |
void | highlightSelection (const wxString &sSelection, bool firstMatch) |
void | OnStart () |
DECLARE_EVENT_TABLE () | |
Public Member Functions inherited from ViewerFrame | |
ViewerFrame (wxWindow *parent, const wxString &title) | |
void | OnKeyDown (wxKeyEvent &event) |
This event handler closes the frame, if the user presses ESC. More... | |
void | OnFocus (wxFocusEvent &event) |
This event handler passes the keyboard focus down to the first child in the window list, if the frame gets keyboard focus. More... | |
void | OnEnter (wxMouseEvent &event) |
This event handler get the keyboard focus, if the user enters with the mouse. More... | |
void | OnClose (wxCloseEvent &event) |
This event handler informs all child windows that this frame will now close. It furthermore automatically unregisters itself in the opened window list. More... | |
DECLARE_EVENT_TABLE () | |
Private Member Functions | |
wxString | createTextFromList () |
Private Attributes | |
wxGauge * | m_progressGauge |
wxPanel * | m_mainPanel |
wxListCtrl * | m_resultList |
wxWindow * | m_parent |
wxCheckBox * | m_varSemantics |
wxCheckBox * | m_StringSemantics |
wxCheckBox * | m_NumSemantics |
wxCheckBox * | m_FunctionSemantics |
wxSpinCtrl * | m_NumLines |
Definition at line 30 of file duplicatecodedialog.hpp.
DuplicateCodeDialog::DuplicateCodeDialog | ( | wxWindow * | _parent, |
const wxString & | title | ||
) |
Definition at line 61 of file duplicatecodedialog.cpp.
References _guilang, g_pixelScale, Language::get(), ID_DUPLICATECODE_COPY, ID_DUPLICATECODE_REPORT, and ID_DUPLICATECODE_START.
|
private |
Definition at line 119 of file duplicatecodedialog.cpp.
References _guilang, Language::get(), and m_resultList.
Referenced by OnButtonCopy(), and OnButtonReport().
DuplicateCodeDialog::DECLARE_EVENT_TABLE | ( | ) |
void DuplicateCodeDialog::highlightSelection | ( | const wxString & | sSelection, |
bool | firstMatch | ||
) |
Definition at line 210 of file duplicatecodedialog.cpp.
References NumeReEditor::IndicateDuplicatedLine(), m_parent, and StrToInt().
Referenced by OnItemClick(), and OnItemRightClick().
void DuplicateCodeDialog::OnButtonCopy | ( | wxCommandEvent & | event | ) |
Definition at line 172 of file duplicatecodedialog.cpp.
References createTextFromList().
void DuplicateCodeDialog::OnButtonOK | ( | wxCommandEvent & | event | ) |
Definition at line 153 of file duplicatecodedialog.cpp.
References NumeReEditor::IndicateDuplicatedLine(), and m_parent.
void DuplicateCodeDialog::OnButtonReport | ( | wxCommandEvent & | event | ) |
Definition at line 184 of file duplicatecodedialog.cpp.
References _guilang, createTextFromList(), and Language::get().
void DuplicateCodeDialog::OnButtonStart | ( | wxCommandEvent & | event | ) |
Definition at line 167 of file duplicatecodedialog.cpp.
References OnStart().
void DuplicateCodeDialog::OnClose | ( | wxCloseEvent & | event | ) |
Definition at line 160 of file duplicatecodedialog.cpp.
References m_parent, and NumeReEditor::notifyDialogClose().
void DuplicateCodeDialog::OnColumnHeaderClick | ( | wxListEvent & | event | ) |
Definition at line 246 of file duplicatecodedialog.cpp.
References m_resultList, and StrToDb().
void DuplicateCodeDialog::OnItemClick | ( | wxListEvent & | event | ) |
Definition at line 200 of file duplicatecodedialog.cpp.
References highlightSelection().
void DuplicateCodeDialog::OnItemRightClick | ( | wxListEvent & | event | ) |
Definition at line 205 of file duplicatecodedialog.cpp.
References highlightSelection().
void DuplicateCodeDialog::OnStart | ( | ) |
Definition at line 230 of file duplicatecodedialog.cpp.
References m_FunctionSemantics, m_NumLines, m_NumSemantics, m_parent, m_resultList, m_StringSemantics, m_varSemantics, NumeReEditor::OnFindDuplicateCode(), SEMANTICS_FUNCTION, SEMANTICS_NUM, SEMANTICS_STRING, and SEMANTICS_VAR.
Referenced by OnButtonStart().
void DuplicateCodeDialog::SetProgress | ( | double | dPercentage | ) |
Definition at line 131 of file duplicatecodedialog.cpp.
References m_progressGauge.
Referenced by NumeReEditor::OnThreadUpdate().
void DuplicateCodeDialog::SetResult | ( | const std::vector< std::string > & | vResult | ) |
Definition at line 137 of file duplicatecodedialog.cpp.
References m_resultList, and toString().
Referenced by NumeReEditor::OnThreadUpdate().
|
private |
Definition at line 40 of file duplicatecodedialog.hpp.
Referenced by OnStart().
|
private |
Definition at line 34 of file duplicatecodedialog.hpp.
|
private |
Definition at line 42 of file duplicatecodedialog.hpp.
Referenced by OnStart().
|
private |
Definition at line 39 of file duplicatecodedialog.hpp.
Referenced by OnStart().
|
private |
Definition at line 36 of file duplicatecodedialog.hpp.
Referenced by highlightSelection(), OnButtonOK(), OnClose(), and OnStart().
|
private |
Definition at line 33 of file duplicatecodedialog.hpp.
Referenced by SetProgress().
|
private |
Definition at line 35 of file duplicatecodedialog.hpp.
Referenced by createTextFromList(), OnColumnHeaderClick(), OnStart(), and SetResult().
|
private |
Definition at line 38 of file duplicatecodedialog.hpp.
Referenced by OnStart().
|
private |
Definition at line 37 of file duplicatecodedialog.hpp.
Referenced by OnStart().