MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / setOptions

Method setOptions

pluginManager/src/SettingsDialog.cpp:124–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void SettingsDialog::setOptions()
125{
126 char address[MAX_PATH];
127
128 ::GetWindowTextA(GetDlgItem(_hSelf, IDC_DAYSTOCHECK), address, MAX_PATH);
129 g_options.daysToCheck = atol(address);
130
131 LRESULT result = ::SendMessage(GetDlgItem(_hSelf, IDC_NOTIFY), BM_GETCHECK, 0, 0);
132 if (BST_CHECKED == result)
133 g_options.notifyUpdates = TRUE;
134 else
135 g_options.notifyUpdates = FALSE;
136
137 result = ::SendMessage(GetDlgItem(_hSelf, IDC_SHOWUNSTABLE), BM_GETCHECK, 0, 0);
138 if (BST_CHECKED == result)
139 g_options.showUnstable = TRUE;
140 else
141 g_options.showUnstable = FALSE;
142
143 result = ::SendMessage(GetDlgItem(_hSelf, IDC_FORCEHTTP), BM_GETCHECK, 0, 0);
144 if (BST_CHECKED == result)
145 g_options.forceHttp = TRUE;
146 else
147 g_options.forceHttp = FALSE;
148
149 result = ::SendMessage(GetDlgItem(_hSelf, IDC_USEDEVPLUGINLIST), BM_GETCHECK, 0, 0);
150 if (BST_CHECKED == result) {
151 g_options.useDevPluginList = TRUE;
152 } else {
153 g_options.useDevPluginList = FALSE;
154 }
155
156 if (g_options.appDataPluginsSupported)
157 {
158 result = ::SendMessage(GetDlgItem(_hSelf, IDC_INSTALLALLUSERS), BM_GETCHECK, 0, 0);
159 if (BST_CHECKED == result)
160 g_options.installLocation = INSTALLLOC_ALLUSERS;
161 else
162 g_options.installLocation = INSTALLLOC_APPDATA;
163 }
164 else
165 {
166 g_options.installLocation = INSTALLLOC_ALLUSERSNOAPPDATA;
167 }
168
169}
170

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected