Fix compiler warnings.
[shopper.git] / src / ui / PreferencesDialog.h
blob8d255748e7d049f54b90ac81177536e1f11ab66b
1 /* Shopper
2 * Copyright (C) 2008 David Greaves
4 * This software is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public License
6 * as published by the Free Software Foundation; either version 2.1 of
7 * the License, or (at your option) any later version.
9 * This software is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this software; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #include "shopperList.h"
21 #include <QtGui>
22 #include <QSignalMapper>
23 #include "CatListModel.h"
25 namespace Shopper
27 // private base for adding/editing an Item
28 class PreferencesDialog : public QDialog
30 Q_OBJECT;
31 public:
32 PreferencesDialog(QWidget *parent = 0);
34 public slots:
35 void toggleSetting(const QString setting);
37 private:
38 QCheckBox* addPref(const QString setting, bool defaultVal, QString label, QGridLayout *layout, int row);
40 // GUI
41 QTabWidget *tabWidget;
42 QDialogButtonBox *buttonBox;
43 QWidget *uiPane; // Show hide elements, columns etc
44 QWidget *dataPane; // Save on exit?
45 QSignalMapper signalMapper;