Inherited from QMainWindow,IMainFrame,
Inherited by NULL
Friend class NULL
Description
Members
Public interface
MainFrame(QApplication *pApp,RunMode mod = Run_Normal)
-
-
-
-
-
-
-
-
-
UIScheme *
getScheme(const char * schemeName)
-
-
-
-
-
-
bool
checkContext(int cid, const TreeNode * targetNode, const TreeNode * fromNode = 0)
void
editItem(int item_type,const XItem * pi)
-
-
-
void
updateAction(ulong cid, bool bUpdateGroup = false, bool bUpdateEnable = false)
-
-
-
-
-
void
inform(const char * msg, bool bWarning = false)
-
-
-
-
int
askQuestion(const char * title,const char * q, bool bEnableCancel)
-
-
ErrorCode
executeScript(const char * script,const char * param, bool bCheckParam = false)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
bool
init(const char * slnConfigs)
-
void
loadModule(const char * modules, const char * proxys = “”)
void
registerDocUI(const char * name, const char * resource, const char * docID,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
int
monitorProcess(const char * exe, const char * param, const char * title = NULL, bool bSilent = false, const char * workdir = NULL)
int
startThread(const char * name, ThreadFunc func, XWord param, bool bAsync)
-
int
startThreadProcess(ThreadData * thread, const char * exe, LabelVarSection * param, ProcessOutputFunc outputFunc)
-
void
notifyThreadEvent(ThreadData * tdata, EventTypeID et, XWord param = XWord(), bool bFlushImmediatly = false)
-
void
addSubWindow(QWidget * wgt,const char * title, XDocument * doc)
-
-
QDockWidget *
addDock(QWidget * wgt, const char * title, DockWidgetArea, TypeID ori = 0)
QDockWidget *
getDock(QWidget * wgt)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
void
listProperty(const XItem * item, vector<ObjPropertyEntry> * prpSheet)
Protected interface
-
-
-
bool
event ( QEvent * e )
-
-
-
-
-
QApplication * m_pQtApp
QTextEdit * m_pMsgWnd
XPickWnd * m_pPickWnd
XScriptWnd * m_pScriptWnd
XPythonWnd * m_pPyWnd
XStatusbar * m_pStatusBar
XToolbar * m_pModuleBar
XMenubar * m_pMenuBar
XTitleBar * m_pDocTabs
QDockWidget * m_pTitleDock
QMdiArea * m_pCentral
XPropertyWnd * m_pPrpWnd
XTreeView * m_pObjTree
XCommandWnd * m_pCmdWnd
CommandManager * m_pCmdMgr
QTranslator * m_pLang
RunMode m_iMode
int m_iCmdState
int m_iAsynState
vector<XDocument*> m_pDocs
XDocument * m_pCurDocument
XPicker * m_pPicker
vector<UIScheme> m_pDocUICfg
vector<string> m_pModules
vector<UIProxy *> * m_pUIProxys
map<QWidget*, QDockWidget*> * m_pDockWidgetMap
map<string, XThread *> * m_pThreads
UIProxy * m_pCurProxy
XView * m_pSecondView
MainFrame(QApplication *pApp,RunMode mod = Run_Normal)
function:
parameters:
[i]QApplication *pApp:
[i]RunMode mod = Run_Normal:
return value:
XDocument * getCurrentDocument()
function:
parameters: NULL
return value:
XDocument * getDocument(int index)
function:
parameters:
[i]int index:
return value:
void setCurrentDocument(XDocument * doc)
function:
parameters:
[i]XDocument * doc:
return value:
void closeDocument(XDocument * doc, bool bCloseDocWindow = true)
function:
parameters:
[i]XDocument * doc:
[i] bool bCloseDocWindow = true:
return value:
XDocument * getNextDocument(XDocument * doc)
function:
parameters:
[i]XDocument * doc:
return value:
XDocument * newDocument(const char * docType)
function:
parameters:
[i]const char * docType:
return value:
XDocument * openDocument(const char * fname)
function:
parameters:
[i]const char * fname:
return value:
UIProxy * getProxy(XDocument * doc)
function:
parameters:
[i]XDocument * doc:
return value:
UIProxy * newInstance(const char * schemeName)
function:
parameters:
[i]const char * schemeName:
return value:
UIScheme * getScheme(const char * schemeName)
function:
parameters:
[i]const char * schemeName:
return value:
const char * getCurrentSchemeName()
function:
parameters: NULL
return value:
const char * getClipboardText()
function:
parameters: NULL
return value:
void setHomeVisible(bool b)
function:
parameters:
[i]bool b:
return value:
XPicker * getPicker()
function:
parameters: NULL
return value:
void launchCommand(int cid,const CmdParam * param = 0)
function:
parameters:
[i]int cid:
[i]const CmdParam * param = 0:
return value:
void launchContextCommand(int cid, const TreeNode * targetNode, const TreeNode * fromNode = 0)
function:
parameters:
[i]int cid:
[i] const TreeNode * targetNode:
[i] const TreeNode * fromNode = 0:
return value:
bool checkContext(int cid, const TreeNode * targetNode, const TreeNode * fromNode = 0)
function:
parameters:
[i]int cid:
[i] const TreeNode * targetNode:
[i] const TreeNode * fromNode = 0:
return value:
void editItem(int item_type,const XItem * pi)
function:
parameters:
[i]int item_type:
[i]const XItem * pi:
return value:
CommandManager * getCommandManager()
function:
parameters: NULL
return value:
ICommandWindow * getCommandWindow()
function:
parameters: NULL
return value:
bool handleFrameAction(int cid, XWord param = XWord())
function:
parameters:
[i]int cid:
[i] XWord param = XWord(:
return value:
void updateAction(ulong cid, bool bUpdateGroup = false, bool bUpdateEnable = false)
function:
parameters:
[i]ulong cid:
[i] bool bUpdateGroup = false:
[i] bool bUpdateEnable = false:
return value:
void onApplicationEvent(EventTypeID et, XWord param = XWord())
function:
parameters:
[i]EventTypeID et:
[i] XWord param = XWord(:
return value:
void refreshView()
function:
parameters: NULL
return value:
void previewDialog(const char * xml)
function:
parameters:
[i]const char * xml:
return value:
void setActionEnable(ulong cid, bool bEnable)
function:
parameters:
[i]ulong cid:
[i] bool bEnable:
return value:
bool runGPUCalculation(const char * gcmd, const void * gin, void * gout)
function:
parameters:
[i]const char * gcmd:
[i] const void * gin:
[i] void * gout:
return value:
void inform(const char * msg, bool bWarning = false)
function:
parameters:
[i]const char * msg:
[i] bool bWarning = false:
return value:
void error(ErrorCode e)
function:
parameters:
[i]ErrorCode e:
return value:
void onPrint()
function:
parameters: NULL
return value:
RunMode getRunMode()
function:
parameters: NULL
return value:
void setRunMode(RunMode rm)
function:
parameters:
[i]RunMode rm:
return value:
int askQuestion(const char * title,const char * q, bool bEnableCancel)
function:
parameters:
[i]const char * title:
[i]const char * q:
[i] bool bEnableCancel:
return value:
ErrorCode doCommand(ICommand * cmd,int mode)
function:
parameters:
[i]ICommand * cmd:
[i]int mode:
return value:
void message(const char* format,…)
function:
parameters:
[i]const char* format:
[i]…:
return value:
ErrorCode executeScript(const char * script,const char * param, bool bCheckParam = false)
function:
parameters:
[i]const char * script:
[i]const char * param:
[i] bool bCheckParam = false:
return value:
void resetAfterExecute(bool bContinueSameCmd = false)
function:
parameters:
[i]bool bContinueSameCmd = false:
return value:
ErrorCode executeBatch(const char * batch_file)
function:
parameters:
[i]const char * batch_file:
return value:
bool executeCommand(ICommand * cmd)
function:
parameters:
[i]ICommand * cmd:
return value:
void setPickType(TypeID type)
function:
parameters:
[i]TypeID type:
return value:
XTitleBar * getTitlebar()
function:
parameters: NULL
return value:
XPythonWnd * getPythonWnd()
function:
parameters: NULL
return value:
XScriptWnd * getScriptWnd()
function:
parameters: NULL
return value:
QTextEdit * getMessageWnd()
function:
parameters: NULL
return value:
XMenubar * createMenubar(UIScheme * uiScheme)
function:
parameters:
[i]UIScheme * uiScheme:
return value:
XToolbar * createModulebar(UIScheme * uiScheme)
function:
parameters:
[i]UIScheme * uiScheme:
return value:
XMenubar * getMenubar()
function:
parameters: NULL
return value:
XToolbar * getToolbar()
function:
parameters: NULL
return value:
XPropertyWnd * getPropertyWnd()
function:
parameters: NULL
return value:
XPickWnd * getPickWnd()
function:
parameters: NULL
return value:
XCommandWnd * getCommandWnd()
function:
parameters: NULL
return value:
XTreeView * getObjectTree()
function:
parameters: NULL
return value:
void updateTreeView(TreeNode * tItem, bool bRecursive = true)
function:
parameters:
[i]TreeNode * tItem:
[i] bool bRecursive = true:
return value:
UIProxy * getProxy()
function:
parameters: NULL
return value:
void setUISettingPath(const char * dir)
function:
parameters:
[i]const char * dir:
return value:
bool init(const char * slnConfigs)
function:
parameters:
[i]const char * slnConfigs:
return value:
void resolveConfiguration(const char * config)
function:
parameters:
[i]const char * config:
return value:
void loadModule(const char * modules, const char * proxys = “”)
function:
parameters:
[i]const char * modules:
[i] const char * proxys = “”:
return value:
void registerDocUI(const char * name, const char * resource, const char * docID,
function:
parameters:
[i]const char * name:
[i] const char * resource:
[i] const char * docID:
[i]:
return value:
void reset()
function:
parameters: NULL
return value:
void changeLanguage(const char * lang)
function:
parameters:
[i]const char * lang:
return value:
int getCmdState()
function:
parameters: NULL
return value:
void setCmdState(int st)
function:
parameters:
[i]int st:
return value:
void setCurrentDocView(QWidget * docWgt)
function:
parameters:
[i]QWidget * docWgt:
return value:
void setCurrentDocView(int idx)
function:
parameters:
[i]int idx:
return value:
XView * getDocViewByID(ulong id)
function:
parameters:
[i]ulong id:
return value:
void listDocView(const char * fname)
function:
parameters:
[i]const char * fname:
return value:
void setSecondView(XView * v)
function:
parameters:
[i]XView * v:
return value:
XView * getSecondView()
function:
parameters: NULL
return value:
void updateUIStyle(const char * style,const char * sheetFile)
function:
parameters:
[i]const char * style:
[i]const char * sheetFile:
return value:
void addCenterToolbar(QToolBar * bar, int loc)
function:
parameters:
[i]QToolBar * bar:
[i] int loc:
return value:
void addLeftCenterToolbar(QToolBar * bar,int pos)
function:
parameters:
[i]QToolBar * bar:
[i]int pos:
return value:
void addRightCenterToolbar(QToolBar * bar,int pos)
function:
parameters:
[i]QToolBar * bar:
[i]int pos:
return value:
int monitorProcess(const char * exe, const char * param, const char * title = NULL, bool bSilent = false, const char * workdir = NULL)
function:
parameters:
[i]const char * exe:
[i] const char * param:
[i] const char * title = NULL:
[i] bool bSilent = false:
[i] const char * workdir = NULL:
return value:
int startThread(const char * name, ThreadFunc func, XWord param, bool bAsync)
function:
parameters:
[i]const char * name:
[i] ThreadFunc func:
[i] XWord param:
[i] bool bAsync:
return value:
bool isThreadRunning(const char * name)
function:
parameters:
[i]const char * name:
return value:
int startThreadProcess(ThreadData * thread, const char * exe, LabelVarSection * param, ProcessOutputFunc outputFunc)
function:
parameters:
[i]ThreadData * thread:
[i] const char * exe:
[i] LabelVarSection * param:
[i] ProcessOutputFunc outputFunc:
return value:
void quitThread(const char * name)
function:
parameters:
[i]const char * name:
return value:
void notifyThreadEvent(ThreadData * tdata, EventTypeID et, XWord param = XWord(), bool bFlushImmediatly = false)
function:
parameters:
[i]ThreadData * tdata:
[i] EventTypeID et:
[i] XWord param = XWord():
[i] bool bFlushImmediatly = false):
return value:
void flushThreadEvents(ThreadData * tdata)
function:
parameters:
[i]ThreadData * tdata:
return value:
void addSubWindow(QWidget * wgt,const char * title, XDocument * doc)
function:
parameters:
[i]QWidget * wgt:
[i]const char * title:
[i] XDocument * doc:
return value:
XDocument * getWindowDoc(QMdiSubWindow * subWnd)
function:
parameters:
[i]QMdiSubWindow * subWnd:
return value:
QMdiSubWindow * getDocWindow(XDocument * doc)
function:
parameters:
[i]XDocument * doc:
return value:
QDockWidget * addDock(QWidget * wgt, const char * title, DockWidgetArea, TypeID ori = 0)
function:
parameters:
[i]QWidget * wgt:
[i] const char * title:
[i] DockWidgetArea:
[i] TypeID ori = 0:
return value:
QDockWidget * getDock(QWidget * wgt)
function:
parameters:
[i]QWidget * wgt:
return value:
void setWorkView(const char * title)
function:
parameters:
[i]const char * title:
return value:
void disableWidget(TypeID wgtType)
function:
parameters:
[i]TypeID wgtType:
return value:
void setDocTitle(const QString &)
function:
parameters:
[i]const QString &:
return value:
void setWindowTitle(const QString &)
function:
parameters:
[i]const QString &:
return value:
void setWindowIcon(const QIcon &icon)
function:
parameters:
[i]const QIcon &icon:
return value:
void nextCommand(ulong cid = 0)
function:
parameters:
[i]ulong cid = 0:
return value:
bool isDockVisible(TypeID dock)
function:
parameters:
[i]TypeID dock:
return value:
void onAction()
function:
parameters: NULL
return value:
void onCheckAction(bool bChecked)
function:
parameters:
[i]bool bChecked:
return value:
void onEditAction()
function:
parameters: NULL
return value:
void onComboAction(int i)
function:
parameters:
[i]int i:
return value:
void onSpinAction()
function:
parameters: NULL
return value:
void onSliderAction()
function:
parameters: NULL
return value:
void onModuleChange(int index)
function:
parameters:
[i]int index:
return value:
void setCurrentSubWindow(QMdiSubWindow * sub)
function:
parameters:
[i]QMdiSubWindow * sub:
return value:
void onCmdCommit()
function:
parameters: NULL
return value:
void about()
function:
parameters: NULL
return value:
void onRunScript()
function:
parameters: NULL
return value:
void onSetting()
function:
parameters: NULL
return value:
void onOpenRecent()
function:
parameters: NULL
return value:
void setDockVisible(FrameDockEnum dock, bool bVisible)
function:
parameters:
[i]FrameDockEnum dock:
[i] bool bVisible:
return value:
void changeDocument(int docIndex)
function:
parameters:
[i]int docIndex:
return value:
void onQuickExecute()
function:
parameters: NULL
return value:
void onViewLog()
function:
parameters: NULL
return value:
void onAsyncThreadReady()
function:
parameters: NULL
return value:
void onThreadEvent(ThreadData * tdata)
function:
parameters:
[i]ThreadData * tdata:
return value:
void listProperty(const XItem * item, vector<ObjPropertyEntry> * prpSheet)
function:
parameters:
[i]const XItem * item:
[i] vector<ObjPropertyEntry> * prpSheet:
return value:
void closeEvent(QCloseEvent * e)
function:
parameters:
[i]QCloseEvent * e:
return value:
void resizeEvent ( QResizeEvent * event )
function:
parameters:
[i] QResizeEvent * event :
return value:
void moveEvent(QMoveEvent * e)
function:
parameters:
[i]QMoveEvent * e:
return value:
bool event ( QEvent * e )
function:
parameters:
[i] QEvent * e :
return value:
void initTitleBar()
function:
parameters: NULL
return value:
bool runFrameCommand(ulong cid)
function:
parameters:
[i]ulong cid:
return value:
bool configDocUI(XDocument * doc, UIProxy * proxy)
function:
parameters:
[i]XDocument * doc:
[i] UIProxy * proxy:
return value:
void asyncThreadReady()
function:
parameters: NULL
return value:
void threadEvent(ThreadData * tdata)
function:
parameters:
[i]ThreadData * tdata:
return value: