lib Library API Documentation

koFontDia_p.h

00001 #ifndef KOFONTDIA_P_H 00002 #define KOFONTDIA_P_H 00003 00004 #include <qframe.h> 00005 class QSpinBox; 00006 class QPushButton; 00007 class KColorButton; 00008 class QLabel; 00009 00010 class KoShadowPreview : public QFrame 00011 { 00012 Q_OBJECT 00013 00014 public: 00015 // constructor - destructor 00016 KoShadowPreview( QWidget* parent, const char* ); 00017 ~KoShadowPreview() {} 00018 00019 void setShadowDistanceX( double sd ) { shadowDistanceX = sd; repaint( true ); } 00020 void setShadowDistanceY( double sd ) { shadowDistanceY = sd; repaint( true ); } 00021 void setShadowColor( QColor sc ) { shadowColor = sc; repaint( true ); } 00022 00023 protected: 00024 void drawContents( QPainter* ); 00025 00026 double shadowDistanceX; 00027 double shadowDistanceY; 00028 QColor shadowColor; 00029 }; 00030 00031 00032 class KoTextShadowWidget: public QWidget 00033 { 00034 Q_OBJECT 00035 public: 00036 KoTextShadowWidget( QWidget * parent, const char * name=0 ); 00037 virtual ~KoTextShadowWidget() {} 00038 00039 QString tabName(); 00040 00041 void setShadow( double shadowDistanceX, double shadowDistanceY, const QColor& shadowColor ); 00042 00043 double shadowDistanceX() const; 00044 double shadowDistanceY() const; 00045 QColor shadowColor() const { return m_shadowColor; } 00046 00047 signals: 00048 void changed(); 00049 00050 protected slots: 00051 void luChanged(); 00052 void uChanged(); 00053 void ruChanged(); 00054 void rChanged(); 00055 void rbChanged(); 00056 void bChanged(); 00057 void lbChanged(); 00058 void lChanged(); 00059 void colorChanged( const QColor& ); 00060 void distanceChanged( int ); 00061 00062 private: 00063 void setShadowDirection( short int sd ); 00064 00065 private: 00066 KoShadowPreview *m_shadowPreview; 00067 00068 QSpinBox *distance; 00069 QPushButton *lu, *u, *ru, *r, *rb, *b, *lb, *l; 00070 KColorButton *color; 00071 QLabel *lcolor, *ldirection, *ldistance; 00072 00073 enum { 00074 SD_LEFT_UP = 1, 00075 SD_UP = 2, 00076 SD_RIGHT_UP = 3, 00077 SD_RIGHT = 4, 00078 SD_RIGHT_BOTTOM = 5, 00079 SD_BOTTOM = 6, 00080 SD_LEFT_BOTTOM = 7, 00081 SD_LEFT = 8 00082 } ShadowDirection; 00083 00084 short int m_shadowDirection; 00085 double m_shadowDistance; 00086 QColor m_shadowColor; 00087 }; 00088 00089 #endif /* KOFONTDIA_P_H */ 00090
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 06:54:15 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003