diff options
Diffstat (limited to 'kpresenter/KPrPage.h')
-rw-r--r-- | kpresenter/KPrPage.h | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/kpresenter/KPrPage.h b/kpresenter/KPrPage.h index 533e1e0c..03953df9 100644 --- a/kpresenter/KPrPage.h +++ b/kpresenter/KPrPage.h @@ -22,14 +22,14 @@ #ifndef KPRPAGE_H #define KPRPAGE_H -#include <qwidget.h> -#include <qptrlist.h> +#include <tqwidget.h> +#include <tqptrlist.h> #include "global.h" #include <KoBrush.h> #include <KoPoint.h> #include <KoRect.h> #include <KoStyleCollection.h> // for KoStyleChangeDefMap -#include <qvariant.h> +#include <tqvariant.h> #include <KoDocumentChild.h> #include <KoPictureCollection.h> @@ -87,14 +87,14 @@ public: * * @return the manual title */ - QString manualTitle()const; + TQString manualTitle()const; /** * @brief Set the manual title * * @param title which sould be set */ - void insertManualTitle(const QString & title); + void insertManualTitle(const TQString & title); /** * @brief Get the page title. @@ -106,21 +106,21 @@ public: * - If a title is passed to the function it is returned * - Slide %PAGENUMBER or Master Slide */ - QString pageTitle( const QString &_title = QString() ) const; + TQString pageTitle( const TQString &_title = TQString() ) const; /** * @brief Set the note text * * @param text which should be set */ - void setNoteText( const QString &_text ); + void setNoteText( const TQString &_text ); /** * @brief Get the note text * * @return the text of the note */ - QString noteText( )const; + TQString noteText( )const; /** * @brief Set the master page to masterPage @@ -149,7 +149,7 @@ public: * * @return object list */ - const QPtrList<KPrObject> & objectList() const { return m_objectList; } + const TQPtrList<KPrObject> & objectList() const { return m_objectList; } /** * @brief Get object at position @@ -178,7 +178,7 @@ public: * * @param obj objects to append */ - void appendObjects( const QValueList<KPrObject *> &objects ); + void appendObjects( const TQValueList<KPrObject *> &objects ); /** * @brief Replaces an object @@ -248,14 +248,14 @@ public: * * @return the page rect */ - QRect getZoomPageRect()const; + TQRect getZoomPageRect()const; /** * @brief Set object for the page * * @param list of objects */ - void setObjectList( QPtrList<KPrObject> objectLlist ) { + void setObjectList( TQPtrList<KPrObject> objectLlist ) { m_objectList.setAutoDelete( false ); m_objectList = objectLlist; m_objectList.setAutoDelete( false ); } @@ -296,19 +296,19 @@ public: /** * @brief */ - void pasteObjs( const QByteArray & data, int nbCopy = 1, double angle = 0.0 , + void pasteObjs( const TQByteArray & data, int nbCopy = 1, double angle = 0.0 , double _increaseX=0.0, double increaseY = 0.0, double moveX=0.0, double moveY=0.0); /** * @brief */ KCommand * replaceObjs( bool createUndoRedo, double _orastX, double _orastY, - const QColor & _txtBackCol, const QColor & _otxtBackCol); + const TQColor & _txtBackCol, const TQColor & _otxtBackCol); /** * @brief */ - void copyObjs(QDomDocument &doc, QDomElement &presenter, QValueList<KoPictureKey> & lst) const; + void copyObjs(TQDomDocument &doc, TQDomElement &presenter, TQValueList<KoPictureKey> & lst) const; /** * @brief Get the first selected object @@ -326,7 +326,7 @@ public: * * @return list of selected objets. */ - QPtrList<KPrObject> getSelectedObjects( bool withoutHeaderFooter = false ) const; + TQPtrList<KPrObject> getSelectedObjects( bool withoutHeaderFooter = false ) const; /** * @brief Get the first selected pictur @@ -344,7 +344,7 @@ public: * @param param1 effect parameter 2 * @param param1 effect parameter 3 */ - KCommand * setImageEffect(ImageEffect eff, QVariant param1, QVariant param2, QVariant param3); + KCommand * setImageEffect(ImageEffect eff, TQVariant param1, TQVariant param2, TQVariant param3); /** * @brief Group selected objects. @@ -372,32 +372,32 @@ public: void lowerObjs( bool backward ); KCommand* setPen( const KoPen &pen, LineEnd lb, LineEnd le, int flags ); - KCommand* setBrush( const QBrush &brush, FillType ft, const QColor& g1, const QColor &g2, + KCommand* setBrush( const TQBrush &brush, FillType ft, const TQColor& g1, const TQColor &g2, BCType gt, bool unbalanced, int xfactor, int yfactor, int flags ); /** * Insert an object into the page */ - KCommand * insertObject( const QString &name, KPrObject * object, const KoRect &r, bool addCommand = true ); + KCommand * insertObject( const TQString &name, KPrObject * object, const KoRect &r, bool addCommand = true ); virtual KPrPartObject* insertObject( const KoRect&, KoDocumentEntry& ); - void insertRectangle( const KoRect &r, const KoPen & pen, const QBrush &brush, FillType ft, - const QColor &g1, const QColor & g2,BCType gt, int rndX, int rndY, + void insertRectangle( const KoRect &r, const KoPen & pen, const TQBrush &brush, FillType ft, + const TQColor &g1, const TQColor & g2,BCType gt, int rndX, int rndY, bool unbalanced, int xfactor, int yfactor ); - void insertCircleOrEllipse( const KoRect &r, const KoPen &pen, const QBrush &brush, FillType ft, - const QColor &g1, const QColor &g2, BCType gt, bool unbalanced, int xfactor, int yfactor ); + void insertCircleOrEllipse( const KoRect &r, const KoPen &pen, const TQBrush &brush, FillType ft, + const TQColor &g1, const TQColor &g2, BCType gt, bool unbalanced, int xfactor, int yfactor ); - void insertPie( const KoRect &r, const KoPen &pen, const QBrush &brush, FillType ft, - const QColor &g1, const QColor &g2,BCType gt, PieType pt, int _angle, int _len, + void insertPie( const KoRect &r, const KoPen &pen, const TQBrush &brush, FillType ft, + const TQColor &g1, const TQColor &g2,BCType gt, PieType pt, int _angle, int _len, LineEnd lb,LineEnd le,bool unbalanced, int xfactor, int yfactor ); - KPrTextObject* insertTextObject( const KoRect& r, const QString& text = QString::null, KPrView *_view = 0L ); + KPrTextObject* insertTextObject( const KoRect& r, const TQString& text = TQString(), KPrView *_view = 0L ); void insertLine( const KoRect &r, const KoPen &pen, LineEnd lb, LineEnd le, LineType lt ); - void insertAutoform( const KoRect &r, const KoPen &pen, const QBrush &brush, LineEnd lb, LineEnd le, - FillType ft,const QColor &g1, const QColor &g2, BCType gt, const QString &fileName, + void insertAutoform( const KoRect &r, const KoPen &pen, const TQBrush &brush, LineEnd lb, LineEnd le, + FillType ft,const TQColor &g1, const TQColor &g2, BCType gt, const TQString &fileName, bool unbalanced,int xfactor, int yfactor ); void insertFreehand( const KoPointArray &points, const KoRect &r, const KoPen &pen,LineEnd lb, LineEnd le ); @@ -407,19 +407,19 @@ public: void insertCubicBezierCurve( const KoPointArray &points, const KoPointArray &allPoints, const KoRect &r, const KoPen &pen,LineEnd lb, LineEnd le ); - void insertPolygon( const KoPointArray &points, const KoRect &r, const KoPen &pen, const QBrush &brush, - FillType ft,const QColor &g1, const QColor &g2, BCType gt, bool unbalanced, + void insertPolygon( const KoPointArray &points, const KoRect &r, const KoPen &pen, const TQBrush &brush, + FillType ft,const TQColor &g1, const TQColor &g2, BCType gt, bool unbalanced, int xfactor, int yfactor, bool _checkConcavePolygon, int _cornersValue, int _sharpnessValue ); - void insertClosedLine( const KoPointArray &points, const KoRect &r, const KoPen &pen, const QBrush &brush, - FillType ft,const QColor &g1, const QColor &g2, + void insertClosedLine( const KoPointArray &points, const KoRect &r, const KoPen &pen, const TQBrush &brush, + FillType ft,const TQColor &g1, const TQColor &g2, BCType gt, bool unbalanced, int xfactor, int yfactor, ToolEditMode _mode ); void slotRepaintVariable(); void recalcPageNum(); - void changePicture( const KURL & url, QWidget *parent ); - void insertPicture( const QString &filename, const KoPoint &pos ); - void insertPicture( const QString &_file, const KoRect &_rect ); + void changePicture( const KURL & url, TQWidget *tqparent ); + void insertPicture( const TQString &filename, const KoPoint &pos ); + void insertPicture( const TQString &_file, const KoRect &_rect ); void enableEmbeddedParts( bool f ); @@ -427,7 +427,7 @@ public: void makeUsedPixmapList(); - void setBackColor( const QColor &backColor1, const QColor &backColor2, BCType bcType, + void setBackColor( const TQColor &backColor1, const TQColor &backColor2, BCType bcType, bool unbalanced, int xfactor, int yfactor ); void setBackPicture( const KoPictureKey & key ); bool getBackUnbalanced( )const; @@ -438,13 +438,13 @@ public: void setPageEffectSpeed( EffectSpeed pageEffectSpeed ); void setPageTimer( int pageTimer ); void setPageSoundEffect( bool soundEffect ); - void setPageSoundFileName( const QString &fileName ); + void setPageSoundFileName( const TQString &fileName ); BackType getBackType( ) const ; BackView getBackView( )const ; KoPictureKey getBackPictureKey( )const ; KoPicture getBackPicture( )const ; - QColor getBackColor1( )const ; - QColor getBackColor2()const ; + TQColor getBackColor1( )const ; + TQColor getBackColor2()const ; int getBackXFactor()const ; int getBackYFactor( )const; BCType getBackColorType( )const; @@ -452,7 +452,7 @@ public: EffectSpeed getPageEffectSpeed() const; int getPageTimer( )const; bool getPageSoundEffect( )const; - QString getPageSoundFileName()const; + TQString getPageSoundFileName()const; void setUseMasterBackground( bool useMasterBackground ); @@ -461,18 +461,18 @@ public: /** * return the list of steps where objects appear/disappear. */ - QValueList<int> getEffectSteps() const; + TQValueList<int> getEffectSteps() const; bool isSlideSelected() const {return m_selectedSlides;} void slideSelected(bool _b){m_selectedSlides=_b;} - void setInsPictureFile( const QString &_file ) { m_pictureFile = _file; } + void setInsPictureFile( const TQString &_file ) { m_pictureFile = _file; } - QString insPictureFile() const { return m_pictureFile; } + TQString insPictureFile() const { return m_pictureFile; } void deSelectAllObj(); void deSelectObj( KPrObject *kpobject ); - QDomElement saveObjects( QDomDocument &doc, QDomElement &objects, double yoffset, + TQDomElement saveObjects( TQDomDocument &doc, TQDomElement &objects, double yoffset, int saveOnlyPage ) const; bool oneObjectTextExist(bool forceAllTextObject = true) ; @@ -498,14 +498,14 @@ public: KCommand *moveObject(KPrView *m_view,const KoPoint &_move,bool key); KCommand *rotateSelectedObjects(float _newAngle, bool addAngle=false); - KCommand *shadowObj(ShadowDirection dir,int dist, const QColor &col); + KCommand *shadowObj(ShadowDirection dir,int dist, const TQColor &col); - QPtrList<KoTextObject> allTextObjects() const; - void addTextObjects(QPtrList<KoTextObject>& lst) const; + TQPtrList<KoTextObject> allTextObjects() const; + void addTextObjects(TQPtrList<KoTextObject>& lst) const; - void repaintObj(); + void tqrepaintObj(); - KPrObject * getCursor(const QPoint &pos ); + KPrObject * getCursor(const TQPoint &pos ); KPrObject * getCursor(const KoPoint &pos ); /** @@ -521,25 +521,25 @@ public: void reactivateBgSpellChecking(bool refreshTextObj); bool canMoveOneObject() const; - KCommand *alignVertical( VerticalAlignmentType _type ); + KCommand *alignVertical(VerticalAlignmentType _type ); void changeTabStopValue ( double _tabStop ); bool savePicture( KPrView *_view ) const; bool findTextObject( KPrObject *obj ); KPrObject *nextTextObject(KPrTextObject *obj); - void getAllObjectSelectedList(QPtrList<KPrObject> &lst,bool force = false ); - void getAllEmbeddedObjectSelected(QPtrList<KoDocumentChild> &embeddedObjects ); + void getAllObjectSelectedList(TQPtrList<KPrObject> &lst,bool force = false ); + void getAllEmbeddedObjectSelected(TQPtrList<KoDocumentChild> &embeddedObjects ); - void load( const QDomElement &element ); + void load( const TQDomElement &element ); void loadOasis( KoOasisContext & context ); - QDomElement save( QDomDocument &doc ); + TQDomElement save( TQDomDocument &doc ); bool saveOasisPage( KoStore *store, KoXmlWriter &xmlWriter, int posPage, KoSavingContext& context, - int & indexObj, int &partIndexObj, KoXmlWriter* manifestWriter, QMap<QString, int> &pageNames ) const; - QString saveOasisPageStyle( KoStore *store, KoGenStyles& mainStyles ) const; - QString saveOasisPageEffect() const; - QString saveOasisAdditionalPageEffect() const; + int & indexObj, int &partIndexObj, KoXmlWriter* manifestWriter, TQMap<TQString, int> &pageNames ) const; + TQString saveOasisPageStyle( KoStore *store, KoGenStyles& mainStyles ) const; + TQString saveOasisPageEffect() const; + TQString saveOasisAdditionalPageEffect() const; bool saveOasisNote( KoXmlWriter &xmlWriter ) const; bool hasHeader() const { return m_bHasHeader; } @@ -553,26 +553,26 @@ public: void setDisplayBackground( bool _b ); bool displayBackground() const { return m_displayBackground; } - QString oasisNamePage( int posPage ) const; + TQString oasisNamePage( int posPage ) const; private: void makeUsedPixmapListForGroupObject( KPrObject *_obj ); void completeLoadingForGroupObject( KPrObject *_obj ); - bool objectNameExists( KPrObject *object, QPtrList<KPrObject> &list ); + bool objectNameExists( KPrObject *object, TQPtrList<KPrObject> &list ); void saveOasisObject( KoStore *store, KoXmlWriter &xmlWriter, KoSavingContext& context, int & indexObj, int &partIndexObj, KoXmlWriter* manifestWriter ) const; // list of objects - QPtrList<KPrObject> m_objectList; + TQPtrList<KPrObject> m_objectList; KPrDocument *m_doc; KPrPage *m_masterPage; KPrBackGround *m_kpbackground; - QString m_manualTitle; - QString m_noteText; + TQString m_manualTitle; + TQString m_noteText; DCOPObject *m_dcop; bool m_selectedSlides; - QString m_pictureFile; + TQString m_pictureFile; bool m_bHasHeader, m_bHasFooter; bool m_useMasterBackground; @@ -598,7 +598,7 @@ private: /** * Sound played when showing this page */ - QString m_soundFileName; + TQString m_soundFileName; /** * TODO */ |