108 new FXLabel(
this, category.c_str(),
nullptr,
GUIDesignLabel(JUSTIFY_NORMAL));
120 const std::string& parameter,
Option* option) :
179 return myResetButton->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
181 return myResetButton->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
194 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
"") {
210 if (
myOption->getListSeparator() !=
"") {
243 const std::string& useCurrent) :
244 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
246 if (useCurrent.size() > 0) {
247 myCurrentButton = new MFXButtonTooltip(myElementsFrame, applicationWindow->getStaticTooltipMenu(),
"",
248 GUIIconSubSys::getIcon(GUIIcon::CURRENT), this, MID_GNE_USE_CURRENT, GUIDesignButtonIcon);
249 myCurrentButton->setTipText(TLF(
"Use current % file", useCurrent).c_str());
272 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
306 const auto selectedEdges =
myToolDialogParent->getApplicationWindow()->getViewNet()->getNet()->getAttributeCarriers()->getSelectedEdges();
308 std::string selectedEdgesStr;
309 for (
const auto& edge : selectedEdges) {
310 selectedEdgesStr.append(edge->getID());
311 if (edge != selectedEdges.back()) {
312 selectedEdgesStr.append(
" ");
324 if (viewNet ==
nullptr) {
325 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
326 }
else if (viewNet->getNet()->getAttributeCarriers()->getNumberOfSelectedEdges() == 0) {
327 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
329 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
348 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"network")) {
356 if (
myOption->getListSeparator() !=
"") {
382 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
384 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
386 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
399 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"additional")) {
407 if (
myOption->getListSeparator() !=
"") {
412 TL(
"Additional elements file"),
433 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
435 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
437 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
450 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"route")) {
458 if (
myOption->getListSeparator() !=
"") {
463 TL(
"Route elements file"),
484 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
486 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
488 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
501 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"data")) {
509 if (
myOption->getListSeparator() !=
"") {
514 TL(
"Data elements file"),
535 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
537 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
539 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
552 FileNameArgument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option,
TL(
"sumo config")) {
560 if (
myOption->getListSeparator() !=
"") {
565 TL(
"sumo config file"),
586 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
588 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_DISABLE),
nullptr);
590 return sender->handle(
this, FXSEL(SEL_COMMAND, ID_ENABLE),
nullptr);
603 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
642 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
681 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
724 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
767 Argument(toolDialogParent, pythonTool, applicationWindow, argumentFrame, name, option) {
800 myOption->set(
"True",
"True",
false);
806 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 toString(const T &t, std::streamsize accuracy=gPrecision)
The main window of Netedit.
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.
virtual const std::string & getTypeName() const
Returns the mml-type name of this option.
virtual bool getBool() const
Returns the stored boolean value.
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