work save

This commit is contained in:
royqh1979@gmail.com 2021-11-09 12:31:37 +08:00
parent 78c3387d7f
commit 64e4ec3176
3 changed files with 401 additions and 1 deletions

View File

@ -85,7 +85,7 @@
<enum>QTabWidget::West</enum>
</property>
<property name="currentIndex">
<number>4</number>
<number>0</number>
</property>
<property name="usesScrollButtons">
<bool>true</bool>
@ -1518,8 +1518,36 @@
</property>
<addaction name="actionRename_Symbol"/>
</widget>
<widget class="QMenu" name="menuView">
<property name="title">
<string>View</string>
</property>
<widget class="QMenu" name="menuTool_Windows">
<property name="title">
<string>Tool Windows</string>
</property>
<addaction name="actionProject"/>
<addaction name="actionWatch"/>
<addaction name="actionStructure"/>
<addaction name="actionFiles"/>
<addaction name="actionProblem_Set"/>
<addaction name="separator"/>
<addaction name="actionIssues"/>
<addaction name="actionCompile_Log"/>
<addaction name="actionDebug_Window"/>
<addaction name="actionSearch"/>
<addaction name="actionTODO"/>
<addaction name="actionBookmark"/>
<addaction name="actionProblem"/>
</widget>
<addaction name="actionToolbar"/>
<addaction name="actionTool_Window_Bars"/>
<addaction name="menuTool_Windows"/>
<addaction name="actionStatus_Bar"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuView"/>
<addaction name="menuSearch"/>
<addaction name="menuCode"/>
<addaction name="menuRefactor"/>
@ -2464,6 +2492,126 @@
<string>C Reference</string>
</property>
</action>
<action name="actionToolbar">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Toolbar</string>
</property>
</action>
<action name="actionTool_Window_Bars">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Tool Window Bars</string>
</property>
</action>
<action name="actionStatus_Bar">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Status Bar</string>
</property>
</action>
<action name="actionProject">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Project</string>
</property>
</action>
<action name="actionWatch">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Watch</string>
</property>
</action>
<action name="actionStructure">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Structure</string>
</property>
</action>
<action name="actionFiles">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Files</string>
</property>
</action>
<action name="actionProblem_Set">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Problem Set</string>
</property>
</action>
<action name="actionIssues">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Issues</string>
</property>
</action>
<action name="actionCompile_Log">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Compile Log</string>
</property>
</action>
<action name="actionDebug_Window">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Debug</string>
</property>
</action>
<action name="actionSearch">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Search</string>
</property>
</action>
<action name="actionTODO">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>TODO</string>
</property>
</action>
<action name="actionBookmark">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Bookmark</string>
</property>
</action>
<action name="actionProblem">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Problem</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>

View File

