GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libgui
src
m-editor
file-editor-interface.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2011-2013 Jacob Dawid
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
#ifndef FILEEDITORINTERFACE_H
24
#define FILEEDITORINTERFACE_H
25
26
#include <QMenu>
27
#include <QToolBar>
28
#include "
octave-dock-widget.h
"
29
30
class
file_editor_interface
:
public
octave_dock_widget
31
{
32
Q_OBJECT
33
34
public
:
35
file_editor_interface
(
QWidget
*p)
36
:
octave_dock_widget
(p)
37
{
38
setObjectName (
"FileEditor"
);
39
}
40
41
virtual
~file_editor_interface
() { }
42
43
virtual
QMenu *
get_mru_menu
( ) = 0;
44
virtual
QMenu *
debug_menu
() = 0;
45
virtual
QToolBar *
toolbar
() = 0;
46
47
virtual
void
handle_enter_debug_mode
(
void
) = 0;
48
virtual
void
handle_exit_debug_mode
(
void
) = 0;
49
50
virtual
void
51
handle_insert_debugger_pointer_request
(
const
QString& file,
int
line
) = 0;
52
53
virtual
void
54
handle_delete_debugger_pointer_request
(
const
QString& file,
int
line
) = 0;
55
56
virtual
void
57
handle_update_breakpoint_marker_request
(
bool
insert,
const
QString& file,
58
int
line
) = 0;
59
60
virtual
void
handle_edit_file_request
(
const
QString& file) = 0;
61
62
virtual
void
set_focus
() = 0;
63
64
public
slots:
65
virtual
void
request_new_file
(
const
QString& command = QString ()) = 0;
66
virtual
void
request_new_script
(
const
QString& command = QString ()) = 0;
67
virtual
void
request_new_function
(
bool
) = 0;
68
virtual
void
request_open_file
() = 0;
69
virtual
void
request_open_file
(
const
QString& openFileName,
int
line
= -1,
70
bool
debug_pointer =
false
,
71
bool
breakpoint_marker =
false
,
72
bool
insert =
true
) = 0;
73
//signals:
74
75
//protected:
76
77
//protected slots:
78
79
};
80
81
#endif // FILEEDITORINTERFACE_H
Generated on Mon Dec 30 2013 03:04:21 for GNU Octave by
1.8.1.2