summaryrefslogtreecommitdiffstats
path: root/kig/modes/construct_mode.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/modes/construct_mode.h
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/modes/construct_mode.h')
-rw-r--r--kig/modes/construct_mode.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/kig/modes/construct_mode.h b/kig/modes/construct_mode.h
index fa1be86e..be937723 100644
--- a/kig/modes/construct_mode.h
+++ b/kig/modes/construct_mode.h
@@ -38,11 +38,11 @@ public:
PointConstructMode( KigPart& d );
~PointConstructMode();
protected:
- void leftClickedObject( ObjectHolder* o, const QPoint& p,
+ void leftClickedObject( ObjectHolder* o, const TQPoint& p,
KigWidget& w, bool ctrlOrShiftDown );
- void midClicked( const QPoint& p, KigWidget& w );
- void rightClicked( const std::vector<ObjectHolder*>& oco, const QPoint& p, KigWidget& w );
- void mouseMoved( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w, bool shiftpressed );
+ void midClicked( const TQPoint& p, KigWidget& w );
+ void rightClicked( const std::vector<ObjectHolder*>& oco, const TQPoint& p, KigWidget& w );
+ void mouseMoved( const std::vector<ObjectHolder*>& os, const TQPoint& p, KigWidget& w, bool shiftpressed );
void enableActions();
void cancelConstruction();
@@ -73,7 +73,7 @@ class BaseConstructMode
// ObjectHolder* mcursorholder;
std::vector<ObjectHolder*> mparents;
- void leftReleased( QMouseEvent* e, KigWidget* v );
+ void leftReleased( TQMouseEvent* e, KigWidget* v );
public:
void selectObject( ObjectHolder* o, KigWidget& w );
@@ -82,19 +82,19 @@ public:
protected:
BaseConstructMode( KigPart& d );
protected:
- void leftClickedObject( ObjectHolder* o, const QPoint& p,
+ void leftClickedObject( ObjectHolder* o, const TQPoint& p,
KigWidget& w, bool ctrlOrShiftDown );
- void midClicked( const QPoint& p, KigWidget& w );
- void rightClicked( const std::vector<ObjectHolder*>& oco, const QPoint& p, KigWidget& w );
- void mouseMoved( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w, bool shiftpressed );
+ void midClicked( const TQPoint& p, KigWidget& w );
+ void rightClicked( const std::vector<ObjectHolder*>& oco, const TQPoint& p, KigWidget& w );
+ void mouseMoved( const std::vector<ObjectHolder*>& os, const TQPoint& p, KigWidget& w, bool shiftpressed );
void enableActions();
void cancelConstruction();
void finish();
protected:
- virtual void handlePrelim( const std::vector<ObjectCalcer*>& os, const QPoint& p, KigPainter&, KigWidget& w ) = 0;
- virtual QString selectStatement( const std::vector<ObjectCalcer*>& args, const KigWidget& w ) = 0;
+ virtual void handlePrelim( const std::vector<ObjectCalcer*>& os, const TQPoint& p, KigPainter&, KigWidget& w ) = 0;
+ virtual TQString selectStatement( const std::vector<ObjectCalcer*>& args, const KigWidget& w ) = 0;
virtual int isAlreadySelectedOK( const std::vector<ObjectCalcer*>&, const int& ) = 0;
virtual int wantArgs( const std::vector<ObjectCalcer*>&, KigDocument& d, KigWidget& w ) = 0;
virtual void handleArgs( const std::vector<ObjectCalcer*>& args, KigWidget& w ) = 0;
@@ -110,8 +110,8 @@ public:
ConstructMode( KigPart& d, const ObjectConstructor* ctor );
~ConstructMode();
- void handlePrelim( const std::vector<ObjectCalcer*>& os, const QPoint& p, KigPainter&, KigWidget& w );
- QString selectStatement( const std::vector<ObjectCalcer*>& args, const KigWidget& w );
+ void handlePrelim( const std::vector<ObjectCalcer*>& os, const TQPoint& p, KigPainter&, KigWidget& w );
+ TQString selectStatement( const std::vector<ObjectCalcer*>& args, const KigWidget& w );
int isAlreadySelectedOK( const std::vector<ObjectCalcer*>&, const int& );
int wantArgs( const std::vector<ObjectCalcer*>&, KigDocument& d, KigWidget& w );
void handleArgs( const std::vector<ObjectCalcer*>& args, KigWidget& w );
@@ -138,17 +138,17 @@ public:
TestConstructMode( KigPart& d, const ArgsParserObjectType* type );
~TestConstructMode();
- void handlePrelim( const std::vector<ObjectCalcer*>& os, const QPoint& p, KigPainter&, KigWidget& w );
- QString selectStatement( const std::vector<ObjectCalcer*>& args, const KigWidget& w );
+ void handlePrelim( const std::vector<ObjectCalcer*>& os, const TQPoint& p, KigPainter&, KigWidget& w );
+ TQString selectStatement( const std::vector<ObjectCalcer*>& args, const KigWidget& w );
int isAlreadySelectedOK( const std::vector<ObjectCalcer*>&, const int& );
int wantArgs( const std::vector<ObjectCalcer*>&, KigDocument& d, KigWidget& w );
void handleArgs( const std::vector<ObjectCalcer*>& args, KigWidget& w );
- void leftClickedObject( ObjectHolder* o, const QPoint& p,
+ void leftClickedObject( ObjectHolder* o, const TQPoint& p,
KigWidget& w, bool ctrlOrShiftDown );
- void midClicked( const QPoint& p, KigWidget& w );
- void rightClicked( const std::vector<ObjectHolder*>& oco, const QPoint& p, KigWidget& w );
- void mouseMoved( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w, bool shiftpressed );
+ void midClicked( const TQPoint& p, KigWidget& w );
+ void rightClicked( const std::vector<ObjectHolder*>& oco, const TQPoint& p, KigWidget& w );
+ void mouseMoved( const std::vector<ObjectHolder*>& os, const TQPoint& p, KigWidget& w, bool shiftpressed );
};
#endif