@ -4231,6 +4231,156 @@ void Settings::UI::setClassBrowserShowInherited(bool newClassBrowserShowInherite
mClassBrowserShowInherited = newClassBrowserShowInherited;
}
bool Settings::UI::showProblem() const
{
return mShowProblem;
}
void Settings::UI::setShowProblem(bool newShowProblem)
{
mShowProblem = newShowProblem;
}
bool Settings::UI::showBookmark() const
{
return mShowBookmark;
}
void Settings::UI::setShowBookmark(bool newShowBookmark)
{
mShowBookmark = newShowBookmark;
}
bool Settings::UI::showTODO() const
{
return mShowTODO;
}
void Settings::UI::setShowTODO(bool newShowTODO)
{
mShowTODO = newShowTODO;
}
bool Settings::UI::showSearch() const
{
return mShowSearch;
}
void Settings::UI::setShowSearch(bool newShowSearch)
{
mShowSearch = newShowSearch;
}
bool Settings::UI::showDebug() const
{
return mShowDebug;
}
void Settings::UI::setShowDebug(bool newShowDebug)
{
mShowDebug = newShowDebug;
}
bool Settings::UI::showCompileLog() const
{
return mShowCompileLog;
}
void Settings::UI::setShowCompileLog(bool newShowCompileLog)
{
mShowCompileLog = newShowCompileLog;
}
bool Settings::UI::showIssues() const
{
return mShowIssues;
}
void Settings::UI::setShowIssues(bool newShowIssues)
{
mShowIssues = newShowIssues;
}
bool Settings::UI::showProblemSet() const
{
return mShowProblemSet;
}
void Settings::UI::setShowProblemSet(bool newShowProblemSet)
{
mShowProblemSet = newShowProblemSet;
}
bool Settings::UI::showFiles() const
{
return mShowFiles;
}
void Settings::UI::setShowFiles(bool newShowFiles)
{
mShowFiles = newShowFiles;
}
bool Settings::UI::showStructure() const
{
return mShowStructure;
}
void Settings::UI::setShowStructure(bool newShowStructure)
{
mShowStructure = newShowStructure;
}
bool Settings::UI::showWatch() const
{
return mShowWatch;
}
void Settings::UI::setShowWatch(bool newShowWatch)
{
mShowWatch = newShowWatch;
}
bool Settings::UI::showProject() const
{
return mShowProject;
}
void Settings::UI::setShowProject(bool newShowProject)
{
mShowProject = newShowProject;
}
bool Settings::UI::showToolWindowBars() const
{
return mShowToolWindowBars;
}
void Settings::UI::setShowToolWindowBars(bool newShowToolWindowBars)
{
mShowToolWindowBars = newShowToolWindowBars;
}
bool Settings::UI::showStatusBar() const
{
return mShowStatusBar;
}
void Settings::UI::setShowStatusBar(bool newShowStatusBar)
{
mShowStatusBar = newShowStatusBar;
}
bool Settings::UI::showToolbar() const
{
return mShowToolbar;
}
void Settings::UI::setShowToolbar(bool newShowToolbar)
{
mShowToolbar = newShowToolbar;
}
bool Settings::UI::classBrowserSortType() const
{
return mClassBrowserSortType;
@ -4274,6 +4424,25 @@ void Settings::UI::doSave()
saveValue("class_browser_sort_alphabetically",mClassBrowserSortAlpha);
saveValue("class_browser_sort_by_type",mClassBrowserSortType);
saveValue("class_browser_show_inherited",mClassBrowserShowInherited);
//view
saveValue("show_toolbar", mShowToolbar);
saveValue("show_statusbar", mShowStatusBar);
saveValue("show_tool_windowbars", mShowToolWindowBars);
saveValue("show_project", mShowProject);
saveValue("show_watch", mShowWatch);
saveValue("show_structure", mShowStructure);
saveValue("show_file", mShowFiles);
saveValue("show_problem_set", mShowProblemSet);
saveValue("show_issues", mShowIssues);
saveValue("show_compile_log", mShowCompileLog);
saveValue("show_debug", mShowDebug);
saveValue("show_search", mShowSearch);
saveValue("show_todo", mShowTODO);
saveValue("show_bookmark", mShowBookmark);
saveValue("show_problem", mShowProblem);
}
void Settings::UI::doLoad()
@ -4289,4 +4458,23 @@ void Settings::UI::doLoad()
mClassBrowserSortAlpha = boolValue("class_browser_sort_alphabetically",true);
mClassBrowserSortType = boolValue("class_browser_sort_by_type",true);
mClassBrowserShowInherited = boolValue("class_browser_show_inherited",true);
//view
mShowToolbar = boolValue("show_toolbar",true);
mShowStatusBar = boolValue("show_statusbar",true);
mShowToolWindowBars = boolValue("show_tool_windowbars",true);
mShowProject = boolValue("show_project",true);
mShowWatch = boolValue("show_watch",true);
mShowStructure = boolValue("show_structure",true);
mShowFiles = boolValue("show_file",true);
mShowProblemSet = boolValue("show_problem_set",true);
mShowIssues = boolValue("show_issues",true);
mShowCompileLog = boolValue("show_compile_log",true);
mShowDebug = boolValue("show_debug",true);
mShowSearch = boolValue("show_search",true);
mShowTODO = boolValue("show_todo",true);
mShowBookmark = boolValue("show_bookmark",true);
mShowProblem = boolValue("show_problem",true);
}

View File

@ -827,6 +827,51 @@ public:
bool classBrowserShowInherited() const;
void setClassBrowserShowInherited(bool newClassBrowserShowInherited);
bool showToolbar() const;
void setShowToolbar(bool newShowToolbar);
bool showStatusBar() const;
void setShowStatusBar(bool newShowStatusBar);
bool showToolWindowBars() const;
void setShowToolWindowBars(bool newShowToolWindowBars);
bool showProject() const;
void setShowProject(bool newShowProject);
bool showWatch() const;
void setShowWatch(bool newShowWatch);
bool showStructure() const;
void setShowStructure(bool newShowStructure);
bool showFiles() const;
void setShowFiles(bool newShowFiles);
bool showProblemSet() const;
void setShowProblemSet(bool newShowProblemSet);
bool showIssues() const;
void setShowIssues(bool newShowIssues);
bool showCompileLog() const;
void setShowCompileLog(bool newShowCompileLog);
bool showDebug() const;
void setShowDebug(bool newShowDebug);
bool showSearch() const;
void setShowSearch(bool newShowSearch);
bool showTODO() const;
void setShowTODO(bool newShowTODO);
bool showBookmark() const;
void setShowBookmark(bool newShowBookmark);
bool showProblem() const;
void setShowProblem(bool newShowProblem);
private:
QByteArray mMainWindowState;
QByteArray mMainWindowGeometry;
@ -840,6 +885,25 @@ public:
bool mClassBrowserSortType;
bool mClassBrowserShowInherited;
//view
bool mShowToolbar;
bool mShowStatusBar;
bool mShowToolWindowBars;
bool mShowProject;
bool mShowWatch;
bool mShowStructure;
bool mShowFiles;
bool mShowProblemSet;
bool mShowIssues;
bool mShowCompileLog;
bool mShowDebug;
bool mShowSearch;
bool mShowTODO;
bool mShowBookmark;
bool mShowProblem;
protected:
void doSave() override;
void doLoad() override;