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

Abstract dialog for tools. More...

#include <GNERunNetgenerateDialog.h>

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

Public Member Functions

GNEApplicationWindowgetGNEApp () const
 get to GNEApplicationWindow
 
 GNERunNetgenerateDialog (GNEApplicationWindow *GNEApp)
 FOX-declaration.
 
void run (const OptionsCont *netgenerateOptions)
 run tool (this open windows)
 
 ~GNERunNetgenerateDialog ()
 destructor
 
FOX-callbacks
long onCmdSaveLog (FXObject *, FXSelector, void *)
 event after press save button
 
long onCmdAbort (FXObject *, FXSelector, void *)
 event after press abort button
 
long onCmdRerun (FXObject *, FXSelector, void *)
 event after press rerun button
 
long onCmdBack (FXObject *, FXSelector, void *)
 event after press back button
 
long onCmdClose (FXObject *, FXSelector, void *)
 event after press close button
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button
 
long onThreadEvent (FXObject *, FXSelector, void *)
 called when the thread signals an event
 

Protected Member Functions

 GNERunNetgenerateDialog ()
 FOX needs this.
 
void updateDialog ()
 update toolDialog
 

Private Member Functions

 GNERunNetgenerateDialog (const GNERunNetgenerateDialog &)=delete
 Invalidated copy constructor.
 
GNERunNetgenerateDialogoperator= (const GNERunNetgenerateDialog &)=delete
 Invalidated assignment operator.
 

Private Attributes

FXButton * myAbortButton = nullptr
 abort button
 
FXButton * myBackButton = nullptr
 back button
 
FXButton * myCloseButton = nullptr
 close button
 
bool myError = false
 flag to check if there is an error
 
MFXSynchQue< GUIEvent * > myEvents
 List of received events.
 
GNEApplicationWindowmyGNEApp
 pointer to GNEApplicationWindow
 
const OptionsContmyNetgenerateOptions
 netgenerate options
 
FXButton * myRerunButton = nullptr
 rerun button
 
GNERunNetgeneratemyRunNetgenerate = nullptr
 thread for running tool
 
FXText * myText = nullptr
 text
 
FXEX::MFXThreadEvent myThreadEvent
 io-event with the runner thread
 

Detailed Description

Abstract dialog for tools.

Definition at line 45 of file GNERunNetgenerateDialog.h.

Constructor & Destructor Documentation

◆ GNERunNetgenerateDialog() [1/3]

◆ ~GNERunNetgenerateDialog()

GNERunNetgenerateDialog::~GNERunNetgenerateDialog ( )

destructor

Definition at line 102 of file GNERunNetgenerateDialog.cpp.

◆ GNERunNetgenerateDialog() [2/3]

GNERunNetgenerateDialog::GNERunNetgenerateDialog ( )
protected

FOX needs this.

Definition at line 268 of file GNERunNetgenerateDialog.cpp.

◆ GNERunNetgenerateDialog() [3/3]

