GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
octave-qscintilla.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2013 Torsten
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 // Author: Torsten <ttl@justmail.de>
24 
25 #if !defined (octave_octave_qscintilla_h)
26 #define octave_octave_qscintilla_h 1
27 
28 #include <Qsci/qsciscintilla.h>
29 #include <QMenu>
30 #include <QContextMenuEvent>
31 
33 {
34  Q_OBJECT
35 
36 public:
37 
40 
41 #ifdef HAVE_QSCI_VERSION_2_6_0
42  virtual void contextMenuEvent (QContextMenuEvent *e);
43 #endif
44  void context_help_doc (bool);
45  void context_edit ();
46  void context_run ();
47  void get_global_textcursor_pos (QPoint *global_pos, QPoint *local_pos);
48  bool get_actual_word ();
49 
50 signals:
51 
52  void execute_command_in_terminal_signal (const QString&);
53 
54 private slots:
55 
56  void contextmenu_help (bool);
57  void contextmenu_doc (bool);
58  void contextmenu_help_doc (bool);
59  void contextmenu_edit (bool);
60  void contextmenu_run (bool);
61 
62 private:
63 
64  QString _word_at_cursor;
65 
66 };
67 
68 #endif