00001 #ifndef __MAINWIN_H__ 00002 #define __MAINWIN_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_mainwin.h" 00028 #include "bildauswahl.h" 00029 #include "datenbank.h" 00030 #include "tagsuche.h" 00031 #include "optionen.h" 00032 00033 00037 class MainWin : public QMainWindow { 00038 // Data area 00039 Ui::MainWindow m_ui; 00040 QGraphicsScene *m_bild; 00041 QString m_bildname, 00042 m_path; 00043 Datenbank *m_datenbank; 00044 Bildauswahl *m_bildauswahl; 00045 bool m_dirty; 00046 Tagsuche *m_tagsuche; 00047 DisplayMode m_defaultDisplayMode; 00048 00049 public: 00050 MainWin(QWidget* =0); 00051 00052 private slots: 00053 void newPicture(); 00054 void findNewPictures(); 00055 void saveData(); 00056 void about(); 00057 void zoomIn(); 00058 void zoomOut(); 00059 void zoomOriginal(); 00060 void fitWidth(); 00061 void fitHeight(); 00062 void newTag(); 00063 void displayPicture(const QString&); 00064 void setDirty(); 00065 void search(); 00066 void newPictureList(const QStringList &); 00067 void options(); 00068 void changeDefaultZoom(DisplayMode); 00069 00070 00071 private: 00072 Q_OBJECT 00073 }; 00074 00075 #endif