source: trunk/examples/showimg/imagetexteditor.h@ 16

Last change on this file since 16 was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/****************************************************************************
2** $Id: imagetexteditor.h 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#ifndef IMAGETEXTEDITOR_H
12#define IMAGETEXTEDITOR_H
13
14#include <qdialog.h>
15
16class QImage;
17class QComboBox;
18class QListBox;
19class QLineEdit;
20class QMultiLineEdit;
21
22class ImageTextEditor : public QDialog
23{
24 Q_OBJECT
25public:
26 ImageTextEditor( QImage& i, QWidget *parent=0, const char *name=0, WFlags f=0 );
27 ~ImageTextEditor();
28 void accept();
29public slots:
30 void imageChanged();
31 void updateText();
32 void addText();
33 void removeText();
34private:
35 void storeText();
36 QImage& image;
37 QComboBox* languages;
38 QComboBox* keys;
39 QMultiLineEdit* text;
40 QLineEdit* newlang;
41 QLineEdit* newkey;
42 QString currKey();
43 QString currLang();
44 QString currText();
45};
46
47#endif // IMAGETEXTEDITOR_H
Note: See TracBrowser for help on using the repository browser.