53 while (!itRedo.
end()) {
59 while (!itUndo.
end()) {
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) {
182 std::string textFieldTrimmed;
183 for (
int i = 0; i < 57; i++) {
186 textFieldTrimmed.append(
"...");
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.
FXVerticalFrame * myContentFrame
content frame
GNEApplicationWindow * myApplicationWindow
FOX needs this.
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
OpenType
Open dialog type.
GNEDialog(GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode)
basic constructor
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
FXTextField * myTextFieldTimeStamp
textField timeStamp
MFXTextFieldIcon * myTextFieldDescription
textField description
GUIRow(GNEUndoListDialog *undoListDialog, FXVerticalFrame *mainFrame, MFXStaticToolTip *staticToolTip)
constructor
void update(const UndoListRow &row)
update row
FXLabel * myIcon
label with icon
FXRadioButton * myRadioButton
radioButton
GNEUndoListDialog(GNEApplicationWindow *applicationWindow)
FOX-declaration.
void updateList()
FOX needs this.
long onCmdSelectRow(FXObject *, FXSelector, void *)
event after select row
~GNEUndoListDialog()
destructor
FXVerticalFrame * myRowFrame
frame for rows
std::vector< GUIRow * > myGUIRows
vector with rows
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
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