GNU Octave  4.2.1
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-2017 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  virtual void contextMenuEvent (QContextMenuEvent *e);
42 
43  void context_help_doc (bool);
44  void context_edit ();
45  void context_run ();
46  void get_global_textcursor_pos (QPoint *global_pos, QPoint *local_pos);
47  bool get_actual_word ();
48 
49 signals:
50 
51  void execute_command_in_terminal_signal (const QString&);
52  void create_context_menu_signal (QMenu*);
53  void context_menu_edit_signal (const QString&);
54  void qsci_has_focus_signal (bool);
55  void status_update (bool,bool);
56  void show_doc_signal (const QString&);
58  void context_menu_break_once (int);
59 
60 private slots:
61 
62  void contextmenu_help (bool);
63  void contextmenu_doc (bool);
64  void contextmenu_help_doc (bool);
65  void contextmenu_edit (bool);
66  void contextmenu_run (bool);
67 
68  void contextmenu_break_condition (bool);
69  void contextmenu_break_once (const QPoint&);
70 
71  void text_changed (void);
72 
73 protected:
74 
75  void focusInEvent(QFocusEvent *focusEvent);
76 
77 private:
78 
79  QString _word_at_cursor;
80 
81 };
82 
83 #endif
void contextmenu_help_doc(bool)
void context_menu_break_condition_signal(int)
void context_menu_edit_signal(const QString &)
virtual void contextMenuEvent(QContextMenuEvent *e)
void status_update(bool, bool)
void contextmenu_break_once(const QPoint &)
void show_doc_signal(const QString &)
i e
Definition: data.cc:2724
void create_context_menu_signal(QMenu *)
octave_qscintilla(QWidget *p)
void execute_command_in_terminal_signal(const QString &)
p
Definition: lu.cc:138
void focusInEvent(QFocusEvent *focusEvent)
void contextmenu_break_condition(bool)
void get_global_textcursor_pos(QPoint *global_pos, QPoint *local_pos)