File indexing completed on 2024-04-21 15:12:02

0001 /***************************************************** -*- mode:c++; -*- ***
0002                           GalleryHistory.h - combobox for image names
0003                              -------------------
0004     begin                : Tue Nov 13 2001
0005     copyright            : (C) 2001 by Klaas Freitag
0006     email                : freitag@suse.de
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *  This file may be distributed and/or modified under the terms of the    *
0012  *  GNU General Public License version 2 as published by the Free Software *
0013  *  Foundation and appearing in the file COPYING included in the           *
0014  *  packaging of this file.                                                *
0015  *
0016  *  As a special exception, permission is given to link this program       *
0017  *  with any version of the KADMOS ocr/icr engine of reRecognition GmbH,   *
0018  *  Kreuzlingen and distribute the resulting executable without            *
0019  *  including the source code for KADMOS in the source distribution.       *
0020  *
0021  *  As a special exception, permission is given to link this program       *
0022  *  with any edition of Qt, and distribute the resulting executable,       *
0023  *  without including the source code for Qt in the source distribution.   *
0024  *                                                                         *
0025  ***************************************************************************/
0026 
0027 #ifndef GALLERYHISTORY_H
0028 #define GALLERYHISTORY_H
0029 
0030 #include <kcombobox.h>
0031 
0032 /**
0033   *@author Klaas Freitag
0034 */
0035 
0036 class FileTreeBranch;
0037 
0038 class GalleryHistory : public KComboBox
0039 {
0040     Q_OBJECT
0041 
0042 public:
0043     explicit GalleryHistory(QWidget *parent);
0044 
0045 public slots:
0046     void slotPathChanged(const FileTreeBranch *branch, const QString &relPath);
0047     void slotPathRemoved(const FileTreeBranch *branch, const QString &relPath);
0048 
0049 signals:
0050     void pathSelected(const QString &branchName, const QString &relPath);
0051 
0052 protected slots:
0053     void slotActivated(int idx);
0054 };
0055 
0056 #endif                          // GALLERYHISTORY_H