Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNENetgenerateDialog Class Reference

#include <GNENetgenerateDialog.h>

Inheritance diagram for GNENetgenerateDialog:
[legend]
Collaboration diagram for GNENetgenerateDialog:
[legend]

Public Member Functions

 GNENetgenerateDialog (GNEApplicationWindow *GNEApp)
 Constructor.
 
void openDialog ()
 open dialog
 
void runInternalTest (const InternalTestStep::DialogTest *modalArguments)
 run internal test
 
 ~GNENetgenerateDialog ()
 destructor
 
FOX-callbacks
long onCmdOpenOutputFile (FXObject *, FXSelector, void *)
 open output file
 
long onCmdSetOutput (FXObject *, FXSelector, void *)
 set output file
 
long onCmdSetGrid (FXObject *, FXSelector, void *)
 set grid mode
 
long onCmdSetSpider (FXObject *, FXSelector, void *)
 set spider
 
long onCmdSetRandomGrid (FXObject *, FXSelector, void *)
 set random grid
 
long onCmdSetRandom (FXObject *, FXSelector, void *)
 set random
 
long onCmdRun (FXObject *, FXSelector, void *)
 event after press run button
 
long onCmdAdvanced (FXObject *, FXSelector, void *)
 event after press advanced button
 
long onUpdSettingsConfigured (FXObject *, FXSelector, void *)
 check if settings are enabled
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button
 

Protected Member Functions

 GNENetgenerateDialog ()
 FOX needs this.
 
FXuint openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR)
 Run modal invocation of the dialog.
 
FOX-callbacks
long onCmdAccept (FXObject *, FXSelector, void *)
 called when accept button is pressed
 
long onCmdInternalTest (FXObject *, FXSelector, void *ptr)
 event used in internal tests
 

Protected Attributes

bool myTesting = false
 flag to indicate if this dialog is being tested using internal test
 

Private Member Functions

FXuint execute (FXuint placement=PLACEMENT_CURSOR)
 make execute private
 
 GNENetgenerateDialog (const GNENetgenerateDialog &)=delete
 Invalidated copy constructor.
 
GNENetgenerateDialogoperator= (const GNENetgenerateDialog &)=delete
 Invalidated assignment operator.
 

Private Attributes

FXButton * myAdvancedButton = nullptr
 advanced button
 
GNEApplicationWindowmyGNEApp
 pointer to GNEApplicationWindow
 
MFXCheckableButtonmyGridNetworkButton = nullptr
 grid network
 
FXLabel * myGridNetworkLabel = nullptr
 grid network
 
FXTextField * myOutputTextField = nullptr
 output text field
 
MFXCheckableButtonmyRandomGridNetworkButton = nullptr
 random grid network
 
FXLabel * myRandomGridNetworkLabel = nullptr
 random grid network
 
MFXCheckableButtonmyRandomNetworkButton = nullptr
 grid network
 
FXLabel * myRandomNetworkLabel = nullptr
 grid network
 
FXButton * myRunButton = nullptr
 run button
 
MFXCheckableButtonmySpiderNetworkButton = nullptr
 grid network
 
FXLabel * mySpiderNetworkLabel = nullptr
 grid network
 

Friends

class GNENetgenerateDialogElements
 FOX-declaration.
 

Detailed Description

Definition at line 37 of file GNENetgenerateDialog.h.

Constructor & Destructor Documentation

◆ GNENetgenerateDialog() [1/3]

◆ ~GNENetgenerateDialog()

GNENetgenerateDialog::~GNENetgenerateDialog ( )

destructor

Definition at line 104 of file GNENetgenerateDialog.cpp.

◆ GNENetgenerateDialog() [2/3]

GNENetgenerateDialog::GNENetgenerateDialog ( )
protected

FOX needs this.

Definition at line 303 of file GNENetgenerateDialog.cpp.

◆ GNENetgenerateDialog() [3/3]

GNENetgenerateDialog::GNENetgenerateDialog ( const GNENetgenerateDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ execute()

FXuint MFXDialogBox::execute ( FXuint  placement = PLACEMENT_CURSOR)
privateinherited

make execute private

Definition at line 128 of file MFXDialogBox.cpp.

◆ onCmdAccept()

long MFXDialogBox::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

called when accept button is pressed

Definition at line 93 of file MFXDialogBox.cpp.

References MFXDialogBox::myTesting.

Referenced by FXDEFMAP(), and GNEAllowVClassesDialog::onCmdAccept().

Here is the caller graph for this function:

◆ onCmdAdvanced()

long GNENetgenerateDialog::onCmdAdvanced ( FXObject *  ,
FXSelector  ,
void *   
)

event after press advanced button

Definition at line 271 of file GNENetgenerateDialog.cpp.

References MID_GNE_NETGENERATEOPTIONS, and myGNEApp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

long GNENetgenerateDialog::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)

event after press cancel button

Definition at line 296 of file GNENetgenerateDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInternalTest()

long MFXDialogBox::onCmdInternalTest ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

event used in internal tests

Definition at line 115 of file MFXDialogBox.cpp.

References MFXDialogBox::runInternalTest().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenOutputFile()

long GNENetgenerateDialog::onCmdOpenOutputFile ( FXObject *  ,
FXSelector  ,
void *   
)

open output file

Definition at line 142 of file GNENetgenerateDialog.cpp.

References myOutputTextField, and GNEApplicationWindowHelper::openNetworkFileDialog().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRun()

long GNENetgenerateDialog::onCmdRun ( FXObject *  ,
FXSelector  ,
void *   
)

event after press run button

Definition at line 262 of file GNENetgenerateDialog.cpp.

References MID_GNE_RUNNETGENERATE, and myGNEApp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetGrid()

