MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / OnLoad

Method OnLoad

App/Client/ParameterApp.cpp:41–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int CParameterApp::OnLoad(QSettings &set)
42{
43 SetReceiveShortCut(set.value("ReceiveShortCurt",
44 GetReceiveShortCut()).toBool());
45
46 set.beginGroup("Status");
47 SetSaveMainWindowStatus(set.value("Enable",
48 GetSaveMainWindowStatus()).toBool());
49 if(GetSaveMainWindowStatus()) {
50 SetStatusBar(set.value("StatusBar",
51 GetStatusBar()).toBool());
52 SetTabBar(set.value("TabBar",
53 GetTabBar()).toBool());
54 SetMenuBar(set.value("MenuBar",
55 GetMenuBar()).toBool());
56 }
57 set.endGroup();
58
59 set.beginGroup("View");
60 int viewType = set.value("Type", (int)GetViewType()).toInt();
61 SetViewType((ViewType)viewType);
62 SetTabPosition(static_cast<QTabWidget::TabPosition>(
63 set.value("TabView/Tab/Position",
64 GetTabPosition()).toInt()));
65 SetEnableTabToolTip(set.value("TabView/Tab/Enable/ToolTip",
66 GetEnableTabToolTip()).toBool());
67 SetEnableTabIcon(set.value("TabView/Tab/Enable/Icon",
68 GetEnableTabIcon()).toBool());
69 SetTabElided(set.value("TabView/Tab/Enable/Elided", GetTabElided()).toBool());
70 set.endGroup();
71
72 SetRecentMenuMaxCount(set.value("Recent/Max",
73 GetRecentMenuMaxCount()).toInt());
74
75 set.beginGroup("SystemTrayIcon");
76 //NOTE: The order cannot be changed
77 SetEnableSystemTrayIcon(set.value("Enable",
78 GetEnableSystemTrayIcon()).toBool());
79 SetSystemTrayIconMenuType(static_cast<SystemTrayIconMenuType>(
80 set.value("MenuType",
81 static_cast<int>(GetSystemTrayIconMenuType())).toInt()));
82 set.endGroup();
83
84 SetOpenLasterClose(set.value("OpenLasterClose",
85 GetOpenLasterClose()).toBool());
86 SetFavoriteEdit(set.value("Favorite/Double/Edit",
87 GetFavoriteEdit()).toBool());
88
89 SetMessageBoxDisplayInformation(
90 set.value("MessageBoxDisplayInformation",
91 GetMessageBoxDisplayInformation()).toBool());
92
93 set.beginGroup("Dock");
94 SetDockListActiveShowToolBar(
95 set.value("ListActive/ToolBar/Show",
96 GetDockListActiveShowToolBar()).toBool());
97
98 SetDockListRecentShowToolBar(

Callers

nothing calls this directly

Calls 2

LoadMethod · 0.45
GetParameterMethod · 0.45

Tested by

no test coverage detected