Last change
on this file since 8 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 |
|
---|
16 | class QImage;
|
---|
17 | class QComboBox;
|
---|
18 | class QListBox;
|
---|
19 | class QLineEdit;
|
---|
20 | class QMultiLineEdit;
|
---|
21 |
|
---|
22 | class ImageTextEditor : public QDialog
|
---|
23 | {
|
---|
24 | Q_OBJECT
|
---|
25 | public:
|
---|
26 | ImageTextEditor( QImage& i, QWidget *parent=0, const char *name=0, WFlags f=0 );
|
---|
27 | ~ImageTextEditor();
|
---|
28 | void accept();
|
---|
29 | public slots:
|
---|
30 | void imageChanged();
|
---|
31 | void updateText();
|
---|
32 | void addText();
|
---|
33 | void removeText();
|
---|
34 | private:
|
---|
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.