BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
source
APPLICATIONS
BALLVIEW
demoTutorialDialog.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id:
5
6
#ifndef BALL_DEMOTUTORIALDIALOG_H
7
#define BALL_DEMOTUTORIALDIALOG_H
8
9
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
10
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
11
#endif
12
13
#ifndef BALL_VIEW_PRIMITIV_MESH_H
14
# include <
BALL/VIEW/PRIMITIVES/mesh.h
>
15
#endif
16
17
#include <
BALL/DATATYPE/regularData3D.h
>
18
19
#include "ui_demoTutorialDialog.h"
20
21
#include <QtGui/QDialog>
22
23
namespace
BALL
24
{
25
class
System;
26
class
Composite;
27
28
namespace
VIEW
29
{
32
class
DemoTutorialDialog
:
33
public
QDialog
,
34
public
Ui_DemoTutorialDialogData,
35
public
ModularWidget
36
{
37
Q_OBJECT
38
BALL_EMBEDDABLE
(
DemoTutorialDialog
,
ModularWidget
)
39
40
public
:
41
43
DemoTutorialDialog
(
QWidget
*parent = NULL,
const
char
*name = NULL );
44
46
virtual
~DemoTutorialDialog
();
47
49
virtual
void
onNotify
(
Message
*message);
50
51
virtual
void
initializeWidget
(
MainControl
& main_control);
52
54
void
setDemoMode
(
bool
state) {
demo_mode_
= state;}
55
56
public
slots:
57
59
void
show
();
60
62
void
showDemo
();
63
65
void
showTutorial
();
66
68
void
nextStepClicked
();
69
70
virtual
void
checkMenu
(
MainControl
& main_control);
71
72
protected
:
73
74
void
nextStepDemo_
();
75
void
nextStepTutorial_
();
76
77
void
initDemo_
();
78
void
initTutorial_
();
79
80
void
enableNextStep_
();
81
82
virtual
void
onNotifyTutorial_
(
Message
*message);
83
virtual
void
onNotifyDemo_
(
Message
*message);
84
85
String
getBaseDir_
();
86
87
private
:
88
89
std::list<Composite*>
composites_
;
90
RegularData3D
*
grid_
;
91
System
*
system_
;
92
93
String
prefix_
;
94
bool
demo_mode_
;
95
Position
current_step_
;
96
Mesh
*
surface_
;
97
QAction*
demo_action_
, *
tutorial_action_
;
98
};
99
100
} }
// namespaces
101
102
#endif // BALL_DEMOTUTORIALDIALOG_H
Generated by
1.8.3.1