moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / modes / normal.h
blobb3c7b92dc48c453ff54b2a5228fa65ebe6d6cff0
1 // Copyright (C) 2002 Dominique Devriese <devriese@kde.org>
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16 // 02111-1307, USA.
18 #ifndef KIG_MODES_NORMAL_H
19 #define KIG_MODES_NORMAL_H
21 #include "base_mode.h"
23 #include <qpoint.h>
24 #include <set>
26 class NormalMode
27 : public BaseMode
29 public:
30 NormalMode( KigPart& );
31 ~NormalMode();
32 protected:
33 void dragRect( const QPoint& p, KigWidget& w );
34 void dragObject( const std::vector<ObjectHolder*>& os, const QPoint& pointClickedOn,
35 KigWidget& w, bool ctrlOrShiftDown );
36 void leftClickedObject( ObjectHolder* o, const QPoint& p,
37 KigWidget& w, bool ctrlOrShiftDown );
38 void midClicked( const QPoint& p, KigWidget& w );
39 void rightClicked( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w );
40 void mouseMoved( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w,
41 bool shiftpressed );
42 void selectAll();
43 void deselectAll();
44 void invertSelection();
46 protected:
47 /**
48 * Objcects were added..
50 void redrawScreen( KigWidget* );
52 void enableActions();
54 void deleteObjects();
55 void showHidden();
56 void newMacro();
57 void editTypes();
59 public:
60 void selectObject( ObjectHolder* o );
61 void selectObjects( const std::vector<ObjectHolder*>& os );
62 void unselectObject( ObjectHolder* o );
63 void clearSelection();
65 // KigObjectsPopup* popup( const Objects& os );
66 // KigDocumentPopup* popup( KigDocument* );
67 protected:
68 // selected objects...
69 std::set<ObjectHolder*> sos;
72 #endif