summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrView.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrView.h')
-rw-r--r--kpresenter/KPrView.h177
1 files changed, 89 insertions, 88 deletions
diff --git a/kpresenter/KPrView.h b/kpresenter/KPrView.h
index 01c67e16..f50816ba 100644
--- a/kpresenter/KPrView.h
+++ b/kpresenter/KPrView.h
@@ -25,9 +25,9 @@
#include <config.h>
#endif
-#include <qguardedptr.h>
-#include <qtimer.h>
-#include <qdatetime.h>
+#include <tqguardedptr.h>
+#include <tqtimer.h>
+#include <tqdatetime.h>
#include <KoView.h>
#include "global.h"
@@ -35,14 +35,14 @@
#include <KoPen.h>
#include <KoRuler.h>
-class QPopupMenu;
-class QSplitter;
-class QLabel;
+class TQPopupMenu;
+class TQSplitter;
+class TQLabel;
class DCOPObject;
class KPrView;
class KPrBackDialog;
class KoRuler;
-class QScrollBar;
+class TQScrollBar;
class AFChoose;
class KPrPropertyEditor;
class KPrPgConfDia;
@@ -55,7 +55,7 @@ class ConfRectDia;
class ConfPolygonDia;
class ConfPictureDia;
class KPrPresDurationDia;
-class QToolButton;
+class TQToolButton;
class KPrSideBar;
class KPrNoteBar;
@@ -102,11 +102,11 @@ namespace KSpell2 {
class Dialog;
}
-class PageBase : public QWidget
+class PageBase : public TQWidget
{
public:
- PageBase( QWidget *parent, KPrView *v ) : QWidget( parent ), view( v ) {}
- void resizeEvent( QResizeEvent *e );
+ PageBase( TQWidget *tqparent, KPrView *v ) : TQWidget( tqparent ), view( v ) {}
+ void resizeEvent( TQResizeEvent *e );
private:
KPrView *view;
@@ -118,9 +118,10 @@ class KPrView : public KoView
{
friend class PageBase;
Q_OBJECT
+ TQ_OBJECT
public:
- KPrView( KPrDocument* _doc, QWidget *_parent = 0, const char *_name = 0 );
+ KPrView( KPrDocument* _doc, TQWidget *_parent = 0, const char *_name = 0 );
~KPrView();
void initGui();
@@ -141,7 +142,7 @@ public:
void showZoom( int zoom ); // show a zoom value in the combo
void setZoom( int zoom, bool updateViews ); // change the zoom value
void changeZoomMenu( int zoom=-1);
- void showStyle( const QString & styleName );
+ void showStyle( const TQString & styleName );
void updateStyleList();
KoTextZoomHandler *zoomHandler() const;
@@ -156,21 +157,21 @@ public:
void updateDisplayObjectMasterPageButton();
void updateDisplayBackgroundButton();
- virtual int leftBorder() const { return canvas()->mapTo(const_cast<KPrView *>(this), QPoint(0,0)).x(); };
- virtual int rightBorder() const { return width() - canvas()->mapTo(const_cast<KPrView *>(this), QPoint(canvas()->width(), 0)).x(); };
- virtual int topBorder() const { return canvas()->mapTo(const_cast<KPrView *>(this), QPoint(0,0)).y(); };
- virtual int bottomBorder() const { return height() - canvas()->mapTo(const_cast<KPrView *>(this), QPoint(0, canvas()->height())).y(); };
+ virtual int leftBorder() const { return canvas()->mapTo(const_cast<KPrView *>(this), TQPoint(0,0)).x(); };
+ virtual int rightBorder() const { return width() - canvas()->mapTo(const_cast<KPrView *>(this), TQPoint(canvas()->width(), 0)).x(); };
+ virtual int topBorder() const { return canvas()->mapTo(const_cast<KPrView *>(this), TQPoint(0,0)).y(); };
+ virtual int bottomBorder() const { return height() - canvas()->mapTo(const_cast<KPrView *>(this), TQPoint(0, canvas()->height())).y(); };
void updateGuideLineButton();
void updateGridButton();
- void savePicture( const QString& oldName, KoPicture& picture);
+ void savePicture( const TQString& oldName, KoPicture& picture);
void savePicture( KPrPixmapObject* obj );
- void insertFile(const QString &path);
+ void insertFile(const TQString &path);
void testAndCloseAllTextObjectProtectedContent();
void updateRulerInProtectContentMode();
- QPtrList<KAction> listOfResultOfCheckWord( const QString &word );
+ TQPtrList<KAction> listOfResultOfCheckWord( const TQString &word );
/**
* Returns the KPresenter global KSpell2 Broker object.
@@ -200,7 +201,7 @@ public slots:
void viewShowSideBar();
void viewShowNoteBar();
void viewSlideMaster();
- void viewZoom( const QString &s );
+ void viewZoom( const TQString &s );
void viewFooter();
void viewHeader();
@@ -216,7 +217,7 @@ public slots:
// insert menu
void insertPage();
void insertPicture();
- void insertPicture(const QString &file);
+ void insertPicture(const TQString &file);
void insertSpecialChar();
// tools menu
@@ -305,7 +306,7 @@ public slots:
// text toolbar
void sizeSelected( int size );
- void fontSelected( const QString &fontFamily );
+ void fontSelected( const TQString &fontFamily );
void textBold();
void textItalic();
void textUnderline();
@@ -365,7 +366,7 @@ public slots:
void textSubScript();
void textSuperScript();
- void slotSpecialChar(QChar, const QString &);
+ void slotSpecialChar(TQChar, const TQString &);
void slotSpecialCharDlgClosed();
void insertLink();
@@ -384,12 +385,12 @@ public slots:
void slotSpellCheck();
- void spellCheckerDone( const QString & );
+ void spellCheckerDone( const TQString & );
void spellCheckerCancel();
void startKSpell();
- void spellAddAutoCorrect (const QString & originalword, const QString & newword);
- void spellCheckerMisspelling( const QString &, int );
- void spellCheckerCorrected( const QString &, int, const QString & );
+ void spellAddAutoCorrect (const TQString & originalword, const TQString & newword);
+ void spellCheckerMisspelling( const TQString &, int );
+ void spellCheckerCorrected( const TQString &, int, const TQString & );
void alignChanged( int );
void formatParagraph();
@@ -487,7 +488,7 @@ public:
KPrDocument *kPresenterDoc() const {return m_pKPresenterDoc; }
// properties
- void changePicture( const QString & );
+ void changePicture( const TQString & );
KPrCanvas* getCanvas() const { return m_canvas;}
@@ -500,8 +501,8 @@ public:
KoRuler *getHRuler() const { return h_ruler; }
KoRuler *getVRuler() const { return v_ruler; }
KoTabChooser *getTabChooser() const { return tabChooser; }
- QScrollBar *getHScrollBar() const { return horz; }
- QScrollBar *getVScrollBar() const { return vert; }
+ TQScrollBar *getHScrollBar() const { return horz; }
+ TQScrollBar *getVScrollBar() const { return vert; }
/**
* @brief Show the rect where object lies
@@ -517,11 +518,11 @@ public:
int getPieAngle() const { return pieAngle; }
int getPieLength() const { return pieLength; }
KoPen getPen() const { return pen; }
- QBrush getBrush() const { return brush; }
+ TQBrush getBrush() const { return brush; }
LineEnd getLineBegin() const { return lineBegin; }
LineEnd getLineEnd() const{ return lineEnd; }
- QColor getGColor1() const { return gColor1; }
- QColor getGColor2() const { return gColor2; }
+ TQColor getGColor1() const { return gColor1; }
+ TQColor getGColor2() const { return gColor2; }
BCType getGType() const { return gType; }
FillType getFillType() const { return fillType; }
bool getGUnbalanced() const { return gUnbalanced; }
@@ -534,11 +535,11 @@ public:
void setPieAngle(int _pieAngle) { pieAngle = _pieAngle; }
void setPieLength(int _pieLength) { pieLength = _pieLength; }
void setPen(KoPen _pen) { pen = _pen; }
- void setBrush(QBrush _brush) { brush = _brush; }
+ void setBrush(TQBrush _brush) { brush = _brush; }
void setLineBegin(LineEnd _lineBegin) { lineBegin = _lineBegin; }
void setLineEnd(LineEnd _lineEnd){ lineEnd = _lineEnd; }
- void setGColor1(QColor _gColor1) { gColor1 = _gColor1; }
- void setGColor2(QColor _gColor2) { gColor2 = _gColor2; }
+ void setGColor1(TQColor _gColor1) { gColor1 = _gColor1; }
+ void setGColor2(TQColor _gColor2) { gColor2 = _gColor2; }
void setGType(BCType _gType) { gType = _gType; }
void setFillType(FillType _fillType) { fillType = _fillType; }
void setGUnbalanced(bool _gUnbalanced) { gUnbalanced = _gUnbalanced; }
@@ -553,8 +554,8 @@ public:
void setRndX(int _rndX) { rndX = _rndX; }
void setRndY(int _rndY) { rndY = _rndY; }
-// QFont &currFont() { return tbFont; }
-// QColor &currColor() { return tbColor; }
+// TQFont &currFont() { return tbFont; }
+// TQColor &currColor() { return tbColor; }
void enableWebPres();
void enableMSPres();
@@ -566,7 +567,7 @@ public:
/**
* Overloaded from View
*/
- QWidget* canvas() const;
+ TQWidget* canvas() const;
/**
* Overloaded from View
*/
@@ -586,14 +587,14 @@ public:
void setCanvasXOffset( int _x );
void setCanvasYOffset( int _y );
- void openPopupMenuObject( const QString & name , const QPoint & _point );
- void openPopupMenuMenuPage( const QPoint & _point );
- void openPopupMenuSideBar(const QPoint & _point);
+ void openPopupMenuObject( const TQString & name , const TQPoint & _point );
+ void openPopupMenuMenuPage( const TQPoint & _point );
+ void openPopupMenuSideBar(const TQPoint & _point);
- void openPopupMenuZoom( const QPoint & _point );
+ void openPopupMenuZoom( const TQPoint & _point );
void penColorChanged( const KoPen & _pen );
- void brushColorChanged( const QBrush & _brush );
+ void brushColorChanged( const TQBrush & _brush );
/**
* Restart the timer for going to the next page.
@@ -621,7 +622,7 @@ public:
void showCounter( KoParagCounter &c );
- QPopupMenu * popupMenu( const QString& name );
+ TQPopupMenu * popupMenu( const TQString& name );
void showRulerIndent( double _leftMargin, double _firstLine, double _rightMargin, bool rtl );
@@ -631,9 +632,9 @@ public:
KPrNoteBar *getNoteBar() const { return notebar; }
// Used by Page to plug/unplug the datatool actions
- QPtrList<KAction>& actionList() { return m_actionList; }
+ TQPtrList<KAction>& actionList() { return m_actionList; }
// Used by Page to plug/unplug the variable actions
- QPtrList<KAction> &variableActionList() { return m_variableActionList; }
+ TQPtrList<KAction> &variableActionList() { return m_variableActionList; }
// for Polygon object
bool getCheckConcavePolygon() const { return checkConcavePolygon; }
@@ -677,7 +678,7 @@ public:
protected slots:
// dialog slots
void backOk( KPrBackDialog*, bool );
- void afChooseOk( const QString & );
+ void afChooseOk( const TQString & );
void slotAfchooseCanceled();
void propertiesOk();
void pgConfOk();
@@ -690,8 +691,8 @@ protected slots:
void scrollV( int );
// textobject
- void fontChanged( const QFont & );
- void colorChanged( const QColor &color );
+ void fontChanged( const TQFont & );
+ void colorChanged( const TQColor &color );
void extraLineBeginNormal();
void extraLineBeginArrow();
@@ -732,7 +733,7 @@ protected slots:
void doAutomaticScreenPres();
- void getPageMouseWheelEvent( QWheelEvent *e );
+ void getPageMouseWheelEvent( TQWheelEvent *e );
void updateRuler();
void refreshAllVariable();
@@ -759,13 +760,13 @@ protected slots:
void loadingFinished();
protected:
- virtual void resizeEvent( QResizeEvent* );
- virtual void dragEnterEvent( QDragEnterEvent *e );
- virtual void dragMoveEvent( QDragMoveEvent *e );
- virtual void dragLeaveEvent( QDragLeaveEvent *e );
- virtual void dropEvent( QDropEvent *e );
+ virtual void resizeEvent( TQResizeEvent* );
+ virtual void dragEnterEvent( TQDragEnterEvent *e );
+ virtual void dragMoveEvent( TQDragMoveEvent *e );
+ virtual void dragLeaveEvent( TQDragLeaveEvent *e );
+ virtual void dropEvent( TQDropEvent *e );
- virtual void keyPressEvent( QKeyEvent* );
+ virtual void keyPressEvent( TQKeyEvent* );
virtual void guiActivateEvent( KParts::GUIActivateEvent *ev );
@@ -779,28 +780,28 @@ protected:
virtual void updateReadWrite( bool readwrite );
- void addVariableActions( int type, const QStringList & texts,
- KActionMenu * parentMenu, const QString & menuText );
+ void addVariableActions( int type, const TQStringList & texts,
+ KActionMenu * tqparentMenu, const TQString & menuText );
void showParagraphDialog( int initialPage = -1, double initialTabPos = 0.0 );
- QValueList<KoTextObject *> spellAddTextObject() const;
+ TQValueList<KoTextObject *> spellAddTextObject() const;
- bool switchInOtherPage( const QString & text );
+ bool switchInOtherPage( const TQString & text );
void openThePresentationDurationDialog();
- QString presentationDurationDataFormatChange( int _time );
+ TQString presentationDurationDataFormatChange( int _time );
int getZoomEntirePage() const;
- KCommand * applyAutoFormatToCurrentPage( const QPtrList<KoTextObject> & lst);
+ KCommand * applyAutoFormatToCurrentPage( const TQPtrList<KoTextObject> & lst);
void textStyleSelected( KoParagStyle *_sty );
/*
* create a command which sets the pen according to the flags
* for the selected objects on the active and sticky page
*/
- KCommand * getPenCmd( const QString &name, KoPen pen, LineEnd lb, LineEnd le, int flags );
+ KCommand * getPenCmd( const TQString &name, KoPen pen, LineEnd lb, LineEnd le, int flags );
void spellCheckerRemoveHighlight();
@@ -829,13 +830,13 @@ private:
bool m_dpmsWasEnabled;
// right button popup menus
- QPopupMenu *rb_lbegin, *rb_lend;
- QPopupMenu *m_arrangeObjectsPopup;
- QPtrList<KAction> m_actionList; // for the kodatatools
- QPtrList<KAction> m_variableActionList;
+ TQPopupMenu *rb_lbegin, *rb_lend;
+ TQPopupMenu *m_arrangeObjectsPopup;
+ TQPtrList<KAction> m_actionList; // for the kodatatools
+ TQPtrList<KAction> m_variableActionList;
// scrollbars
- QScrollBar *vert, *horz;
+ TQScrollBar *vert, *horz;
// dialogs
AFChoose *afChoose;
@@ -848,10 +849,10 @@ private:
// default pen and brush
KoPen pen;
- QBrush brush;
+ TQBrush brush;
LineEnd lineBegin;
LineEnd lineEnd;
- QColor gColor1, gColor2;
+ TQColor gColor1, gColor2;
BCType gType;
FillType fillType;
PieType pieType;
@@ -864,7 +865,7 @@ private:
int cornersValue;
int sharpnessValue;
/// used to save mouse pos
- QPoint m_mousePos;
+ TQPoint m_mousePos;
// for Picture Object
PictureMirrorType mirrorType;
@@ -878,9 +879,9 @@ private:
KoRuler *h_ruler, *v_ruler;
KoTabChooser *tabChooser;
// text toolbar values
- QFont tbFont;
+ TQFont tbFont;
int tbAlign;
- QColor tbColor;
+ TQColor tbColor;
bool m_bShowGUI;
bool presStarted;
@@ -892,14 +893,14 @@ private:
bool allowMSPres;
int currPg; // 0-based
- QSize oldSize;
+ TQSize oldSize;
int screensaver_pid;
// Statusbar items
- QLabel * m_sbPageLabel; // 'Current page number and page count' label
- QLabel * m_sbObjectLabel; // Info about selected object
- QLabel *m_sbSavingLabel; // use when saving file
+ TQLabel * m_sbPageLabel; // 'Current page number and page count' label
+ TQLabel * m_sbObjectLabel; // Info about selected object
+ TQLabel *m_sbSavingLabel; // use when saving file
KStatusBarLabel* m_sbModifiedLabel;
KStatusBarLabel* m_sbUnitLabel;
KStatusBarLabel* m_sbZoomLabel;
@@ -1062,10 +1063,10 @@ private:
DCOPObject *dcop;
- QToolButton *pgNext, *pgPrev;
+ TQToolButton *pgNext, *pgPrev;
KPrSideBar *sidebar;
KPrNoteBar *notebar;
- QSplitter *splitter;
+ TQSplitter *splitter;
PageBase *pageBase;
KToggleAction *actionFormatSuper;
@@ -1143,9 +1144,9 @@ private:
KAction *actionAddWordToPersonalDictionary;
/// timer for automatic presentation mode
- QTimer m_autoPresTimer;
+ TQTimer m_autoPresTimer;
/// time for messuring the elapsed time of the timer
- QTime m_autoPresTime;
+ TQTime m_autoPresTime;
/// the elapsed time if the timer gets stopped in milliseconds
int m_autoPresElapsedTime;
/// the value of m_autoPresTimer in milliseconds
@@ -1154,9 +1155,9 @@ private:
bool m_autoPresTimerConnected;
/// timer for duration of a page
- QTime m_duration;
+ TQTime m_duration;
/// list for saving the duration of the pages
- QValueList<int> m_presentationDurationList;
+ TQValueList<int> m_presentationDurationList;
KoCharSelectDia *m_specialCharDlg;
@@ -1171,7 +1172,7 @@ private:
CurrentLineTool m_currentLineTool;
- // store the currently selected shape-tool
+ // store the currently selected tqshape-tool
enum CurrentShapeTool {
StRectangle = 1,
StCircle = 2,
@@ -1195,7 +1196,7 @@ private:
struct {
KoSpell *kospell;
KMacroCommand * macroCmdSpellCheck;
- QStringList replaceAll;
+ TQStringList replaceAll;
KoTextIterator * textIterator;
KSpell2::Dialog *dlg;
} m_spell;
@@ -1211,7 +1212,7 @@ private:
int type;
int subtype;
};
- typedef QMap<KAction *, VariableDef> VariableDefMap;
+ typedef TQMap<KAction *, VariableDef> VariableDefMap;
VariableDefMap m_variableDefMap;
KoSearchContext *m_searchEntry, *m_replaceEntry;