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
18 #ifndef KIG_MODES_NORMAL_H
19 #define KIG_MODES_NORMAL_H
21 #include "base_mode.h"
30 NormalMode( KigPart
& );
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
,
44 void invertSelection();
48 * Objcects were added..
50 void redrawScreen( KigWidget
* );
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* );
68 // selected objects...
69 std::set
<ObjectHolder
*> sos
;