~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/windows/rkcommandeditorwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-05-11 21:58:23 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090511215823-m2f3gehcvapwrzgp
Tags: 0.5.0d-0ubuntu1
* New upstream release (LP: #375213)
* Bump Standards-Version to 3.8.1
* Drop cmake, libphon-dev from build-deps
* Update maintainer field

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
                          rkcommandeditorwindow  -  description
3
3
                             -------------------
4
4
    begin                : Mon Aug 30 2004
5
 
    copyright            : (C) 2004, 2006, 2007 by Thomas Friedrichsmeier
 
5
    copyright            : (C) 2004, 2006, 2007, 2009 by Thomas Friedrichsmeier
6
6
    email                : tfry@users.sourceforge.net
7
7
 ***************************************************************************/
8
8
 
19
19
 
20
20
#include <QWidget>
21
21
#include <QVector>
22
 
#include <qstring.h>
 
22
#include <QTimer>
 
23
#include <QString>
23
24
 
24
25
#include <ktexteditor/view.h>
25
26
#include <ktexteditor/document.h>
35
36
class QCloseEvent;
36
37
class QFrame;
37
38
class QLabel;
38
 
class QAction;
 
39
class KAction;
39
40
class KActionMenu;
40
41
class RKCommandEditorWindow;
41
42
class KActionCollection;
79
80
public slots:
80
81
        /** Internal worker function for tryArgHint () */
81
82
        void tryArgHintNow ();
 
83
 
 
84
        void updateArgHintWindow ();
82
85
protected:
83
86
        /** The (keypress) events of the view are filtered to determine, when to show / hide an argument hint */
84
87
        bool eventFilter (QObject *, QEvent *e);
86
89
        RKScriptContextProvider *provider;
87
90
        KTextEditor::View *view;
88
91
 
 
92
        /** A timer to refresh the hint window periodically. This is a bit sorry, but it's really hard to find out, when the view has been moved, or gains/loses focus. While possible, this approach uses much less code. */
 
93
        QTimer updater;
 
94
        bool active;
89
95
        QFrame *arghints_popup;
90
96
        QLabel *arghints_popup_text;
91
97
};
203
209
                KTextEditor::SmartRange* range;
204
210
                bool active;
205
211
                KTextEditor::Attribute::Ptr attribute;
206
 
                QAction* mark;
207
 
                QAction* unmark;
208
 
                QAction* run;
 
212
                KAction* mark;
 
213
                KAction* unmark;
 
214
                KAction* run;
209
215
        };
210
216
        QVector<BlockRecord> block_records;
211
217
        void initBlocks ();
216
222
        KActionMenu* actionmenu_unmark_block;
217
223
        KActionMenu* actionmenu_run_block;
218
224
 
219
 
        QAction* action_run_all;
220
 
        QAction* action_run_selection;
221
 
        QAction* action_run_line;
 
225
        KAction* action_run_all;
 
226
        KAction* action_run_selection;
 
227
        KAction* action_run_line;
222
228
 
223
 
        QAction* action_help_function;
 
229
        KAction* action_help_function;
224
230
};
225
231
 
226
232
#endif