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

Dialog for netgenerate tool dialog. More...

#include <GNENetgenerateDialog.h>

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

Public Member Functions

 GNENetgenerateDialog (GNEApplicationWindow *GNEApp)
 Constructor.
 
void openDialog ()
 open dialog
 
 ~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.
 

Private Member Functions

 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

Dialog for netgenerate tool dialog.

Definition at line 40 of file GNENetgenerateDialog.h.

Constructor & Destructor Documentation

◆ GNENetgenerateDialog() [1/3]

◆ ~GNENetgenerateDialog()

GNENetgenerateDialog::~GNENetgenerateDialog ( )

destructor

Definition at line 100 of file GNENetgenerateDialog.cpp.

◆ GNENetgenerateDialog() [2/3]

GNENetgenerateDialog::GNENetgenerateDialog ( )
protected

FOX needs this.

Definition at line 293 of file GNENetgenerateDialog.cpp.

◆ GNENetgenerateDialog() [3/3]

GNENetgenerateDialog::GNENetgenerateDialog ( const GNENetgenerateDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onCmdAdvanced()

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

event after press advanced button

Definition at line 261 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 286 of file GNENetgenerateDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenOutputFile()

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

open output file

Definition at line 132 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 252 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 159 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 144 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 229 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 206 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 182 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 270 of file GNENetgenerateDialog.cpp.

References GNEApplicationWindow::getNetgenerateOptions(), and myGNEApp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog()

◆ operator=()

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

Invalidated assignment operator.

Friends And Related Symbol Documentation

◆ GNENetgenerateDialogElements

friend class GNENetgenerateDialogElements
friend

FOX-declaration.

declare friend class

Definition at line 45 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().


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