GNU Octave  4.0.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-2015 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  void create_context_menu_signal (QMenu*);
54  void context_menu_edit_signal (const QString&);
55  void qsci_has_focus_signal (bool);
56  void status_update (bool,bool);
57  void show_doc_signal (const QString&);
58 
59 private slots:
60 
61  void contextmenu_help (bool);
62  void contextmenu_doc (bool);
63  void contextmenu_help_doc (bool);
64  void contextmenu_edit (bool);
65  void contextmenu_run (bool);
66 
67  void text_changed (void);
68 
69 protected:
70 
71 private:
72 
73  QString _word_at_cursor;
74 
75 };
76 
77 #endif
void contextmenu_help_doc(bool)
void context_menu_edit_signal(const QString &)
void contextmenu_run(bool)
void contextmenu_edit(bool)
void status_update(bool, bool)
void show_doc_signal(const QString &)
void context_help_doc(bool)
void contextmenu_help(bool)
void create_context_menu_signal(QMenu *)
octave_qscintilla(QWidget *p)
void execute_command_in_terminal_signal(const QString &)
void contextmenu_doc(bool)
void text_changed(void)
void get_global_textcursor_pos(QPoint *global_pos, QPoint *local_pos)