~ubuntu-branches/ubuntu/maverick/poedit/maverick

« back to all changes in this revision

Viewing changes to src/prefsdlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2007-11-26 21:58:00 UTC
  • mfrom: (0.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071126215800-x4p16ysb2la158fu
Tags: 1.3.8~pre1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
22
 *  DEALINGS IN THE SOFTWARE.
23
23
 *
24
 
 *  $Id: prefsdlg.cpp 1175 2007-10-03 06:38:00Z vaclavslavik $
 
24
 *  $Id: prefsdlg.cpp 1201 2007-11-18 11:59:50Z vaclavslavik $
25
25
 *
26
26
 *  Preferences settings dialog
27
27
 *
47
47
#include "transmemupd_wizard.h"
48
48
#include "chooselang.h"
49
49
 
 
50
#ifdef USE_SPARKLE
 
51
#include "osx/userdefaults.h"
 
52
#endif // USE_SPARKLE
 
53
 
50
54
PreferencesDialog::PreferencesDialog(wxWindow *parent)
51
55
{
52
56
    wxXmlResource::Get()->LoadDialog(this, parent, _T("preferences"));
118
122
                cfg->Read(_T("open_editor_immediately"), (long)false));
119
123
    XRCCTRL(*this, "keep_crlf", wxCheckBox)->SetValue(
120
124
                (bool)cfg->Read(_T("keep_crlf"), true));
121
 
#if USE_SPELLCHECKING
 
125
#ifdef USE_SPELLCHECKING
122
126
    XRCCTRL(*this, "enable_spellchecking", wxCheckBox)->SetValue(
123
127
                (bool)cfg->Read(_T("enable_spellchecking"), true));
124
128
#endif
171
175
    XRCCTRL(*this, "tm_automatic", wxCheckBox)->SetValue(
172
176
                cfg->Read(_T("use_tm_when_updating"), true));
173
177
#endif
 
178
 
 
179
#ifdef USE_SPARKLE
 
180
    XRCCTRL(*this, "auto_updates", wxCheckBox)->SetValue(
 
181
                UserDefaults::GetBoolValue("SUCheckAtStartup"));
 
182
#endif // USE_SPARKLE
174
183
}
175
184
 
176
185
            
196
205
                XRCCTRL(*this, "open_editor_immediately", wxCheckBox)->GetValue());
197
206
    cfg->Write(_T("keep_crlf"), 
198
207
                XRCCTRL(*this, "keep_crlf", wxCheckBox)->GetValue());
199
 
#if USE_SPELLCHECKING
 
208
#ifdef USE_SPELLCHECKING
200
209
    cfg->Write(_T("enable_spellchecking"), 
201
210
                XRCCTRL(*this, "enable_spellchecking", wxCheckBox)->GetValue());
202
211
#endif
236
245
    cfg->Write(_T("use_tm_when_updating"), 
237
246
                XRCCTRL(*this, "tm_automatic", wxCheckBox)->GetValue());
238
247
#endif
 
248
 
 
249
#ifdef USE_SPARKLE
 
250
    UserDefaults::SetBoolValue("SUCheckAtStartup",
 
251
                XRCCTRL(*this, "auto_updates", wxCheckBox)->GetValue());
 
252
#endif // USE_SPARKLE
239
253
}
240
254
 
241
255