NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
DuplicateCodeDialog Class Reference

#include <duplicatecodedialog.hpp>

Inheritance diagram for DuplicateCodeDialog:
Collaboration diagram for DuplicateCodeDialog:

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
 

Detailed Description

Definition at line 30 of file duplicatecodedialog.hpp.

Constructor & Destructor Documentation

◆ DuplicateCodeDialog()

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.

Here is the call graph for this function:

Member Function Documentation

◆ createTextFromList()

wxString DuplicateCodeDialog::createTextFromList ( )
private

Definition at line 119 of file duplicatecodedialog.cpp.

References _guilang, Language::get(), and m_resultList.

Referenced by OnButtonCopy(), and OnButtonReport().

Here is the call graph for this function:

◆ DECLARE_EVENT_TABLE()

DuplicateCodeDialog::DECLARE_EVENT_TABLE ( )

◆ highlightSelection()

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().

Here is the call graph for this function:

◆ OnButtonCopy()

void DuplicateCodeDialog::OnButtonCopy ( wxCommandEvent &  event)

Definition at line 172 of file duplicatecodedialog.cpp.

References createTextFromList().

Here is the call graph for this function:

◆ OnButtonOK()

void DuplicateCodeDialog::OnButtonOK ( wxCommandEvent &  event)

Definition at line 153 of file duplicatecodedialog.cpp.

References NumeReEditor::IndicateDuplicatedLine(), and m_parent.

Here is the call graph for this function:

◆ OnButtonReport()

void DuplicateCodeDialog::OnButtonReport ( wxCommandEvent &  event)

Definition at line 184 of file duplicatecodedialog.cpp.

References _guilang, createTextFromList(), and Language::get().

Here is the call graph for this function:

◆ OnButtonStart()

void DuplicateCodeDialog::OnButtonStart ( wxCommandEvent &  event)

Definition at line 167 of file duplicatecodedialog.cpp.

References OnStart().

Here is the call graph for this function:

◆ OnClose()

void DuplicateCodeDialog::OnClose ( wxCloseEvent &  event)

Definition at line 160 of file duplicatecodedialog.cpp.

References m_parent, and NumeReEditor::notifyDialogClose().

Here is the call graph for this function:

◆ OnColumnHeaderClick()

void DuplicateCodeDialog::OnColumnHeaderClick ( wxListEvent &  event)

Definition at line 246 of file duplicatecodedialog.cpp.

References m_resultList, and StrToDb().

Here is the call graph for this function:

◆ OnItemClick()

void DuplicateCodeDialog::OnItemClick ( wxListEvent &  event)

Definition at line 200 of file duplicatecodedialog.cpp.

References highlightSelection().

Here is the call graph for this function:

◆ OnItemRightClick()

void DuplicateCodeDialog::OnItemRightClick ( wxListEvent &  event)

Definition at line 205 of file duplicatecodedialog.cpp.

References highlightSelection().

Here is the call graph for this function:

◆ OnStart()

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().

Here is the call graph for this function:

◆ SetProgress()

void DuplicateCodeDialog::SetProgress ( double  dPercentage)

Definition at line 131 of file duplicatecodedialog.cpp.

References m_progressGauge.

Referenced by NumeReEditor::OnThreadUpdate().

◆ SetResult()

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().

Here is the call graph for this function:

Member Data Documentation

◆ m_FunctionSemantics

wxCheckBox* DuplicateCodeDialog::m_FunctionSemantics
private

Definition at line 40 of file duplicatecodedialog.hpp.

Referenced by OnStart().

◆ m_mainPanel

wxPanel* DuplicateCodeDialog::m_mainPanel
private

Definition at line 34 of file duplicatecodedialog.hpp.

◆ m_NumLines

wxSpinCtrl* DuplicateCodeDialog::m_NumLines
private

Definition at line 42 of file duplicatecodedialog.hpp.

Referenced by OnStart().

◆ m_NumSemantics

wxCheckBox* DuplicateCodeDialog::m_NumSemantics
private

Definition at line 39 of file duplicatecodedialog.hpp.

Referenced by OnStart().

◆ m_parent

wxWindow* DuplicateCodeDialog::m_parent
private

Definition at line 36 of file duplicatecodedialog.hpp.

Referenced by highlightSelection(), OnButtonOK(), OnClose(), and OnStart().

◆ m_progressGauge

wxGauge* DuplicateCodeDialog::m_progressGauge
private

Definition at line 33 of file duplicatecodedialog.hpp.

Referenced by SetProgress().

◆ m_resultList

wxListCtrl* DuplicateCodeDialog::m_resultList
private

◆ m_StringSemantics

wxCheckBox* DuplicateCodeDialog::m_StringSemantics
private

Definition at line 38 of file duplicatecodedialog.hpp.

Referenced by OnStart().

◆ m_varSemantics

wxCheckBox* DuplicateCodeDialog::m_varSemantics
private

Definition at line 37 of file duplicatecodedialog.hpp.

Referenced by OnStart().


The documentation for this class was generated from the following files: