~ubuntu-branches/ubuntu/precise/tetzle/precise

« back to all changes in this revision

Viewing changes to src/label_image_dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Bart Martens
  • Date: 2011-06-02 02:51:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110602025109-6jmxy9wekpwlrkw6
Tags: 2.0.0-1
* Synced with https://launchpad.net/~gottcode/+archive/gcppa/
* debian/control: Fixed "dpkg-source: warning: unknown information field
  'Suggests' in input data in general section of control info file".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***********************************************************************
2
 
 *
3
 
 * Copyright (C) 2008 Graeme Gott <graeme@gottcode.org>
4
 
 *
5
 
 * This program is free software: you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation, either version 3 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
 *
18
 
 ***********************************************************************/
19
 
 
20
 
#ifndef LABEL_IMAGE_DIALOG_H
21
 
#define LABEL_IMAGE_DIALOG_H
22
 
 
23
 
#include <QDialog>
24
 
class QListWidget;
25
 
class QListWidgetItem;
26
 
class QPushButton;
27
 
class LabelManager;
28
 
 
29
 
class LabelImageDialog : public QDialog
30
 
{
31
 
        Q_OBJECT
32
 
public:
33
 
        LabelImageDialog(const QString& image, LabelManager* manager, QString& filter, QWidget* parent = 0);
34
 
 
35
 
protected:
36
 
        virtual void hideEvent(QHideEvent* event);
37
 
 
38
 
private slots:
39
 
        void addLabel();
40
 
        void removeLabel();
41
 
        void labelChanged(QListWidgetItem* label);
42
 
 
43
 
private:
44
 
        QString m_image;
45
 
        LabelManager* m_manager;
46
 
        QString& m_filter;
47
 
 
48
 
        QListWidget* m_labels;
49
 
        QPushButton* m_remove_button;
50
 
};
51
 
 
52
 
#endif // LABEL_IMAGE_DIALOG_H