OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
gui
python_shell
python_shell_fw.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// This file is part of the OpenStructure project <www.openstructure.org>
3
//
4
// Copyright (C) 2008-2011 by the OpenStructure authors
5
//
6
// This library is free software; you can redistribute it and/or modify it under
7
// the terms of the GNU Lesser General Public License as published by the Free
8
// Software Foundation; either version 3.0 of the License, or (at your option)
9
// any later version.
10
// This library is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
// details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with this library; if not, write to the Free Software Foundation, Inc.,
17
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
//------------------------------------------------------------------------------
19
#ifndef PYTHON_SHELL_FW_HH
20
#define PYTHON_SHELL_FW_HH
21
22
/*
23
Author: Andreas Schenk
24
*/
25
26
#include <vector>
27
namespace
ost {
namespace
gui {
28
29
// fw decl
30
class
PythonShell;
31
32
enum
BlockEditMode
{
33
EDITMODE_SINGLELINE
,
34
EDITMODE_MULTILINE_ACTIVE
,
35
EDITMODE_MULTILINE_INACTIVE
36
};
37
enum
BlockType
{
38
BLOCKTYPE_OUTPUT
=1,
39
BLOCKTYPE_ERROR
=2,
40
BLOCKTYPE_CODE
=4,
41
BLOCKTYPE_ACTIVE
=8,
42
BLOCKTYPE_BLOCKEDIT
=16,
43
BLOCKTYPE_MULTILINE_SQ
=32,
44
BLOCKTYPE_MULTILINE_DQ
=64
45
};
46
47
struct
GutterBlock
{
48
GutterBlock
(
int
s,
int
e,
BlockType
bt):
start
(s),
end
(e),
type
(bt){}
49
int
start
;
50
int
end
;
51
BlockType
type
;
52
};
53
54
typedef
std::vector<GutterBlock>
GutterBlockList
;
55
56
}}
//ns
57
58
#endif
Generated on Mon Nov 11 2013 09:56:11 for OpenStructure by
1.8.1.1