~ubuntu-branches/ubuntu/oneiric/guayadeque/oneiric

« back to all changes in this revision

Viewing changes to src/Preferences.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-05-14 15:08:03 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110514150803-8b5evqetnaj35j34
Tags: 0.3.1~dfsg0-1
* New upstream release.
* Strip wxsqlite3 stuff out of upstream's tarballs.
* Update get-orig-source target in debian/rules.
* Update gbp config file.
* Bump Standards.
* Build-depend on libwxsqlite3-2.8-dev
* Enable parallel builds.
* Link binaries against the system-wide copy of wxsqlite3.
* Point sources to the correct wxcurl's headers location.
* Update copyright file as per DEP-5
* Improve debian/watch to handle the ~dfsg\d* suffix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -------------------------------------------------------------------------------- //
2
 
//      Copyright (C) 2008-2010 J.Rios
 
2
//      Copyright (C) 2008-2011 J.Rios
3
3
//      anonbeat@gmail.com
4
4
//
5
5
//    This Program is free software; you can redistribute it and/or modify
6
6
//    it under the terms of the GNU General Public License as published by
7
 
//    the Free Software Foundation; either version 2, or (at your option)
 
7
//    the Free Software Foundation; either version 3, or (at your option)
8
8
//    any later version.
9
9
//
10
10
//    This Program is distributed in the hope that it will be useful,
68
68
#define  guPREFERENCE_PAGE_FLAG_LINKS            ( 1 << 11 )
69
69
#define  guPREFERENCE_PAGE_FLAG_COMMANDS         ( 1 << 12 )
70
70
#define  guPREFERENCE_PAGE_FLAG_COPYTO           ( 1 << 13 )
 
71
#define  guPREFERENCE_PAGE_FLAG_ACCELERATORS     ( 1 << 14 )
71
72
 
72
73
enum guPreference_Page {
73
74
    guPREFERENCE_PAGE_GENERAL,
84
85
    guPREFERENCE_PAGE_LINKS,
85
86
    guPREFERENCE_PAGE_COMMANDS,
86
87
    guPREFERENCE_PAGE_COPYTO,
 
88
    guPREFERENCE_PAGE_ACCELERATORS,
87
89
    guPREFERENCE_PAGE_LASTUSED = -1
88
90
};
89
91
 
123
125
    wxCheckBox *                m_SoundMenuChkBox;
124
126
    wxCheckBox *                m_IgnoreLayoutsChkBox;
125
127
    wxCheckBox *                m_DropFilesChkBox;
 
128
    wxCheckBox *                m_InstantSearchChkBox;
 
129
    wxCheckBox *                m_EnterSearchChkBox;
126
130
    wxCheckBox *                m_EnqueueChkBox;
127
131
    wxChoice *                  m_AlYearOrderChoice;
128
132
    wxCheckBox *                m_SavePlayListChkBox;
144
148
    wxCheckBox *                m_LibScanPlayListChkBox;
145
149
    wxCheckBox *                m_LibScanSymlinksChkBox;
146
150
    wxCheckBox *                m_LibScanEmbCoversChkBox;
147
 
    wxCheckBox *                m_SaveLyricsChkBox;
 
151
    wxCheckBox *                m_LibSaveRatingsChkBox;
148
152
 
149
153
    wxPanel *                   m_PlayPanel;
150
154
    wxCheckBox *                m_RndPlayChkBox;
162
166
    wxTextCtrl *                m_PlayOutDevName;
163
167
    wxCheckBox *                m_NotifyChkBox;
164
168
    wxChoice *                  m_PlayReplayModeChoice;
 
169
    wxStaticText *              m_PlayPreAmpLevelVal;
 
170
    wxSlider *                  m_PlayPreAmpLevelSlider;
165
171
 
166
172
    wxPanel *                   m_XFadePanel;
167
173
    wxStaticText *              m_XFadeOutLenVal;
292
298
    wxChoice *                  m_MagDownFormatChoice;
293
299
    wxArrayString               m_LastMagnatuneGenres;
294
300
 
295
 
 
296
 
    wxChoice *                  m_LyricsChoice;
 
301
    wxPanel *                   m_AccelPanel;
 
302
    wxListCtrl *                m_AccelListCtrl;
 
303
    bool                        m_AccelItemNeedClear;
 
304
    //wxTextCtrl *                m_AccelKeyTextCtrl;
 
305
    //wxBitmapButton *            m_AccelDelBtn;
 
306
    //wxBitmapButton *            m_AccelSetBtn;
 
307
 
 
308
        wxArrayString               m_AccelActionNames;
 
309
        wxArrayString               m_AccelKeyNames;
 
310
    wxArrayInt                  m_AccelKeys;
 
311
    int                         m_AccelCurIndex;
 
312
    int                         m_AccelLastKey;
 
313
 
297
314
 
298
315
    guConfig *                  m_Config;
299
316
    int                         m_PathSelected;
323
340
    void                        BuildLinksPage( void );
324
341
    void                        BuildCommandsPage( void );
325
342
    void                        BuildCopyToPage( void );
 
343
    void                        BuildAcceleratorsPage( void );
326
344
 
327
345
    // Event Handlers
328
346
    void OnPageChanged( wxCommandEvent &event );
329
347
    void OnActivateTaskBarIcon( wxCommandEvent& event );
330
348
    void OnActivateSoundMenuIntegration( wxCommandEvent& event );
 
349
    void OnActivateInstantSearch( wxCommandEvent& event );
331
350
    void OnRndPlayClicked( wxCommandEvent& event );
332
351
    void OnDelPlayedTracksChecked( wxCommandEvent& event );
333
352
    void OnPathsListBoxSelected( wxCommandEvent& event );
358
377
    void OnDownCoverBtnClick( wxCommandEvent& event );
359
378
        void OnDelCoverBtnClick( wxCommandEvent& event );
360
379
    void OnPlayLevelEnabled( wxCommandEvent& event );
 
380
    void OnReplayGainModeChanged( wxCommandEvent &event );
 
381
    void OnPlayPreAmpLevelValueChanged( wxScrollEvent &event );
361
382
    void OnPlayLevelValueChanged( wxScrollEvent &event );
362
383
    void OnPlayEndTimeEnabled( wxCommandEvent& event );
363
384
    void OnPlayOutDevChanged( wxCommandEvent& event );
407
428
        void OnCopyToMoveFilesChanged( wxCommandEvent &event );
408
429
        void OnCopyToSaveBtnClick( wxCommandEvent &event );
409
430
 
 
431
        void OnAccelSelected( wxListEvent &event );
 
432
    void OnAccelKeyDown( wxKeyEvent &event );
 
433
 
410
434
  public:
411
435
    guPrefDialog( wxWindow * parent, guDbLibrary * db, int pagenum = guPREFERENCE_PAGE_LASTUSED );
412
436
    ~guPrefDialog();