User Tools

Site Tools


class:ui:mainframe

MainFrame

Inherited from QMainWindow,IMainFrame,

Inherited by NULL

Friend class NULL

Description

Members

Public interface

Protected interface


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:
    1. [i]QApplication *pApp:
    2. [i]RunMode mod = Run_Normal:
  • return value:

XDocument * getCurrentDocument()

  • function:
  • parameters: NULL
  • return value:

XDocument * getDocument(int index)

  • function:
  • parameters:
    1. [i]int index:
  • return value:

void setCurrentDocument(XDocument * doc)

  • function:
  • parameters:
    1. [i]XDocument * doc:
  • return value:

void closeDocument(XDocument * doc, bool bCloseDocWindow = true)

  • function:
  • parameters:
    1. [i]XDocument * doc:
    2. [i] bool bCloseDocWindow = true:
  • return value:

XDocument * getNextDocument(XDocument * doc)

  • function:
  • parameters:
    1. [i]XDocument * doc:
  • return value:

XDocument * newDocument(const char * docType)

  • function:
  • parameters:
    1. [i]const char * docType:
  • return value:

XDocument * openDocument(const char * fname)

  • function:
  • parameters:
    1. [i]const char * fname:
  • return value:

UIProxy * getProxy(XDocument * doc)

  • function:
  • parameters:
    1. [i]XDocument * doc:
  • return value:

UIProxy * newInstance(const char * schemeName)

  • function:
  • parameters:
    1. [i]const char * schemeName:
  • return value:

