MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / WizMainWindow

Method WizMainWindow

src/WizMainWindow.cpp:129–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127static WizMainWindow* windowInstance = 0;
128
129WizMainWindow::WizMainWindow(WizDatabaseManager& dbMgr, QWidget *parent)
130 : _baseClass(parent, true)
131 , m_dbMgr(dbMgr)
132 , m_progress(new WizProgressDialog(this))
133 , m_settings(new WizUserSettings(dbMgr.db()))
134 , m_syncQuick(new WizKMSyncThread(dbMgr.db(), true, this))
135 , m_syncFull(new WizKMSyncThread(dbMgr.db(), false, this))
136 , m_searcher(new WizSearcher(m_dbMgr, this))
137 , m_console(nullptr)
138 , m_userVerifyDialog(nullptr)
139 , m_iapDialog(nullptr)
140 , m_templateIAPDialog(nullptr)
141 , m_menuBar(nullptr)
142 , m_dockMenu(nullptr)
143 , m_windowListMenu(nullptr)
144#ifndef Q_OS_MAC
145 , m_labelNotice(nullptr)
146 , m_optionsAction(nullptr)
147#endif
148 , m_newNoteExtraMenu(nullptr)
149 , m_toolBar(new QToolBar("Main", titleBar()))
150 , m_menu(new QMenu(clientWidget()))
151 , m_spacerForToolButtonAdjust(nullptr)
152 , m_actions(new WizActions(*this, this))
153 , m_category(new WizCategoryView(*this, this))
154 , m_documents(new WizDocumentListView(*this, this))
155 , m_noteListWidget(nullptr)
156 , m_msgList(new WizMessageListView(dbMgr, this))
157 , m_documentSelection(new WizDocumentSelectionView(*this, this))
158 //, m_doc(new WizDocumentView(*this)) // 初始化文档视图,就把这个成员当成活动文档视图,QTabWidget说不要指定parent
159 , m_mainTabBrowser(new WizMainTabBrowser(*this, this))
160 , m_documentPanel(nullptr)
161 , m_history(new WizDocumentViewHistory())
162 , m_animateSync(new WizAnimateAction(this))
163 , m_singleViewMgr(new WizSingleDocumentViewManager(*this, this))
164 , m_bRestart(false)
165 , m_bLogoutRestart(false)
166 , m_bUpdatingSelection(false)
167 , m_tray(nullptr)
168 , m_trayMenu(nullptr)
169 , m_mobileFileReceiver(nullptr)
170 , m_bQuickDownloadMessageEnable(false)
171 , m_quiting(false)
172 , m_IWizExplorerApp(new ApiWizExplorerApp(this, this))
173 , m_externalEditorLauncher(new ExternalEditorLauncher(*this, this))
174{
175#ifdef QT_DEBUG
176 int ret = WizToolsSmartCompare("H", "d");
177 qDebug() << ret;
178#endif
179
180 WizGlobal::setMainWindow(this);
181 windowInstance = this;
182 qRegisterMetaType<WIZGROUPDATA>("WIZGROUPDATA");
183
184 m_publicAPIsServer = new PublicAPIsServer(
185 {{"WizExplorerApp", m_IWizExplorerApp}}, this);
186

Callers

nothing calls this directly

Calls 9

WizToolsSmartCompareFunction · 0.85
connectFunction · 0.85
autoCheckUpdateMethod · 0.80
showSystemTrayIconMethod · 0.80
receiveMobileFileMethod · 0.80
hasBizMethod · 0.80
setMainWindowMethod · 0.45

Tested by

no test coverage detected