OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
HighlightExecPercentageCmd Class Reference

#include <HighlightExecPercentageCmd.hh>

Inheritance diagram for HighlightExecPercentageCmd:
Inheritance graph
Collaboration diagram for HighlightExecPercentageCmd:
Collaboration graph

Public Member Functions

 HighlightExecPercentageCmd ()
 
virtual ~HighlightExecPercentageCmd ()
 
virtual bool Do ()
 
virtual int id () const
 
virtual HighlightExecPercentageCmdcreate () const
 
virtual std::string icon () const
 
virtual bool isEnabled ()
 
- Public Member Functions inherited from GUICommand
 GUICommand (std::string name, wxWindow *parent)
 
virtual ~GUICommand ()
 
virtual bool isChecked () const
 
virtual std::string shortName () const
 
void setParentWindow (wxWindow *view)
 
wxWindow * parentWindow () const
 
std::string name () const
 

Detailed Description

Command for highlighting move execution counts in the disassembly window.

Definition at line 41 of file HighlightExecPercentageCmd.hh.

Constructor & Destructor Documentation

◆ HighlightExecPercentageCmd()

HighlightExecPercentageCmd::HighlightExecPercentageCmd ( )

The Constructor.

Definition at line 44 of file HighlightExecPercentageCmd.cc.

44 :
45 GUICommand("Highlight Execution Percentage", NULL) {
46
47 }

Referenced by create().

◆ ~HighlightExecPercentageCmd()

HighlightExecPercentageCmd::~HighlightExecPercentageCmd ( )
virtual

The Destructor.

Definition at line 52 of file HighlightExecPercentageCmd.cc.

52 {
53}

Member Function Documentation

◆ create()

HighlightExecPercentageCmd * HighlightExecPercentageCmd::create ( ) const
virtual

Creates and returns a new isntance of this command.

Returns
Newly created instance of this command.

Implements GUICommand.

Definition at line 97 of file HighlightExecPercentageCmd.cc.

References HighlightExecPercentageCmd().

Here is the call graph for this function:

◆ Do()

bool HighlightExecPercentageCmd::Do ( )
virtual

Executes the command.

Implements GUICommand.

Definition at line 60 of file HighlightExecPercentageCmd.cc.

60 {
62 assert(window != NULL);
65 window->setMoveAttrProvider(attrProvider);
66 window->Refresh();
67 return true;
68}
#define assert(condition)
void setMoveAttrProvider(ProximDisasmAttrProvider *attrProvider)
static TracedSimulatorFrontend * frontend()
static ProximDisassemblyWindow * disassemblyWindow()

References assert, ProximToolbox::disassemblyWindow(), ProximToolbox::frontend(), and ProximDisassemblyWindow::setMoveAttrProvider().

Here is the call graph for this function:

◆ icon()

std::string HighlightExecPercentageCmd::icon ( ) const
virtual

Returns full path to the command icon file.

Returns
Full path to the command icon file.

Implements GUICommand.

Definition at line 77 of file HighlightExecPercentageCmd.cc.

77 {
78 return "clear_console.png";
79}

◆ id()

int HighlightExecPercentageCmd::id ( ) const
virtual

Returns ID of this command.

Implements GUICommand.

Definition at line 86 of file HighlightExecPercentageCmd.cc.

References ProximConstants::COMMAND_HIGHLIGHT_EXEC_PERCENTAGE.

◆ isEnabled()

bool HighlightExecPercentageCmd::isEnabled ( )
virtual

Returns true if the command is enabled, false otherwise.

Returns
True if the console window exists.

Implements GUICommand.

Definition at line 108 of file HighlightExecPercentageCmd.cc.

108 {
109 if (ProximToolbox::frontend()->isProgramLoaded()) {
110 return true;
111 } else {
112 return false;
113 }
114}

References ProximToolbox::frontend().

Here is the call graph for this function:

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