Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

texttool.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   DrawPad - a drawing program for Opie Environment                      *
00004  *                                                                         *
00005  *   (C) 2002 by S. Prud'homme <prudhomme@laposte.net>                     *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  ***************************************************************************/
00013 
00014 #ifndef TEXTTOOL_H
00015 #define TEXTTOOL_H
00016 
00017 #include "tool.h"
00018 
00019 #include <qdialog.h>
00020 
00021 class QLineEdit;
00022 
00023 class TextToolDialog : public QDialog
00024 {
00025     Q_OBJECT
00026 public:
00027     TextToolDialog(QWidget* parent = 0, const char* name = 0);
00028     ~TextToolDialog();
00029 
00030     QString text();
00031 
00032 private:
00033     QLineEdit* m_pLineEdit;
00034 };
00035 
00036 class TextTool : public Tool
00037 {
00038 public:
00039     TextTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas);
00040     ~TextTool();
00041 
00042     void mousePressEvent(QMouseEvent* e);
00043     void mouseReleaseEvent(QMouseEvent* e);
00044     void mouseMoveEvent(QMouseEvent* e);
00045 };
00046 
00047 #endif // TEXTTOOL_H

Generated on Sat Nov 5 16:17:29 2005 for OPIE by  doxygen 1.4.2