00001 #ifndef __OPTIONEN_H__ 00002 #define __OPTIONEN_H__ 00003 00008 /* 00009 Copyright (C) 2008 Johannes Bretscher 00010 00011 This program is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; either version 2 of the License, or 00014 (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with this program; if not, write to the Free Software 00023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 00025 */ 00026 00027 #include "ui_optionen.h" 00028 #include <QSettings> 00029 00033 enum DisplayMode { 00034 DM_ORIGINAL, 00035 DM_WIDTH, 00036 DM_MAXWIDTH, 00037 DM_HEIGHT, 00038 DM_MAXHEIGHT 00039 }; 00040 00042 class Optionen : public QDialog { 00043 // Data area 00044 Ui::Optionen m_ui; 00045 00046 public: 00047 Optionen(QWidget* =0, Qt::WindowFlags=0); 00048 00049 QSettings m_settings; 00050 00051 public slots: 00052 void accept(); 00053 void selectDbPath(); 00054 00055 signals: 00056 void setDefaultZoom(DisplayMode); 00057 00058 private: 00059 Q_OBJECT 00060 }; 00061 00062 #endif