GNERunNetgenerateDialog::GNERunNetgenerateDialog ( const GNERunNetgenerateDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getGNEApp()

GNEApplicationWindow * GNERunNetgenerateDialog::getGNEApp ( ) const

get to GNEApplicationWindow

Definition at line 106 of file GNERunNetgenerateDialog.cpp.

References myGNEApp.

◆ onCmdAbort()

long GNERunNetgenerateDialog::onCmdAbort ( FXObject *  ,
FXSelector  ,
void *   
)

event after press abort button

Definition at line 164 of file GNERunNetgenerateDialog.cpp.

References GNERunNetgenerate::abort(), and myRunNetgenerate.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdBack()

long GNERunNetgenerateDialog::onCmdBack ( FXObject *  ,
FXSelector  ,
void *   
)

event after press back button

Definition at line 187 of file GNERunNetgenerateDialog.cpp.

References MID_GNE_NETGENERATE, myGNEApp, and onCmdCancel().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

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

event after press cancel button

Definition at line 211 of file GNERunNetgenerateDialog.cpp.

References GNERunNetgenerate::abort(), and myRunNetgenerate.

Referenced by FXDEFMAP(), onCmdBack(), and onCmdClose().

Here is the caller graph for this function:

◆ onCmdClose()

long GNERunNetgenerateDialog::onCmdClose ( FXObject *  ,
FXSelector  ,
void *   
)

event after press close button

Definition at line 195 of file GNERunNetgenerateDialog.cpp.

References MID_GNE_POSTPROCESSINGNETGENERATE, myError, myGNEApp, myText, and onCmdCancel().

Referenced by FXDEFMAP(), and onThreadEvent().

Here is the caller graph for this function:

◆ onCmdRerun()

long GNERunNetgenerateDialog::onCmdRerun ( FXObject *  ,
FXSelector  ,
void *   
)

event after press rerun button

Definition at line 172 of file GNERunNetgenerateDialog.cpp.

References myError, myNetgenerateOptions, myRunNetgenerate, myText, and GNERunNetgenerate::run().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveLog()

long GNERunNetgenerateDialog::onCmdSaveLog ( FXObject *  ,
FXSelector  ,
void *   
)

event after press save button

Definition at line 150 of file GNERunNetgenerateDialog.cpp.

References OutputDevice::close(), OutputDevice::getDevice(), myText, and GNEApplicationWindowHelper::saveToolLog().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onThreadEvent()

long GNERunNetgenerateDialog::onThreadEvent ( FXObject *  ,
FXSelector  ,
void *   
)

called when the thread signals an event

Definition at line 221 of file GNERunNetgenerateDialog.cpp.

References MFXSynchQue< T, Container >::empty(), ERROR_OCCURRED, GUIEvent_Message::getMsg(), GUIEvent::getOwnType(), MESSAGE_OCCURRED, myError, myEvents, myText, onCmdClose(), OUTPUT_OCCURRED, MFXSynchQue< T, Container >::pop(), TOOL_ENDED, MFXSynchQue< T, Container >::top(), and updateDialog().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ run()

void GNERunNetgenerateDialog::run ( const OptionsCont netgenerateOptions)

run tool (this open windows)

Definition at line 112 of file GNERunNetgenerateDialog.cpp.

References myError, myNetgenerateOptions, myRunNetgenerate, myText, and GNERunNetgenerate::run().

◆ updateDialog()

void GNERunNetgenerateDialog::updateDialog ( )
protected

update toolDialog

Definition at line 131 of file GNERunNetgenerateDialog.cpp.

References GNERunNetgenerate::isRunning(), myAbortButton, myBackButton, myCloseButton, myRerunButton, and myRunNetgenerate.

Referenced by onThreadEvent().

Here is the caller graph for this function:

Field Documentation

◆ myAbortButton

FXButton* GNERunNetgenerateDialog::myAbortButton = nullptr
private

abort button

Definition at line 105 of file GNERunNetgenerateDialog.h.

Referenced by updateDialog().

◆ myBackButton

FXButton* GNERunNetgenerateDialog::myBackButton = nullptr
private

back button

Definition at line 111 of file GNERunNetgenerateDialog.h.

Referenced by updateDialog().

◆ myCloseButton

FXButton* GNERunNetgenerateDialog::myCloseButton = nullptr
private

close button

Definition at line 114 of file GNERunNetgenerateDialog.h.

Referenced by updateDialog().

◆ myError

bool GNERunNetgenerateDialog::myError = false
private

flag to check if there is an error

Definition at line 126 of file GNERunNetgenerateDialog.h.

Referenced by onCmdClose(), onCmdRerun(), onThreadEvent(), and run().

◆ myEvents

MFXSynchQue<GUIEvent*> GNERunNetgenerateDialog::myEvents
private

List of received events.

Definition at line 120 of file GNERunNetgenerateDialog.h.

Referenced by onThreadEvent().

◆ myGNEApp

GNEApplicationWindow* GNERunNetgenerateDialog::myGNEApp
private

pointer to GNEApplicationWindow

Definition at line 96 of file GNERunNetgenerateDialog.h.

Referenced by getGNEApp(), onCmdBack(), and onCmdClose().

◆ myNetgenerateOptions

const OptionsCont* GNERunNetgenerateDialog::myNetgenerateOptions
private

netgenerate options

Definition at line 117 of file GNERunNetgenerateDialog.h.

Referenced by onCmdRerun(), and run().

◆ myRerunButton

FXButton* GNERunNetgenerateDialog::myRerunButton = nullptr
private

rerun button

Definition at line 108 of file GNERunNetgenerateDialog.h.

Referenced by updateDialog().

◆ myRunNetgenerate

GNERunNetgenerate* GNERunNetgenerateDialog::myRunNetgenerate = nullptr
private

thread for running tool

Definition at line 99 of file GNERunNetgenerateDialog.h.

Referenced by onCmdAbort(), onCmdCancel(), onCmdRerun(), run(), and updateDialog().

◆ myText

FXText* GNERunNetgenerateDialog::myText = nullptr
private

text

Definition at line 102 of file GNERunNetgenerateDialog.h.

Referenced by onCmdClose(), onCmdRerun(), onCmdSaveLog(), onThreadEvent(), and run().

◆ myThreadEvent

FXEX::MFXThreadEvent GNERunNetgenerateDialog::myThreadEvent
private

io-event with the runner thread

Definition at line 123 of file GNERunNetgenerateDialog.h.


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