File indexing completed on 2024-04-28 09:45:45

0001 /***************************************************************************
0002                       preferences.h  -  preferences widget
0003                              -------------------
0004     begin                : lun avr 12 18:25:02 CET 2004
0005     copyright            : (C) 2001-2022 by Éric Bischoff
0006     email                : bischoff@kde.org
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #ifndef PREFERENCES_H
0019 #define PREFERENCES_H
0020 
0021 #include <QDialog>
0022 
0023 #include "ui_settingsdialog.h"
0024 
0025 class KEuroCalc;
0026 class Currencies;
0027 
0028 class Preferences : public QDialog, public Ui::SettingsDialog
0029 {
0030   Q_OBJECT 
0031 
0032 public:
0033     Preferences(KEuroCalc *parent, const Currencies *currencies);
0034     virtual ~Preferences();
0035 
0036 public slots:
0037     virtual void ok();
0038     virtual void cancel();
0039     virtual void changeDisplayColor();
0040 
0041 // TODO: The following should move to the ui file!
0042 private:
0043     class QButtonGroup *referenceGroup;
0044     class QButtonGroup *roundingGroup;
0045 };
0046 
0047 #endif