long GNENetgenerateDialog::onCmdSetGrid ( FXObject *  ,
FXSelector  ,
void *   
)

set grid mode

Definition at line 169 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP(), and openDialog().

Here is the caller graph for this function:

◆ onCmdSetOutput()

long GNENetgenerateDialog::onCmdSetOutput ( FXObject *  ,
FXSelector  ,
void *   
)

set output file

Definition at line 154 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), SUMOXMLDefinitions::isValidFilename(), myGNEApp, myOutputTextField, and OptionsCont::resetWritable().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetRandom()

long GNENetgenerateDialog::onCmdSetRandom ( FXObject *  ,
FXSelector  ,
void *   
)

set random

Definition at line 239 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP(), and openDialog().

Here is the caller graph for this function:

◆ onCmdSetRandomGrid()

long GNENetgenerateDialog::onCmdSetRandomGrid ( FXObject *  ,
FXSelector  ,
void *   
)

set random grid

Definition at line 216 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP(), and openDialog().

Here is the caller graph for this function:

◆ onCmdSetSpider()

long GNENetgenerateDialog::onCmdSetSpider ( FXObject *  ,
FXSelector  ,
void *   
)

set spider

Definition at line 192 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), myGNEApp, myGridNetworkButton, myGridNetworkLabel, myRandomGridNetworkButton, myRandomGridNetworkLabel, myRandomNetworkButton, myRandomNetworkLabel, mySpiderNetworkButton, mySpiderNetworkLabel, OptionsCont::resetWritable(), and MFXCheckableButton::setChecked().

Referenced by FXDEFMAP(), and openDialog().

Here is the caller graph for this function:

◆ onUpdSettingsConfigured()

long GNENetgenerateDialog::onUpdSettingsConfigured ( FXObject *  sender,
FXSelector  ,
void *   
)

check if settings are enabled

Definition at line 280 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), and myGNEApp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog()

◆ openModalDialog()

FXuint MFXDialogBox::openModalDialog ( InternalTest internalTests,
FXuint  placement = PLACEMENT_CURSOR 
)
inherited

Run modal invocation of the dialog.

Definition at line 64 of file MFXDialogBox.cpp.

References InternalTest::getCurrentStep(), InternalTestStep::getModalDialogTestSteps(), and MFXDialogBox::myTesting.

Referenced by GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), GNEAllowVClassesDialog::openDialog(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().

Here is the caller graph for this function:

◆ operator=()

GNENetgenerateDialog & GNENetgenerateDialog::operator= ( const GNENetgenerateDialog )
privatedelete

Invalidated assignment operator.

◆ runInternalTest()

void GNENetgenerateDialog::runInternalTest ( const InternalTestStep::DialogTest modalArguments)
virtual

run internal test

Reimplemented from MFXDialogBox.

Definition at line 136 of file GNENetgenerateDialog.cpp.

Friends And Related Symbol Documentation

◆ GNENetgenerateDialogElements

friend class GNENetgenerateDialogElements
friend

FOX-declaration.

declare friend class

Definition at line 42 of file GNENetgenerateDialog.h.

Field Documentation

◆ myAdvancedButton

FXButton* GNENetgenerateDialog::myAdvancedButton = nullptr
private

advanced button

Definition at line 131 of file GNENetgenerateDialog.h.

◆ myGNEApp

◆ myGridNetworkButton

MFXCheckableButton* GNENetgenerateDialog::myGridNetworkButton = nullptr
private

grid network

Definition at line 113 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().

◆ myGridNetworkLabel

FXLabel* GNENetgenerateDialog::myGridNetworkLabel = nullptr
private

grid network

Definition at line 101 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().

◆ myOutputTextField

FXTextField* GNENetgenerateDialog::myOutputTextField = nullptr
private

output text field

Definition at line 125 of file GNENetgenerateDialog.h.

Referenced by onCmdOpenOutputFile(), onCmdSetOutput(), and openDialog().

◆ myRandomGridNetworkButton

MFXCheckableButton* GNENetgenerateDialog::myRandomGridNetworkButton = nullptr
private

random grid network

Definition at line 119 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().

◆ myRandomGridNetworkLabel

FXLabel* GNENetgenerateDialog::myRandomGridNetworkLabel = nullptr
private

random grid network

Definition at line 107 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().

◆ myRandomNetworkButton

MFXCheckableButton* GNENetgenerateDialog::myRandomNetworkButton = nullptr
private

grid network

Definition at line 122 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().

◆ myRandomNetworkLabel

FXLabel* GNENetgenerateDialog::myRandomNetworkLabel = nullptr
private

grid network

Definition at line 110 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().

◆ myRunButton

FXButton* GNENetgenerateDialog::myRunButton = nullptr
private

run button

Definition at line 128 of file GNENetgenerateDialog.h.

◆ mySpiderNetworkButton

MFXCheckableButton* GNENetgenerateDialog::mySpiderNetworkButton = nullptr
private

grid network

Definition at line 116 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), onCmdSetSpider(), and openDialog().

◆ mySpiderNetworkLabel

FXLabel* GNENetgenerateDialog::mySpiderNetworkLabel = nullptr
private

grid network

Definition at line 104 of file GNENetgenerateDialog.h.

Referenced by onCmdSetGrid(), onCmdSetRandom(), onCmdSetRandomGrid(), and onCmdSetSpider().

◆ myTesting

bool MFXDialogBox::myTesting = false
protectedinherited

flag to indicate if this dialog is being tested using internal test

Definition at line 66 of file MFXDialogBox.h.

Referenced by MFXDialogBox::onCmdAccept(), MFXDialogBox::onCmdCancel(), and MFXDialogBox::openModalDialog().


The documentation for this class was generated from the following files: