home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / showimg / imagetexteditor.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  1KB  |  48 lines

  1. /****************************************************************************
  2. ** $Id:  qt/imagetexteditor.h   3.0.0   edited Jun 22 13:24 $
  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
  48.