121 new FXLabel(
this, category.c_str(),
nullptr,
GUIDesignLabel(JUSTIFY_NORMAL));
133 const std::string& parameter,
Option* option) :
192 return myResetButton->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
194 return myResetButton->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
207 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
"") {
262 const std::string& useCurrent) :
263 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
265 if (useCurrent.size() > 0) {
266 myCurrentButton = new MFXButtonTooltip(myElementsFrame, applicationWindow->getStaticTooltipMenu(),
"",
267 GUIIconSubSys::getIcon(GUIIcon::CURRENT), this, MID_GNE_USE_CURRENT, GUIDesignButtonIcon);
268 myCurrentButton->setTipText(TLF(
"Use current % file", useCurrent).c_str());
291 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
325 const auto selectedEdges =
myToolDialogParent->getApplicationWindow()->getViewNet()->getNet()->getAttributeCarriers()->getSelectedEdges();
327 std::string selectedEdgesStr;
328 for (
const auto& edge : selectedEdges) {
329 selectedEdgesStr.append(edge->getID());
330 if (edge != selectedEdges.back()) {
331 selectedEdgesStr.append(
" ");
343 if (viewNet ==
nullptr) {
344 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
345 }
else if (viewNet->getNet()->getAttributeCarriers()->getNumberOfSelectedEdges() == 0) {
346 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
348 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
367 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"network")) {
394 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
396 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
398 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
411 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"additional")) {
419 TL(
"Additional elements file"),
438 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
440 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
442 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
455 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"route")) {
463 TL(
"Route elements file"),
482 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
484 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
486 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
499 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"data")) {
507 TL(
"Data elements file"),
526 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
528 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
530 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
543 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"sumo config")) {
551 TL(
"sumo config file"),
570 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
572 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
574 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
587 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
626 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
665 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
708 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
751 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
784 myOption->set(
"True",
"True",
false);
790 myOption->set(
"False",
"False",
false);
@ MID_GNE_SET_ATTRIBUTE
attribute edited
@ MID_GNE_SELECT
select element
@ MID_GNE_USE_CURRENT
use current network/additional/route/edgedata
@ MID_GNE_RESET
reset element
#define GUIDesignButtonIcon
button only with icon
#define GUIDesignTextField
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
#define GUIDesignLabel(justify)
#define GUIDesignTextFieldNCol
Num of column of text field.
#define GUIDesignTextColorBlue
blue color (for default text)
#define GUIDesignCheckButton
checkButton placed in left position
#define GUIDesignTextFieldRestricted(type)
text field extended over Frame with thick frame (int)
#define GUIDesignAuxiliarFrame
design for auxiliar (Without borders) frame extended in all directions
#define GUIDesignLabelThickedFixed(width)
label thicked, icon before text, text centered and custom width
const double INVALID_DOUBLE
invalid double
const int INVALID_INT
invalid int
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=gPrecision)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Result getResult() const
get result to indicate if this dialog was closed accepting or rejecting changes
std::vector< std::string > getFilenames() const
Return empty-string terminated list of selected file names, or NULL if none selected.
std::string getFilename() const
Return file name, if any.
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
MFXStaticToolTip * getStaticTooltipMenu() const
get static toolTip for menus
A class representing a single program option.
const std::string & getDescription() const
Returns the description of what this option does.
const std::string & getListSeparator() const
retrieve list separator
virtual const std::string & getTypeName() const
Returns the mml-type name of this option.
virtual bool getBool() const
Returns the stored boolean value.
const std::string & getSubTopic() const
Returns the subtopic to which this option belongs.
bool isRequired() const
check if option is required
const std::string & getValueString() const
Returns the string-representation of the value.
static OptionsCont & getOptions()
Retrieves the options.
static StringBijection< SumoConfigFileExtension > SumoConfigFileExtensions
sumo config file extensions
static StringBijection< AdditionalFileExtension > AdditionalFileExtensions
additional file extensions
static StringBijection< RouteFileExtension > RouteFileExtensions
route file extensions
static StringBijection< XMLFileExtension > XMLFileExtensions
XML file Extensions.
static StringBijection< EdgeDataFileExtension > EdgeDataFileExtensions
edgedata file extensions
static StringBijection< NetFileExtension > NetFileExtensions
net file extensions