Aimsun Next Scripting  22
Public Member Functions | List of all members
DialogSnipper Class Reference
Inheritance diagram for DialogSnipper:

Public Member Functions

 DialogSnipper (GKObject *iObject)
 
 DialogSnipper (QDialog *widget)
 
void toImage (const QString &iFileName, const QString &iWidgetName)
 
void setTabByName (const QString &iTabName1, const QString &iTabName2)
 
void setCombo (const QString &comboName, int index)
 
QString getComboNames () const
 
QString getButtonNames () const
 
QString getToolButtonNames () const
 
QString getTimeEditNames () const
 
QString getCheckBoxNames () const
 
QString getTimeDurationNames () const
 
void clickButton (const QString &buttonName)
 
void toggleButton (const QString &buttonName)
 
void setTimeEdit (const QString &editName, const QTime &time)
 
void setCheckBox (const QString &checkboxName, bool value)
 
void setTimeDuration (const QString &editName, const GKTimeDuration &duration)
 
void resize (int x, int y)
 
void setGraphTitle (const QString &name, const QString &title)
 
void setGraphXLabel (const QString &name, const QString &label)
 
void setGraphYLabel (const QString &name, const QString &label)
 
void setGraphBackGround (const QString &name, const QString &color)
 
void enableGrid (const QString &name, bool x, bool y)
 
void drawGraphLine (const QString &name, double factor, const QString &color, double thickness)
 
void drawGEHArea (const QString &name, double gehValue, const QString &color, int density)
 

Constructor & Destructor Documentation

◆ DialogSnipper() [1/2]

DialogSnipper::DialogSnipper ( GKObject iObject)

Instantiate Dialog Snipper for an Aimsun object

◆ DialogSnipper() [2/2]

DialogSnipper::DialogSnipper ( QDialog *  widget)

Instantiate Dialog Snipper for a QDialog

Member Function Documentation

◆ clickButton()

void DialogSnipper::clickButton ( const QString &  buttonName)

Click the button with buttonName

◆ drawGEHArea()

void DialogSnipper::drawGEHArea ( const QString &  name,
double  gehValue,
const QString &  color,
int  density 
)

Draw the GEH area for the graph with name

◆ drawGraphLine()

void DialogSnipper::drawGraphLine ( const QString &  name,
double  factor,
const QString &  color,
double  thickness 
)

Draw a cone with constant factor around the perfect regression line for the graph with name

◆ enableGrid()

void DialogSnipper::enableGrid ( const QString &  name,
bool  x,
bool  y 
)

Enable horizontal and/or vertical grid for the graph with name

◆ getButtonNames()

QString DialogSnipper::getButtonNames ( ) const

Get a coma-separated list with all the button names

◆ getCheckBoxNames()

QString DialogSnipper::getCheckBoxNames ( ) const

Get a coma-separated list with all the check-box names

◆ getComboNames()

QString DialogSnipper::getComboNames ( ) const

Get a coma-separated list with all the combo names

◆ getTimeDurationNames()

QString DialogSnipper::getTimeDurationNames ( ) const

Get a coma-separated list with all the time-duration names

◆ getTimeEditNames()

QString DialogSnipper::getTimeEditNames ( ) const

Get a coma-separated list with all the time-edit names

◆ getToolButtonNames()

QString DialogSnipper::getToolButtonNames ( ) const

Get a coma-separated list with all the tool-button names

◆ resize()

void DialogSnipper::resize ( int  x,
int  y 
)

Resize the dialog to x,y

◆ setCheckBox()

void DialogSnipper::setCheckBox ( const QString &  checkboxName,
bool  value 
)

Set the check-box with checkboxName to value

◆ setCombo()

void DialogSnipper::setCombo ( const QString &  comboName,
int  index 
)

Set combo with comboName to the specified index

◆ setGraphBackGround()

void DialogSnipper::setGraphBackGround ( const QString &  name,
const QString &  color 
)

Set the background of the graph with name to color

◆ setGraphTitle()

void DialogSnipper::setGraphTitle ( const QString &  name,
const QString &  title 
)

Set the title of the graph with name to title

◆ setGraphXLabel()

void DialogSnipper::setGraphXLabel ( const QString &  name,
const QString &  label 
)

Set the x-label of the graph with name to label

◆ setGraphYLabel()

void DialogSnipper::setGraphYLabel ( const QString &  name,
const QString &  label 
)

Set the y-label of the graph with name to label

◆ setTabByName()

void DialogSnipper::setTabByName ( const QString &  iTabName1,
const QString &  iTabName2 
)

Set focus on tab with iTabName1, and subtab iTabName2 if any

◆ setTimeDuration()

void DialogSnipper::setTimeDuration ( const QString &  editName,
const GKTimeDuration duration 
)

Set the time-duration with editName to duration

◆ setTimeEdit()

void DialogSnipper::setTimeEdit ( const QString &  editName,
const QTime &  time 
)

Set the time-edit with editName to time ("hh:mm")

◆ toggleButton()

void DialogSnipper::toggleButton ( const QString &  buttonName)

Toggle the button with buttonName

◆ toImage()

void DialogSnipper::toImage ( const QString &  iFileName,
const QString &  iWidgetName 
)

Create image of dialog if iWidgetName is empty, or the widget with iWidgetName in the dialog if iWidgetName is defined.

© Aimsun SLU
Aimsun ®