PCManFM-Qt
desktoppreferencesdialog.h
1 /*
2 
3  Copyright (C) 2013 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef PCMANFM_DESKTOPPREFERENCESDIALOG_H
22 #define PCMANFM_DESKTOPPREFERENCESDIALOG_H
23 
24 #include <QDialog>
25 #include "ui_desktop-preferences.h"
26 
27 namespace PCManFM {
28 
29 class DesktopPreferencesDialog : public QDialog {
30 Q_OBJECT
31 
32 public:
33  explicit DesktopPreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
34  virtual ~DesktopPreferencesDialog();
35 
36  virtual void accept();
37 
38  void selectPage(QString name);
39 
40 protected Q_SLOTS:
41  void onWallpaperModeChanged(int index);
42  void onBrowseClicked();
43  void onBrowseDesktopFolderClicked();
44 
45 private:
46  Ui::DesktopPreferencesDialog ui;
47 };
48 
49 }
50 
51 #endif // PCMANFM_DESKTOPPREFERENCESDIALOG_H
Definition: application.h:38
Definition: desktoppreferencesdialog.h:29