BALL
1.4.79
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
include
BALL
VIEW
WIDGETS
fileObserver.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_WIDGETS_FILEOBSERVER_H
6
#define BALL_VIEW_WIDGETS_FILEOBSERVER_H
7
8
#ifndef BALL_VIEW_WIDGETS_DOCKWIDGET_H
9
# include <
BALL/VIEW/WIDGETS/dockWidget.h
>
10
#endif
11
12
#include <QtCore/QTimer>
13
#include <QtCore/QDateTime>
14
15
class
QAction;
16
17
namespace
BALL
18
{
19
namespace
VIEW
20
{
34
class
BALL_VIEW_EXPORT
FileObserver
35
:
public
DockWidget
36
{
37
Q_OBJECT
38
39
public
:
40
41
BALL_EMBEDDABLE
(
FileObserver
,
DockWidget
)
42
43
44
FileObserver
(
QWidget
*parent = 0,
const
char
*name = 0);
45
47
virtual
~
FileObserver
();
48
49
//
50
virtual
void
initializeWidget(
MainControl
& main_control);
51
52
//
53
virtual
void
checkMenu(
MainControl
& main_control);
54
56
void
setFileName(
String
filename);
57
59
String
getFileName()
const
;
60
62
void
setUpdateInterval(
Size
msec);
63
64
public
slots:
65
67
void
updateFile();
68
70
void
start();
71
73
void
stop();
74
76
void
chooseFile();
77
78
protected
:
79
80
QAction* start_action_, *
stop_action_
;
81
82
QTimer
timer_
;
83
String
file_name_
;
84
QDateTime
last_vis_time_
;
85
};
86
87
} }
// namespaces
88
89
#endif // BALL_VIEW_WIDGETS_FILEOBSERVER_H
BALL::VIEW::MainControl
Definition:
mainControl.h:114
BALL::String
Definition:
string.h:61
BALL::VIEW::FileObserver::file_name_
String file_name_
Definition:
fileObserver.h:83
QWidget
BALL::VIEW::FileObserver
Definition:
fileObserver.h:34
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::DockWidget
Definition:
dockWidget.h:25
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL::VIEW::FileObserver::stop_action_
QAction * stop_action_
Definition:
fileObserver.h:80
BALL_SIZE_TYPE
BALL::VIEW::FileObserver::timer_
QTimer timer_
Definition:
fileObserver.h:82
dockWidget.h
BALL::VIEW::FileObserver::last_vis_time_
QDateTime last_vis_time_
Definition:
fileObserver.h:84
Generated by
1.8.7