00001 #ifndef __BILDAUSWAHL_H__ 00002 #define __BILDAUSWAHL_H__ 00003 00004 /* 00005 Copyright (C) 2008 Johannes Bretscher 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 00021 */ 00022 00023 #include <QToolBar> 00024 #include <QComboBox> 00025 00027 class Bildauswahl : public QToolBar { 00028 QComboBox *m_bildlist; 00029 QAction *m_first, 00030 *m_prev, 00031 *m_selectBox, 00032 *m_next, 00033 *m_last; 00034 00035 void updateStatus(); 00036 00037 private slots: 00038 void firstPressed(); 00039 void prevPressed(); 00040 void nextPressed(); 00041 void lastPressed(); 00042 void selectedImageChanged(const QString&); 00043 00044 public: 00045 Bildauswahl(QWidget* =0); 00046 00047 void setImageList(const QStringList&); 00048 00049 signals: 00054 void bildGeaendert(const QString &bild); 00055 00056 private: 00057 Q_OBJECT 00058 }; 00059 00060 #endif