OpenStructure
build-dev-doc
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-2020 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
namespace
ost
{
namespace
gui {
27
28
// fw decl
29
class
PythonShell;
30
31
enum
BlockEditMode
{
32
EDITMODE_SINGLELINE
,
33
EDITMODE_MULTILINE_ACTIVE
,
34
EDITMODE_MULTILINE_INACTIVE
35
};
36
enum
BlockType
{
37
BLOCKTYPE_OUTPUT
=1,
38
BLOCKTYPE_ERROR
=2,
39
BLOCKTYPE_CODE
=4,
40
BLOCKTYPE_ACTIVE
=8,
41
BLOCKTYPE_BLOCKEDIT
=16,
42
BLOCKTYPE_MULTILINE_SQ
=32,
43
BLOCKTYPE_MULTILINE_DQ
=64
44
};
45
46
struct
GutterBlock
{
47
GutterBlock
(
int
s,
int
e,
BlockType
bt):
start
(s),
end
(e),
type
(bt){}
48
int
start
;
49
int
end
;
50
BlockType
type
;
51
};
52
53
54
}}
//ns
55
56
#endif
ost::gui::BlockEditMode
BlockEditMode
Definition:
python_shell_fw.hh:31
ost::gui::EDITMODE_MULTILINE_ACTIVE
@ EDITMODE_MULTILINE_ACTIVE
Definition:
python_shell_fw.hh:33
ost::gui::EDITMODE_MULTILINE_INACTIVE
@ EDITMODE_MULTILINE_INACTIVE
Definition:
python_shell_fw.hh:34
ost::gui::EDITMODE_SINGLELINE
@ EDITMODE_SINGLELINE
Definition:
python_shell_fw.hh:32
ost::gui::BlockType
BlockType
Definition:
python_shell_fw.hh:36
ost::gui::BLOCKTYPE_OUTPUT
@ BLOCKTYPE_OUTPUT
Definition:
python_shell_fw.hh:37
ost::gui::BLOCKTYPE_BLOCKEDIT
@ BLOCKTYPE_BLOCKEDIT
Definition:
python_shell_fw.hh:41
ost::gui::BLOCKTYPE_ERROR
@ BLOCKTYPE_ERROR
Definition:
python_shell_fw.hh:38
ost::gui::BLOCKTYPE_ACTIVE
@ BLOCKTYPE_ACTIVE
Definition:
python_shell_fw.hh:40
ost::gui::BLOCKTYPE_MULTILINE_SQ
@ BLOCKTYPE_MULTILINE_SQ
Definition:
python_shell_fw.hh:42
ost::gui::BLOCKTYPE_CODE
@ BLOCKTYPE_CODE
Definition:
python_shell_fw.hh:39
ost::gui::BLOCKTYPE_MULTILINE_DQ
@ BLOCKTYPE_MULTILINE_DQ
Definition:
python_shell_fw.hh:43
ost
Definition:
base.dox:1
ost::gui::GutterBlock
Definition:
python_shell_fw.hh:46
ost::gui::GutterBlock::start
int start
Definition:
python_shell_fw.hh:48
ost::gui::GutterBlock::type
BlockType type
Definition:
python_shell_fw.hh:50
ost::gui::GutterBlock::end
int end
Definition:
python_shell_fw.hh:49
ost::gui::GutterBlock::GutterBlock
GutterBlock(int s, int e, BlockType bt)
Definition:
python_shell_fw.hh:47
Generated by
1.9.1