SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
SC_MainWindowCommandLine Class Reference
Inheritance diagram for SC_MainWindowCommandLine:

Classes

struct  _progressbar_state
 
struct  _widget_state
 

Public Types

enum  state_e {
  IDLE = 0, SIMULATING, SIMULATING_MULTIPLE, SIMULATING_PAUSED,
  SIMULATING_MULTIPLE_PAUSED, STATE_COUNT
}
 
enum  tabs_e {
  CMDLINE_TAB_WELCOME = 0, CMDLINE_TAB_IMPORT, CMDLINE_TAB_OPTIONS, CMDLINE_TAB_SIMULATE,
  CMDLINE_TAB_RESULTS, CMDLINE_TAB_OVERRIDES, CMDLINE_TAB_HELP, CMDLINE_TAB_LOG,
  CMDLINE_TAB_SPELLQUERY, CMDLINE_TAB_IMPORT_NEW, CMDLINE_TAB_BIS, CMDLINE_TAB_RECENT,
  CMDLINE_TAB_ADDON, CMDLINE_TAB_CUSTOM, CMDLINE_TAB_COUNT
}
 

Public Slots

void mainButtonClicked ()
 
void pauseButtonClicked ()
 
void queueButtonClicked ()
 
void setTab (main_tabs_e tab)
 
void setTab (import_tabs_e tab)
 
void setTab (tabs_e tab)
 
void setState (state_e state)
 
void commandLineTextEditedSlot (const QString &text)
 

Signals

void pauseClicked ()
 
void resumeClicked ()
 
void simulateClicked ()
 
void queueClicked ()
 
void importClicked ()
 
void saveLogClicked ()
 
void saveResultsClicked ()
 
void cancelSimulationClicked ()
 
void cancelImportClicked ()
 
void cancelAllSimulationClicked ()
 
void backButtonClicked ()
 
void forwardButtonClicked ()
 
void switchToLeftSubTab ()
 
void switchToRightSubTab ()
 
void currentlyViewedTabCloseRequest ()
 
void commandLineReturnPressed ()
 
void commandLineTextEdited (const QString &)
 
void queryClicked ()
 

Public Member Functions

 SC_MainWindowCommandLine (QWidget *parent=0)
 
state_e currentState () const
 
void setSimulatingProgress (int value, QString format, QString toolTip)
 
int getSimulatingProgress ()
 
void setImportingProgress (int value, QString format, QString toolTip)
 
int getImportingProgress ()
 
void setHelpViewProgress (int value, QString format, QString toolTip)
 
int getHelpViewProgress ()
 
QString commandLineText ()
 
QString commandLineText (main_tabs_e tab)
 
QString commandLineText (import_tabs_e tab)
 
QString commandLineText (tabs_e tab)
 
void setCommandLineText (QString text)
 
void setCommandLineText (main_tabs_e tab, QString text)
 
void setCommandLineText (import_tabs_e tab, QString text)
 
void setCommandLineText (tabs_e tab, QString text)
 
void togglePaused ()
 
void setPaused (bool pause)
 
bool isPaused ()
 

Protected Types

enum  widgets_e {
  BUTTON_MAIN = 0, BUTTON_QUEUE, BUTTON_PREV, BUTTON_NEXT,
  TEXTEDIT_CMDLINE, PROGRESSBAR_WIDGET, BUTTON_PAUSE, WIDGET_COUNT
}
 
enum  progressbar_states_e {
  PROGRESSBAR_IGNORE = 0, PROGRESSBAR_IDLE, PROGRESSBAR_SIMULATING, PROGRESSBAR_IMPORTING,
  PROGRESSBAR_HELP, PROGRESSBAR_STATE_COUNT
}
 

Protected Member Functions

void init ()
 
void initStateInfo ()
 
void initWidgetsToNull ()
 
void initTextStrings ()
 
void initStatesStructToNull ()
 
void initDefaultStates ()
 
void initImportStates ()
 
void initStackedLayout ()
 
void initLogResultsStates ()
 
void initProgressBarStates ()
 
void initCommandLineBuffers ()
 
void initPauseStates ()
 
virtual QWidget * createState (state_e state)
 
virtual void createState_IDLE (QWidget *parent)
 
virtual void createState_SIMULATING (QWidget *parent)
 
virtual void createState_SIMULATING_PAUSED (QWidget *parent)
 
virtual void createState_SIMULATING_MULTIPLE (QWidget *parent)
 
virtual void createState_SIMULATING_MULTIPLE_PAUSED (QWidget *parent)
 
virtual void _createState_SIMULATING (state_e state, QWidget *parent)
 
virtual void createCommandLine (state_e state, QWidget *parent)
 
bool tryToHideWidget (QString *text, QWidget *widget)
 
void emitSignal (QString *text)
 
void setProgressBarProgress (progressbar_states_e state, int value)
 
int getProgressBarProgressForState (progressbar_states_e state)
 
void updateProgressBars ()
 
void adjustText (state_e state, tabs_e tab, widgets_e widget, QString text)
 
void setText (state_e state, tabs_e tab, widgets_e widget, QString *text, QString *tooltip=0)
 
void setProgressBarState (state_e state, tabs_e tab, progressbar_states_e progressbar_state)
 
progressbar_states_e getProgressBarStateForState (state_e state, tabs_e tab)
 
void updateWidget (state_e state, tabs_e tab, widgets_e widget)
 
QString * getText (state_e state, tabs_e tab, widgets_e widget)
 
QString * getToolTip (state_e state, tabs_e tab, widgets_e widget)
 
QWidget * getWidget (state_e state, widgets_e widget)
 
void setWidget (state_e state, widgets_e widget, QWidget *widgetPointer)
 
void setProgressBarFormat (progressbar_states_e state, QString format, bool update=false)
 
void setProgressBarToolTip (progressbar_states_e state, QString toolTip, bool update=false)
 
void updateProgress (progressbar_states_e state, int value, QString format, QString toolTip)
 
tabs_e convertTabsEnum (main_tabs_e tab)
 
tabs_e convertTabsEnum (import_tabs_e tab)
 

Protected Attributes

QString text_simulate
 
QString text_queue
 
QString text_pause
 
QString text_resume
 
QString text_queue_tooltip
 
QString text_cancel
 
QString text_cancel_all
 
QString text_cancel_all_tooltip
 
QString text_save
 
QString text_import
 
QString text_spellquery
 
QString text_prev
 
QString text_next
 
QString text_prev_tooltip
 
QString text_next_tooltip
 
QString text_custom
 
QString text_hide_widget
 
_widget_state states [STATE_COUNT][CMDLINE_TAB_COUNT][WIDGET_COUNT]
 
_progressbar_state progressBarFormat [PROGRESSBAR_STATE_COUNT]
 
QString commandLineBuffer_DEFAULT
 
QString commandLineBuffer_TAB_RESULTS
 
QString commandLineBuffer_TAB_HELP
 
QString commandLineBuffer_TAB_LOG
 
QWidget * widgets [STATE_COUNT][WIDGET_COUNT]
 
QStackedLayout * statesStackedLayout
 
tabs_e current_tab
 
state_e current_state
 

Properties

state_e state