====== XScriptWnd ====== **//Inherited from//** [[class::xwnd|XWnd]], **//Inherited by//** NULL **//Friend class//** NULL **//Description//** **//Members//** * MainFrame * [[xscriptwnd#m_pframe|m_pFrame]] * QLineEdit * [[xscriptwnd#m_pcmdlinem_pparamline|m_pCmdLinem_pParamLine]] * QComboBox * [[xscriptwnd#m_pcmdcombo|m_pCmdCombo]] * QListWidget * [[xscriptwnd#m_pcmdhistroy|m_pCmdHistroy]] * ICommand * [[xscriptwnd#m_pcurcmd|m_pCurCmd]] * bool [[xscriptwnd#m_cmdokm_pparamok|m_CmdOkm_pParamOk]] * QAction * [[xscriptwnd#m_ploadm_psavem_pclearm_premovem_pcopyall|m_pLoadm_pSavem_pClearm_pRemovem_pCopyAll]] * QAction * [[xscriptwnd#m_pcopyselected|m_pCopySelected]] * QAction * [[xscriptwnd#m_ppaste|m_pPaste]] * QAction * [[xscriptwnd#m_prunall|m_pRunAll]] * QAction * [[xscriptwnd#m_prunselect|m_pRunSelect]] * QAction * [[xscriptwnd#m_pruncurrenttonext|m_pRunCurrentToNext]] * int [[xscriptwnd#m_iscptmode|m_iScptMode]] **//Public interface//** * [[xscriptwnd#xscriptwnd1|XScriptWnd]](MainFrame * frame) * [[xscriptwnd#~xscriptwnd|~XScriptWnd]]() * void [[xscriptwnd#initwindow|initWindow]]() * void [[xscriptwnd#oncontrolevent|onControlEvent]](const char * ctrlName, TypeID event = Event_Any) * void [[xscriptwnd#setmode|setMode]](int mod) * int [[xscriptwnd#getmode|getMode]]() * void [[xscriptwnd#resethistory|resetHistory]]() * void [[xscriptwnd#setcurrentcmd|setCurrentCmd]](ICommand * cmd) * void [[xscriptwnd#savescripts|saveScripts]](const char * script_file) * void [[xscriptwnd#loadscripts|loadScripts]](const char * script_file) * void [[xscriptwnd#logcommand|logCommand]](ICommand * cmd) * void [[xscriptwnd#appendcommand|appendCommand]](const QString & cmd, const QString & param) * bool [[xscriptwnd#checkcommand|checkCommand]]() * bool [[xscriptwnd#checkparameter|checkParameter]]() * bool [[xscriptwnd#parameterchanged|parameterChanged]]() * void [[xscriptwnd#executecommandline|executeCommandLine]](QListWidgetItem *item) * void [[xscriptwnd#executescript|executeScript]](const QString & line) * void [[xscriptwnd#onloadscript|onLoadScript]]() * void [[xscriptwnd#onsavescript|onSaveScript]]() * void [[xscriptwnd#onclearrecords|onClearRecords]]() * void [[xscriptwnd#oncopyall|onCopyAll]]() * void [[xscriptwnd#onpaste|onPaste]]() * void [[xscriptwnd#onrunall|onRunAll]]() * void [[xscriptwnd#onrunselect|onRunSelect]]() * void [[xscriptwnd#onruncurrenttonext|onRunCurrentToNext]]() * void [[xscriptwnd#oncopyselected|onCopySelected]]() * void [[xscriptwnd#onremoveselected|onRemoveSelected]]() * void [[xscriptwnd#scriptlinefocused|scriptLineFocused]](QListWidgetItem * lwi) **//Private interface//** * void [[xscriptwnd#loadparamfromfile|loadParamFromFile]](const char * param_file) * void [[xscriptwnd#removescript|removeScript]](int index) * void [[xscriptwnd#initcmdparam|initCmdParam]](ICommand * cmd) ---- {{anchor:m_pframe}} **MainFrame * m_pFrame** {{anchor:m_pcmdlinem_pparamline}} **QLineEdit * m_pCmdLinem_pParamLine** {{anchor:m_pcmdcombo}} **QComboBox * m_pCmdCombo** {{anchor:m_pcmdhistroy}} **QListWidget * m_pCmdHistroy** {{anchor:m_pcurcmd}} **ICommand * m_pCurCmd** {{anchor:m_cmdokm_pparamok}} **bool m_CmdOkm_pParamOk** {{anchor:m_ploadm_psavem_pclearm_premovem_pcopyall}} **QAction * m_pLoadm_pSavem_pClearm_pRemovem_pCopyAll** {{anchor:m_pcopyselected}} **QAction * m_pCopySelected** {{anchor:m_ppaste}} **QAction * m_pPaste** {{anchor:m_prunall}} **QAction * m_pRunAll** {{anchor:m_prunselect}} **QAction * m_pRunSelect** {{anchor:m_pruncurrenttonext}} **QAction * m_pRunCurrentToNext** {{anchor:m_iscptmode}} **int m_iScptMode** ---- {{anchor:xscriptwnd1}} **XScriptWnd(MainFrame * frame)** *function: *parameters: - [i]MainFrame * frame: *return value: {{anchor:~xscriptwnd}} **~XScriptWnd()** *function: *parameters: NULL *return value: {{anchor:initwindow}} **void initWindow()** *function: *parameters: NULL *return value: {{anchor:oncontrolevent}} **void onControlEvent(const char * ctrlName, TypeID event = Event_Any)** *function: *parameters: - [i]const char * ctrlName: - [i] TypeID event = Event_Any: *return value: {{anchor:setmode}} **void setMode(int mod)** *function: *parameters: - [i]int mod: *return value: {{anchor:getmode}} **int getMode()** *function: *parameters: NULL *return value: {{anchor:resethistory}} **void resetHistory()** *function: *parameters: NULL *return value: {{anchor:setcurrentcmd}} **void setCurrentCmd(ICommand * cmd)** *function: *parameters: - [i]ICommand * cmd: *return value: {{anchor:savescripts}} **void saveScripts(const char * script_file)** *function: *parameters: - [i]const char * script_file: *return value: {{anchor:loadscripts}} **void loadScripts(const char * script_file)** *function: *parameters: - [i]const char * script_file: *return value: {{anchor:logcommand}} **void logCommand(ICommand * cmd)** *function: *parameters: - [i]ICommand * cmd: *return value: {{anchor:appendcommand}} **void appendCommand(const QString & cmd, const QString & param)** *function: *parameters: - [i]const QString & cmd: - [i] const QString & param: *return value: {{anchor:checkcommand}} **bool checkCommand()** *function: *parameters: NULL *return value: {{anchor:checkparameter}} **bool checkParameter()** *function: *parameters: NULL *return value: {{anchor:parameterchanged}} **bool parameterChanged()** *function: *parameters: NULL *return value: {{anchor:executecommandline}} **void executeCommandLine(QListWidgetItem *item)** *function: *parameters: - [i]QListWidgetItem *item: *return value: {{anchor:executescript}} **void executeScript(const QString & line)** *function: *parameters: - [i]const QString & line: *return value: {{anchor:onloadscript}} **void onLoadScript()** *function: *parameters: NULL *return value: {{anchor:onsavescript}} **void onSaveScript()** *function: *parameters: NULL *return value: {{anchor:onclearrecords}} **void onClearRecords()** *function: *parameters: NULL *return value: {{anchor:oncopyall}} **void onCopyAll()** *function: *parameters: NULL *return value: {{anchor:onpaste}} **void onPaste()** *function: *parameters: NULL *return value: {{anchor:onrunall}} **void onRunAll()** *function: *parameters: NULL *return value: {{anchor:onrunselect}} **void onRunSelect()** *function: *parameters: NULL *return value: {{anchor:onruncurrenttonext}} **void onRunCurrentToNext()** *function: *parameters: NULL *return value: {{anchor:oncopyselected}} **void onCopySelected()** *function: *parameters: NULL *return value: {{anchor:onremoveselected}} **void onRemoveSelected()** *function: *parameters: NULL *return value: {{anchor:scriptlinefocused}} **void scriptLineFocused(QListWidgetItem * lwi)** *function: *parameters: - [i]QListWidgetItem * lwi: *return value: ---- {{anchor:loadparamfromfile}} **void loadParamFromFile(const char * param_file)** *function: *parameters: - [i]const char * param_file: *return value: {{anchor:removescript}} **void removeScript(int index)** *function: *parameters: - [i]int index: *return value: {{anchor:initcmdparam}} **void initCmdParam(ICommand * cmd)** *function: *parameters: - [i]ICommand * cmd: *return value: