53 while (!itRedo.
end()) {
54 myGUIRows.push_back(
new GUIRow(
this, myRowFrame, myApplicationWindow->getStaticTooltipView()));
59 while (!itUndo.
end()) {
60 myGUIRows.push_back(
new GUIRow(
this, myRowFrame, myApplicationWindow->getStaticTooltipView()));
84 if (row->getRadioButton() == obj) {
85 index = row->getIndex();
90 for (
int i = 0; i < (index * -1); i++) {
94 for (
int i = 0; i < index; i++) {
107 std::vector<UndoListRow> undoListRows;
113 while (!itRedo.
end()) {
120 std::reverse(undoListRows.begin(), undoListRows.end());
126 while (!itUndo.
end()) {
133 for (
int i = 0; i < (int)undoListRows.size(); i++) {
134 myGUIRows.at(i)->update(undoListRows.at(i));
135 if (undoListRows.at(i).index < 0) {
137 }
else if (undoListRows.at(i).index > 0) {
149 description(description_),
150 timestamp(timestamp_) {}
161 myTextFieldDescription->setEditable(
false);
164 myTextFieldTimeStamp->setEditable(
false);
169 delete myRadioButton;
171 delete myTextFieldDescription;
172 delete myTextFieldTimeStamp;
179 myIcon->setIcon(row.
icon);
182 std::string textFieldTrimmed;
183 for (
int i = 0; i < 57; i++) {
186 textFieldTrimmed.append(
"...");
187 myTextFieldDescription->setText(textFieldTrimmed.c_str());
188 myTextFieldDescription->setToolTipText(row.
description.c_str());
190 myTextFieldDescription->setText(row.
description.c_str());
191 myTextFieldDescription->setToolTipText(
"");
193 myTextFieldTimeStamp->setText(row.
timestamp.c_str());
205 return myRadioButton;
211 myRadioButton->setCheck(FALSE);
218 myRadioButton->setCheck(FALSE);
219 myRadioButton->setBackColor(FXRGBA(210, 233, 255, 255));
225 myRadioButton->setCheck(TRUE);
226 myRadioButton->setBackColor(FXRGBA(240, 255, 205, 255));
FXDEFMAP(GNEUndoListDialog) GNEUndoListDialogMap[]
@ MID_GNE_SET_ATTRIBUTE
attribute edited
@ MID_CHOOSEN_OPERATION
set type of selection
#define GUIDesignTextFieldFixed(width)
text field with fixed width
#define GUIDesignTextField
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignRadioButtonSquared
design for radio button squared
#define GUIDesignBackgroundColorRed
red background color (for invalid text)
#define GUIDesignTextFieldNCol
Num of column of text field.
#define GUIDesignBackgroundColorWhite
white background color (for valid text)
#define GUIDesignScrollWindowFixed(width, height)
design for the content scroll of UndoList
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frame extended in all directions
#define GUIDesignLabelIconThick
label squared over frame with thick and with text justify to center
GUIIcon
An enumeration of icons used by the gui applications.
The main window of Netedit.
GNEUndoList * getUndoList()
get pointer to undoList
GNEApplicationWindow * myApplicationWindow
FOX needs this.
OpenType
Open dialog type.
const std::string getTimeStamp() const
get timeStamp
const std::string getDescription() const
get description
bool end() const
check if iterator is at the end
FXIcon * getIcon() const
get icon
row used for show GUI row elements
void checkRow()
check row and set background green
const FXRadioButton * getRadioButton() const
get radio button (read only)
int getIndex() const
get index
void setBlueBackground()
set blue background
void setRedBackground()
set red background
GUIRow(GNEUndoListDialog *undoListDialog, FXVerticalFrame *mainFrame, MFXStaticToolTip *staticToolTip)
constructor
void update(const UndoListRow &row)
update row
void updateList()
FOX needs this.
long onCmdSelectRow(FXObject *, FXSelector, void *)
event after select row
~GNEUndoListDialog()
destructor
std::vector< GUIRow * > myGUIRows
vector with rows
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
void undo()
undo the last command group
void redo()
redo the last command group
dialog arguments, used for certain modal dialogs that can not be edited using tab
int index
index uses for count undo/redos
FXIcon * icon
icon associated with undo/redo operation
std::string timestamp
timestamp
UndoListRow(const int index_, FXIcon *icon_, const std::string description_, const std::string timestamp_)
constructor
std::string description
definition of undo/redo operation