OpenASIP
2.0
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Functions
a
b
c
d
f
g
i
l
m
n
o
p
s
Variables
Typedefs
a
b
c
d
e
f
i
n
p
r
s
t
Enumerations
Enumerator
b
c
f
g
h
i
l
m
o
r
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
z
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
x
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
f
i
j
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
codesign
Proxim
HighlightExecPercentageCmd.cc
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2009 Tampere University.
3
4
This file is part of TTA-Based Codesign Environment (TCE).
5
6
Permission is hereby granted, free of charge, to any person obtaining a
7
copy of this software and associated documentation files (the "Software"),
8
to deal in the Software without restriction, including without limitation
9
the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
and/or sell copies of the Software, and to permit persons to whom the
11
Software is furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
DEALINGS IN THE SOFTWARE.
23
*/
24
/**
25
* @file HighlightExecPercentageCmd.cc
26
*
27
* Implementation of HighlightExecPercentageCmd class.
28
*
29
* @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#include "
HighlightExecPercentageCmd.hh
"
34
#include "
ProximConstants.hh
"
35
#include "
Proxim.hh
"
36
#include "
DisasmExecPercentageAttrProvider.hh
"
37
#include "
ProximToolbox.hh
"
38
#include "
ProximDisassemblyWindow.hh
"
39
#include "
TracedSimulatorFrontend.hh
"
40
41
/**
42
* The Constructor.
43
*/
44
HighlightExecPercentageCmd::HighlightExecPercentageCmd
():
45
GUICommand
(
"Highlight Execution Percentage"
, NULL) {
46
47
}
48
49
/**
50
* The Destructor.
51
*/
52
HighlightExecPercentageCmd::~HighlightExecPercentageCmd
() {
53
}
54
55
56
/**
57
* Executes the command.
58
*/
59
bool
60
HighlightExecPercentageCmd::Do
() {
61
ProximDisassemblyWindow
* window =
ProximToolbox::disassemblyWindow
();
62
assert
(window != NULL);
63
DisasmExecPercentageAttrProvider
* attrProvider =
64
new
DisasmExecPercentageAttrProvider
(*
ProximToolbox::frontend
());
65
window->
setMoveAttrProvider
(attrProvider);
66
window->Refresh();
67
return
true
;
68
}
69
70
71
/**
72
* Returns full path to the command icon file.
73
*
74
* @return Full path to the command icon file.
75
*/
76
std::string
77
HighlightExecPercentageCmd::icon
()
const
{
78
return
"clear_console.png"
;
79
}
80
81
82
/**
83
* Returns ID of this command.
84
*/
85
int
86
HighlightExecPercentageCmd::id
()
const
{
87
return
ProximConstants::COMMAND_HIGHLIGHT_EXEC_PERCENTAGE
;
88
}
89
90
91
/**
92
* Creates and returns a new isntance of this command.
93
*
94
* @return Newly created instance of this command.
95
*/
96
HighlightExecPercentageCmd
*
97
HighlightExecPercentageCmd::create
()
const
{
98
return
new
HighlightExecPercentageCmd
();
99
}
100
101
102
/**
103
* Returns true if the command is enabled, false otherwise.
104
*
105
* @return True if the console window exists.
106
*/
107
bool
108
HighlightExecPercentageCmd::isEnabled
() {
109
if
(
ProximToolbox::frontend
()->isProgramLoaded()) {
110
return
true
;
111
}
else
{
112
return
false
;
113
}
114
}
ProximToolbox::frontend
static TracedSimulatorFrontend * frontend()
Definition:
ProximToolbox.cc:223
HighlightExecPercentageCmd::HighlightExecPercentageCmd
HighlightExecPercentageCmd()
Definition:
HighlightExecPercentageCmd.cc:44
ProximDisassemblyWindow::setMoveAttrProvider
void setMoveAttrProvider(ProximDisasmAttrProvider *attrProvider)
Definition:
ProximDisassemblyWindow.cc:391
HighlightExecPercentageCmd.hh
HighlightExecPercentageCmd::Do
virtual bool Do()
Definition:
HighlightExecPercentageCmd.cc:60
Proxim.hh
DisasmExecPercentageAttrProvider
Definition:
DisasmExecPercentageAttrProvider.hh:44
ProximDisassemblyWindow.hh
assert
#define assert(condition)
Definition:
Application.hh:86
ProximToolbox.hh
HighlightExecPercentageCmd::create
virtual HighlightExecPercentageCmd * create() const
Definition:
HighlightExecPercentageCmd.cc:97
GUICommand
Definition:
GUICommand.hh:43
HighlightExecPercentageCmd::id
virtual int id() const
Definition:
HighlightExecPercentageCmd.cc:86
HighlightExecPercentageCmd::isEnabled
virtual bool isEnabled()
Definition:
HighlightExecPercentageCmd.cc:108
DisasmExecPercentageAttrProvider.hh
HighlightExecPercentageCmd::icon
virtual std::string icon() const
Definition:
HighlightExecPercentageCmd.cc:77
TracedSimulatorFrontend.hh
HighlightExecPercentageCmd
Definition:
HighlightExecPercentageCmd.hh:41
ProximConstants.hh
ProximConstants::COMMAND_HIGHLIGHT_EXEC_PERCENTAGE
@ COMMAND_HIGHLIGHT_EXEC_PERCENTAGE
Definition:
ProximConstants.hh:73
ProximToolbox::disassemblyWindow
static ProximDisassemblyWindow * disassemblyWindow()
Definition:
ProximToolbox.cc:150
HighlightExecPercentageCmd::~HighlightExecPercentageCmd
virtual ~HighlightExecPercentageCmd()
Definition:
HighlightExecPercentageCmd.cc:52
ProximDisassemblyWindow
Definition:
ProximDisassemblyWindow.hh:58
Generated by
1.8.17