GUIChatTextInput.h

Idź do dokumentacji tego pliku.
00001 #ifndef GUICHATTEXTINPUT_H
00002 #define GUICHATTEXTINPUT_H
00003 
00004 #include <QTextEdit>
00005 #include <QToolBar>
00006 #include <QColorDialog>
00007 #include <QTextList>
00008 #include <QIcon>
00009 #include <QAction>
00010 #include <QApplication>
00011 #include <QComboBox>
00012 #include <QColorDialog>
00013 #include <QFontDatabase>
00014 
00015 
00016 
00020 class GUIChatTextInput : public QTextEdit
00021 {
00022 
00023 Q_OBJECT
00024 
00025 
00026 
00027 public:
00028 
00036         GUIChatTextInput (QWidget *parent, QToolBar *tb, QColor defFColor);
00037         
00043         void setDefFontColor(QColor def);
00044 
00045 public slots:
00051         void textBold();
00052         void textUnderline();
00058 
00064     void textItalic();
00070     void textFamily(const QString &f);
00076     void textSize(const QString &p);
00081     void textColor();
00088     void currentCharFormatChanged(const QTextCharFormat &format);
00089 
00090 private:
00098     void fontChanged(const QFont &f);
00104     void colorChanged(const QColor &c);
00110     void createTextToolBar(QToolBar *tb);
00111     QColor defFontColor;
00112 
00113         QAction *actionTextBold,
00114                 *actionTextUnderline,
00115                 *actionTextItalic,
00116                 *actionTextColor;
00117         QComboBox *comboFont,
00118                 *comboSize;
00119     
00125     virtual void mousePressEvent( QMouseEvent *e );
00131     virtual void keyPressEvent ( QKeyEvent *e );
00132 
00133 private:
00142         virtual bool event (QEvent * e);
00143         bool isEmpty();
00144 
00145 signals:
00149         void sendRequest ();
00150 };
00151 
00152 
00153 #endif
00154 
00155 
00156 
00157 
00158 
00159 
00160 
00161 
00162 
00163 
00164 

Wygenerowano Sun Jun 11 12:55:08 2006 dla lanChat programem  doxygen 1.4.6