moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / modes / macro.h
blob6bc2aed950157b493a341d46b8785e3c3a5f0742
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_MACRO_H
19 #define KIG_MODES_MACRO_H
21 #include "base_mode.h"
23 #include <qobject.h>
25 class MacroWizard;
27 class DefineMacroMode
28 : public BaseMode
30 public:
31 DefineMacroMode( KigPart& );
32 ~DefineMacroMode();
34 void dragRect( const QPoint& p, KigWidget& w );
35 void leftClickedObject( ObjectHolder* o, const QPoint& p,
36 KigWidget& w, bool ctrlOrShiftDown );
37 void rightClicked( const std::vector<ObjectHolder*>& oco, const QPoint& p, KigWidget& w );
38 void midClicked( const QPoint& p, KigWidget& w );
39 void mouseMoved( const std::vector<ObjectHolder*>& os, const QPoint& p, KigWidget& w, bool shiftpressed );
41 // called by MacroWizard class
42 void givenPageEntered();
43 void finalPageEntered();
44 void namePageEntered();
45 void finishPressed();
46 void cancelPressed();
47 void macroNameChanged();
49 protected:
50 void enableActions();
51 // update the enabled state of the next buttons on the wizard...
52 void updateNexts();
53 // quit this mode...
54 void abandonMacro();
56 QPoint plc;
57 MacroWizard* mwizard;
59 // we can't use a set for this because the order is important
60 std::vector<ObjectHolder*> mgiven;
61 std::vector<ObjectHolder*> mfinal;
64 #endif