diff options
Diffstat (limited to 'kword/KWFrameDia.h')
-rw-r--r-- | kword/KWFrameDia.h | 121 |
1 files changed, 62 insertions, 59 deletions
diff --git a/kword/KWFrameDia.h b/kword/KWFrameDia.h index a1e4886d..554960be 100644 --- a/kword/KWFrameDia.h +++ b/kword/KWFrameDia.h @@ -26,50 +26,52 @@ #include <kdialogbase.h> #include <KoUnit.h> #include <KoUnitWidgets.h> -#include <qgroupbox.h> +#include <tqgroupbox.h> class KoBorderPreview; class KWFrame; class KWDocument; class KWPage; -class QWidget; -class QGridLayout; -class QGroupBox; -class QRadioButton; -class QCheckBox; -class QLabel; -class QCloseEvent; -class QListView; -class QListViewItem; -class QLineEdit; +class TQWidget; +class TQGridLayout; +class TQGroupBox; +class TQRadioButton; +class TQCheckBox; +class TQLabel; +class TQCloseEvent; +class TQListView; +class TQListViewItem; +class TQLineEdit; class KColorButton; class KDoubleNumInput; /******************************************************************/ /* Class: KWBrushStylePreview */ /******************************************************************/ -class KWBrushStylePreview : public QFrame +class KWBrushStylePreview : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KWBrushStylePreview( QWidget* ); + KWBrushStylePreview( TQWidget* ); ~KWBrushStylePreview() {} - void setBrush( const QBrush& _brush ) { brush = _brush; } + void setBrush( const TQBrush& _brush ) { brush = _brush; } protected: - void drawContents( QPainter* ); + void drawContents( TQPainter* ); private: - QBrush brush; + TQBrush brush; }; /** * A widget showing unitwidgets for 4 doubles (for left/right/top/bottom values) * and a checkbox to synchronize changes to all values */ -class KWFourSideConfigWidget : public QGroupBox +class KWFourSideConfigWidget : public TQGroupBox { Q_OBJECT + TQ_OBJECT public: - KWFourSideConfigWidget( KWDocument* m_doc, const QString& title, QWidget*, const char* name = 0 ); + KWFourSideConfigWidget( KWDocument* m_doc, const TQString& title, TQWidget*, const char* name = 0 ); bool changed() const { return m_changed; } @@ -86,7 +88,7 @@ public slots: private: KoUnitDoubleSpinBox *m_inputLeft, *m_inputRight, *m_inputTop, *m_inputBottom; - QCheckBox *m_synchronize; + TQCheckBox *m_synchronize; KWDocument *m_doc; bool m_changed; bool m_noSignal; @@ -98,12 +100,13 @@ private: class KWFrameDia : public KDialogBase { Q_OBJECT + TQ_OBJECT public: /** Contructor when the dialog is used on creation of m_frame */ - KWFrameDia( QWidget *parent, KWFrame *_frame,KWDocument *_doc,FrameSetType _ft); - KWFrameDia( QWidget *parent, KWFrame *_frame); - KWFrameDia( QWidget *parent, QPtrList<KWFrame> allFrames); - //KWFrameDia( QWidget *parent, KWCanvas *_canvas); + KWFrameDia( TQWidget *tqparent, KWFrame *_frame,KWDocument *_doc,FrameSetType _ft); + KWFrameDia( TQWidget *tqparent, KWFrame *_frame); + KWFrameDia( TQWidget *tqparent, TQPtrList<KWFrame> allFrames); + //KWFrameDia( TQWidget *tqparent, KWCanvas *_canvas); //void setCanvas(KWCanvas *_canvas) {canvas =_canvas;} @@ -125,18 +128,18 @@ protected: bool mayDeleteFrameSet(KWTextFrameSet *fs); void enableSizeAndPosition(); - QBrush frameBrushStyle() const; + TQBrush frameBrushStyle() const; void calcRatio(); protected slots: virtual void slotApply(); virtual void slotOk(); - void connectListSelected( QListViewItem * ); + void connectListSelected( TQListViewItem * ); void setFrameBehaviorInputOn(); void setFrameBehaviorInputOff(); void slotFloatingToggled(bool); void slotProtectSizeToggled(bool); - void textNameFrameChanged ( const QString & ); + void textNameFrameChanged ( const TQString & ); //void updateBrushPreview(); void slotProtectContentChanged( bool ); void enableRunAround(); @@ -150,62 +153,62 @@ protected slots: void brdRightToggled( bool ); void brdTopToggled( bool ); void brdBottomToggled( bool ); - void slotPressEvent(QMouseEvent *_ev); + void slotPressEvent(TQMouseEvent *_ev); private: // TAB 1: - QWidget *m_tab1; - QGridLayout *m_grid1, *m_eofGrid, *m_onpGrid, *m_sideGrid; - QGroupBox *m_endOfFrame, *m_onNewPage, *m_sideHeads; - QCheckBox *m_cbCopy, *m_cbAspectRatio, *m_cbAllFrames; - QCheckBox *m_cbProtectContent; - QRadioButton *m_rResizeFrame, *m_rAppendFrame, *m_rNoShow, *m_reconnect, *m_noFollowup, *m_copyRadio; - QLabel *sideTitle1, *sideTitle2; - QLineEdit *m_sideWidth, *m_sideGap; - QComboBox *m_sideAlign; + TQWidget *m_tab1; + TQGridLayout *m_grid1, *m_eofGrid, *m_onpGrid, *m_sideGrid; + TQGroupBox *m_endOfFrame, *m_onNewPage, *m_sideHeads; + TQCheckBox *m_cbCopy, *m_cbAspectRatio, *m_cbAllFrames; + TQCheckBox *m_cbProtectContent; + TQRadioButton *m_rResizeFrame, *m_rAppendFrame, *m_rNoShow, *m_reconnect, *m_noFollowup, *m_copyRadio; + TQLabel *sideTitle1, *sideTitle2; + TQLineEdit *m_sideWidth, *m_sideGap; + TQComboBox *m_sideAlign; // TAB 2: - QWidget *m_tab2; - QRadioButton *m_rRunNo, *m_rRunBounding, *m_rRunSkip; - QRadioButton *m_rRunLeft, *m_rRunRight, *m_rRunBiggest; - QGroupBox *m_runGroup, *m_runSideGroup; + TQWidget *m_tab2; + TQRadioButton *m_rRunNo, *m_rRunBounding, *m_rRunSkip; + TQRadioButton *m_rRunLeft, *m_rRunRight, *m_rRunBiggest; + TQGroupBox *m_runGroup, *m_runSideGroup; KWFourSideConfigWidget* m_raDistConfigWidget; // TAB 3: - QWidget *m_tab3; - QLineEdit *m_eFrameSetName; - QListView *m_lFrameSList; - QRadioButton *m_rExistingFrameset, *m_rNewFrameset; + TQWidget *m_tab3; + TQLineEdit *m_eFrameSetName; + TQListView *m_lFrameSList; + TQRadioButton *m_rExistingFrameset, *m_rNewFrameset; // TAB 4: - QWidget *m_tab4; - QGroupBox *m_grp1; - QLabel *m_lx, *m_ly, *m_lw, *m_lh; + TQWidget *m_tab4; + TQGroupBox *m_grp1; + TQLabel *m_lx, *m_ly, *m_lw, *m_lh; KoUnitDoubleSpinBox *m_sx, *m_sy, *m_sw, *m_sh; KWFourSideConfigWidget* m_paddingConfigWidget; - QCheckBox *m_floating; - QCheckBox *m_protectSize; + TQCheckBox *m_floating; + TQCheckBox *m_protectSize; // TAB 5: - QWidget *m_tab5; + TQWidget *m_tab5; // TAB 6: - QWidget *m_tab6; - QComboBox *m_cWidth, *m_cStyle; - QPushButton *m_bLeft, *m_bRight, *m_bTop, *m_bBottom; + TQWidget *m_tab6; + TQComboBox *m_cWidth, *m_cStyle; + TQPushButton *m_bLeft, *m_bRight, *m_bTop, *m_bBottom; KColorButton *m_bColor; KoBorder m_leftBorder, m_rightBorder, m_topBorder, m_bottomBorder; KoBorderPreview *m_prev3; - //QComboBox *brushStyle; - QCheckBox* m_transparentCB; + //TQComboBox *brushStyle; + TQCheckBox* m_transparentCB; KColorButton *m_brushColor; //KWBrushStylePreview *brushPreview; - QCheckBox *m_overwriteColor; + TQCheckBox *m_overwriteColor; KWFrame *m_frame; KWFrame *m_mainFrame; - QPtrList<KWFrame> m_allFrames; + TQPtrList<KWFrame> m_allFrames; KWDocument *m_doc; FrameSetType m_frameType; bool m_frameSetFloating; @@ -216,8 +219,8 @@ private: double m_heightByWidthRatio; int /*FrameBehavior*/ m_frameBehavior; KoUnit::Unit m_frameUnits; - QString m_oldFrameSetName; - QBrush m_newBrushStyle; + TQString m_oldFrameSetName; + TQBrush m_newBrushStyle; bool m_noSignal; }; |