OpenASIP
2.0
|
#include <FindWindow.hh>
Public Member Functions | |
FindWindow (ProximMainFrame *parent, int id) | |
virtual | ~FindWindow () |
virtual void | reset () |
Private Types | |
enum | { ID_OP_INPUT, ID_MATCH_CASE, ID_INFO_LABEL, ID_FIND_PREV, ID_FIND_NEXT } |
Widget IDs. More... | |
Private Member Functions | |
void | onInputText (wxCommandEvent &event) |
void | onFindPrev (wxCommandEvent &event) |
void | onFindNext (wxCommandEvent &event) |
bool | find (std::string searchString) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
wxTextCtrl * | opInput_ |
wxCheckBox * | matchCase_ |
wxStaticText * | infoLabel_ |
wxButton * | findPrevBtn_ |
wxButton * | findNextBtn_ |
std::vector< int > | matchedLines |
List of code linenumbers where serached text was found. More... | |
int | matchedIndex |
Currently displayed codeline index in matchedLines. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ProximSimulatorWindow | |
ProximSimulatorWindow (ProximMainFrame *mainFrame, wxWindowID id=-1, wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
virtual | ~ProximSimulatorWindow () |
Window for searching text patterns in disassembly instructions.
Definition at line 49 of file FindWindow.hh.
|
private |
Widget IDs.
Enumerator | |
---|---|
ID_OP_INPUT | |
ID_MATCH_CASE | |
ID_INFO_LABEL | |
ID_FIND_PREV | |
ID_FIND_NEXT |
Definition at line 75 of file FindWindow.hh.
FindWindow::FindWindow | ( | ProximMainFrame * | parent, |
int | id | ||
) |
Definition at line 57 of file FindWindow.cc.
|
virtual |
Definition at line 68 of file FindWindow.cc.
|
private |
Creates the dialog widgets.
Definition at line 211 of file FindWindow.cc.
References findNextBtn_, findPrevBtn_, ID_FIND_NEXT, ID_FIND_PREV, ID_INFO_LABEL, ID_MATCH_CASE, ID_OP_INPUT, infoLabel_, matchCase_, and opInput_.
|
private |
Definition at line 169 of file FindWindow.cc.
References matchCase_, matchedIndex, matchedLines, TTAProgram::Instruction::move(), TTAProgram::Instruction::moveCount(), ProximToolbox::program(), program, and TTAProgram::Move::toString().
Referenced by onInputText().
|
private |
Definition at line 142 of file FindWindow.cc.
References ProximToolbox::disassemblyWindow(), infoLabel_, matchedIndex, matchedLines, ProximDisassemblyWindow::showAddress(), and WxConversion::toWxString().
|
private |
Definition at line 120 of file FindWindow.cc.
References ProximToolbox::disassemblyWindow(), infoLabel_, matchedIndex, matchedLines, ProximDisassemblyWindow::showAddress(), and WxConversion::toWxString().
|
private |
Called when the input text changes or match case checkbox changes state.
Definition at line 84 of file FindWindow.cc.
References ProximToolbox::disassemblyWindow(), find(), findNextBtn_, findPrevBtn_, infoLabel_, matchedLines, opInput_, ProximDisassemblyWindow::showAddress(), WxConversion::toString(), and WxConversion::toWxString().
|
virtual |
Called when the simulator program, memory and machine models are reset.
Reimplemented from ProximSimulatorWindow.
Definition at line 76 of file FindWindow.cc.
|
private |
Definition at line 67 of file FindWindow.hh.
Referenced by createContents(), and onInputText().
|
private |
Definition at line 66 of file FindWindow.hh.
Referenced by createContents(), and onInputText().
|
private |
Definition at line 65 of file FindWindow.hh.
Referenced by createContents(), onFindNext(), onFindPrev(), and onInputText().
|
private |
Definition at line 64 of file FindWindow.hh.
Referenced by createContents(), and find().
|
private |
Currently displayed codeline index in matchedLines.
Definition at line 72 of file FindWindow.hh.
Referenced by find(), onFindNext(), and onFindPrev().
|
private |
List of code linenumbers where serached text was found.
Definition at line 70 of file FindWindow.hh.
Referenced by find(), onFindNext(), onFindPrev(), and onInputText().
|
private |
Definition at line 63 of file FindWindow.hh.
Referenced by createContents(), and onInputText().