UIScheme * getScheme(const char * schemeName)

  • function:
  • parameters:
    1. [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:
    1. [i]bool b:
  • return value:

XPicker * getPicker()

  • function:
  • parameters: NULL
  • return value:

void launchCommand(int cid,const CmdParam * param = 0)

  • function:
  • parameters:
    1. [i]int cid:
    2. [i]const CmdParam * param = 0:
  • return value:

void launchContextCommand(int cid, const TreeNode * targetNode, const TreeNode * fromNode = 0)

  • function:
  • parameters:
    1. [i]int cid:
    2. [i] const TreeNode * targetNode:
    3. [i] const TreeNode * fromNode = 0:
  • return value:

bool checkContext(int cid, const TreeNode * targetNode, const TreeNode * fromNode = 0)

  • function:
  • parameters:
    1. [i]int cid:
    2. [i] const TreeNode * targetNode:
    3. [i] const TreeNode * fromNode = 0:
  • return value:

void editItem(int item_type,const XItem * pi)

  • function:
  • parameters:
    1. [i]int item_type:
    2. [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:
    1. [i]int cid:
    2. [i] XWord param = XWord(:
  • return value:

void updateAction(ulong cid, bool bUpdateGroup = false, bool bUpdateEnable = false)

  • function:
  • parameters:
    1. [i]ulong cid:
    2. [i] bool bUpdateGroup = false:
    3. [i] bool bUpdateEnable = false:
  • return value:

void onApplicationEvent(EventTypeID et, XWord param = XWord())

  • function:
  • parameters:
    1. [i]EventTypeID et:
    2. [i] XWord param = XWord(:
  • return value:

void refreshView()

  • function:
  • parameters: NULL
  • return value:

void previewDialog(const char * xml)

  • function:
  • parameters:
    1. [i]const char * xml:
  • return value:

void setActionEnable(ulong cid, bool bEnable)

  • function:
  • parameters:
    1. [i]ulong cid:
    2. [i] bool bEnable:
  • return value:

bool runGPUCalculation(const char * gcmd, const void * gin, void * gout)

  • function:
  • parameters:
    1. [i]const char * gcmd:
    2. [i] const void * gin:
    3. [i] void * gout:
  • return value:

void inform(const char * msg, bool bWarning = false)

  • function:
  • parameters:
    1. [i]const char * msg:
    2. [i] bool bWarning = false:
  • return value:

void error(ErrorCode e)

  • function:
  • parameters:
    1. [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:
    1. [i]RunMode rm:
  • return value:

int askQuestion(const char * title,const char * q, bool bEnableCancel)

  • function:
  • parameters:
    1. [i]const char * title:
    2. [i]const char * q:
    3. [i] bool bEnableCancel:
  • return value:

ErrorCode doCommand(ICommand * cmd,int mode)

  • function:
  • parameters:
    1. [i]ICommand * cmd:
    2. [i]int mode:
  • return value:

void message(const char* format,…)

  • function:
  • parameters:
    1. [i]const char* format:
    2. [i]…:
  • return value:

ErrorCode executeScript(const char * script,const char * param, bool bCheckParam = false)

  • function:
  • parameters:
    1. [i]const char * script:
    2. [i]const char * param:
    3. [i] bool bCheckParam = false:
  • return value:

void resetAfterExecute(bool bContinueSameCmd = false)

  • function:
  • parameters:
    1. [i]bool bContinueSameCmd = false:
  • return value:

ErrorCode executeBatch(const char * batch_file)

  • function:
  • parameters:
    1. [i]const char * batch_file:
  • return value:

bool executeCommand(ICommand * cmd)

  • function:
  • parameters:
    1. [i]ICommand * cmd:
  • return value:

void setPickType(TypeID type)

  • function:
  • parameters:
    1. [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:
    1. [i]UIScheme * uiScheme:
  • return value:

XToolbar * createModulebar(UIScheme * uiScheme)

  • function:
  • parameters:
    1. [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:
    1. [i]TreeNode * tItem:
    2. [i] bool bRecursive = true:
  • return value:

UIProxy * getProxy()

  • function:
  • parameters: NULL
  • return value:

void setUISettingPath(const char * dir)

  • function:
  • parameters:
    1. [i]const char * dir:
  • return value:

bool init(const char * slnConfigs)

  • function:
  • parameters:
    1. [i]const char * slnConfigs:
  • return value:

void resolveConfiguration(const char * config)

  • function:
  • parameters:
    1. [i]const char * config:
  • return value:

void loadModule(const char * modules, const char * proxys = “”)

  • function:
  • parameters:
    1. [i]const char * modules:
    2. [i] const char * proxys = “”:
  • return value:

void registerDocUI(const char * name, const char * resource, const char * docID,

  • function:
  • parameters:
    1. [i]const char * name:
    2. [i] const char * resource:
    3. [i] const char * docID:
    4. [i]:
  • return value:

void reset()

  • function:
  • parameters: NULL
  • return value:

void changeLanguage(const char * lang)

  • function:
  • parameters:
    1. [i]const char * lang:
  • return value:

int getCmdState()

  • function:
  • parameters: NULL
  • return value:

void setCmdState(int st)

  • function:
  • parameters:
    1. [i]int st:
  • return value:

void setCurrentDocView(QWidget * docWgt)

  • function:
  • parameters:
    1. [i]QWidget * docWgt:
  • return value:

void setCurrentDocView(int idx)

  • function:
  • parameters:
    1. [i]int idx:
  • return value:

XView * getDocViewByID(ulong id)

  • function:
  • parameters:
    1. [i]ulong id:
  • return value:

void listDocView(const char * fname)

  • function:
  • parameters:
    1. [i]const char * fname:
  • return value:

void setSecondView(XView * v)

  • function:
  • parameters:
    1. [i]XView * v:
  • return value:

XView * getSecondView()

  • function:
  • parameters: NULL
  • return value:

void updateUIStyle(const char * style,const char * sheetFile)

  • function:
  • parameters:
    1. [i]const char * style:
    2. [i]const char * sheetFile:
  • return value:

void addCenterToolbar(QToolBar * bar, int loc)

  • function:
  • parameters:
    1. [i]QToolBar * bar:
    2. [i] int loc:
  • return value:

void addLeftCenterToolbar(QToolBar * bar,int pos)

  • function:
  • parameters:
    1. [i]QToolBar * bar:
    2. [i]int pos:
  • return value:

void addRightCenterToolbar(QToolBar * bar,int pos)

  • function:
  • parameters:
    1. [i]QToolBar * bar:
    2. [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:
    1. [i]const char * exe:
    2. [i] const char * param:
    3. [i] const char * title = NULL:
    4. [i] bool bSilent = false:
    5. [i] const char * workdir = NULL:
  • return value:

int startThread(const char * name, ThreadFunc func, XWord param, bool bAsync)

  • function:
  • parameters:
    1. [i]const char * name:
    2. [i] ThreadFunc func:
    3. [i] XWord param:
    4. [i] bool bAsync:
  • return value:

bool isThreadRunning(const char * name)

  • function:
  • parameters:
    1. [i]const char * name:
  • return value:

int startThreadProcess(ThreadData * thread, const char * exe, LabelVarSection * param, ProcessOutputFunc outputFunc)

  • function:
  • parameters:
    1. [i]ThreadData * thread:
    2. [i] const char * exe:
    3. [i] LabelVarSection * param:
    4. [i] ProcessOutputFunc outputFunc:
  • return value:

void quitThread(const char * name)

  • function:
  • parameters:
    1. [i]const char * name:
  • return value:

void notifyThreadEvent(ThreadData * tdata, EventTypeID et, XWord param = XWord(), bool bFlushImmediatly = false)

  • function:
  • parameters:
    1. [i]ThreadData * tdata:
    2. [i] EventTypeID et:
    3. [i] XWord param = XWord():
    4. [i] bool bFlushImmediatly = false):
  • return value:

void flushThreadEvents(ThreadData * tdata)

  • function:
  • parameters:
    1. [i]ThreadData * tdata:
  • return value:

void addSubWindow(QWidget * wgt,const char * title, XDocument * doc)

  • function:
  • parameters:
    1. [i]QWidget * wgt:
    2. [i]const char * title:
    3. [i] XDocument * doc:
  • return value:

XDocument * getWindowDoc(QMdiSubWindow * subWnd)

  • function:
  • parameters:
    1. [i]QMdiSubWindow * subWnd:
  • return value:

QMdiSubWindow * getDocWindow(XDocument * doc)

  • function:
  • parameters:
    1. [i]XDocument * doc:
  • return value:

QDockWidget * addDock(QWidget * wgt, const char * title, DockWidgetArea, TypeID ori = 0)

  • function:
  • parameters:
    1. [i]QWidget * wgt:
    2. [i] const char * title:
    3. [i] DockWidgetArea:
    4. [i] TypeID ori = 0:
  • return value:

QDockWidget * getDock(QWidget * wgt)

  • function:
  • parameters:
    1. [i]QWidget * wgt:
  • return value:

void setWorkView(const char * title)

  • function:
  • parameters:
    1. [i]const char * title:
  • return value:

void disableWidget(TypeID wgtType)

  • function:
  • parameters:
    1. [i]TypeID wgtType:
  • return value:

void setDocTitle(const QString &)

  • function:
  • parameters:
    1. [i]const QString &:
  • return value:

void setWindowTitle(const QString &)

  • function:
  • parameters:
    1. [i]const QString &:
  • return value:

void setWindowIcon(const QIcon &icon)

  • function:
  • parameters:
    1. [i]const QIcon &icon:
  • return value:

void nextCommand(ulong cid = 0)

  • function:
  • parameters:
    1. [i]ulong cid = 0:
  • return value:

bool isDockVisible(TypeID dock)

  • function:
  • parameters:
    1. [i]TypeID dock:
  • return value:

void onAction()

  • function:
  • parameters: NULL
  • return value:

void onCheckAction(bool bChecked)

  • function:
  • parameters:
    1. [i]bool bChecked:
  • return value:

void onEditAction()

  • function:
  • parameters: NULL
  • return value:

void onComboAction(int i)

  • function:
  • parameters:
    1. [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:
    1. [i]int index:
  • return value:

void setCurrentSubWindow(QMdiSubWindow * sub)

  • function:
  • parameters:
    1. [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:
    1. [i]FrameDockEnum dock:
    2. [i] bool bVisible:
  • return value:

void changeDocument(int docIndex)

  • function:
  • parameters:
    1. [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:
    1. [i]ThreadData * tdata:
  • return value:

void listProperty(const XItem * item, vector<ObjPropertyEntry> * prpSheet)

  • function:
  • parameters:
    1. [i]const XItem * item:
    2. [i] vector<ObjPropertyEntry> * prpSheet:
  • return value:

void closeEvent(QCloseEvent * e)

  • function:
  • parameters:
    1. [i]QCloseEvent * e:
  • return value:

void resizeEvent ( QResizeEvent * event )

  • function:
  • parameters:
    1. [i] QResizeEvent * event :
  • return value:

void moveEvent(QMoveEvent * e)

  • function:
  • parameters:
    1. [i]QMoveEvent * e:
  • return value:

bool event ( QEvent * e )

  • function:
  • parameters:
    1. [i] QEvent * e :
  • return value:

void initTitleBar()

  • function:
  • parameters: NULL
  • return value:

bool runFrameCommand(ulong cid)

  • function:
  • parameters:
    1. [i]ulong cid:
  • return value:

bool configDocUI(XDocument * doc, UIProxy * proxy)

  • function:
  • parameters:
    1. [i]XDocument * doc:
    2. [i] UIProxy * proxy:
  • return value:

void asyncThreadReady()

  • function:
  • parameters: NULL
  • return value:

void threadEvent(ThreadData * tdata)

  • function:
  • parameters:
    1. [i]ThreadData * tdata:
  • return value:
class/ui/mainframe.txt · Last modified: 2022/11/20 10:35 (external edit)