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., 51 Franklin Street, Fifth Floor, 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* );
61
void selectObject( ObjectHolder* o );
62
void selectObjects( const std::vector<ObjectHolder*>& os );
63
void unselectObject( ObjectHolder* o );
64
void clearSelection();
66
// KigObjectsPopup* popup( const Objects& os );
67
// KigDocumentPopup* popup( KigDocument* );
72
std::set<ObjectHolder*> sos;