Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
clockwidget.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
/***************************************************************************
8
clockwidget.h - description
9
-------------------
10
begin : Sat Oct 13
11
copyright : (C) 2012 by Franz Schmid
12
email : Franz.Schmid@altmuehlnet.de
13
***************************************************************************/
14
15
/***************************************************************************
16
* *
17
* This program is free software; you can redistribute it and/or modify *
18
* it under the terms of the GNU General Public License as published by *
19
* the Free Software Foundation; either version 2 of the License, or *
20
* (at your option) any later version. *
21
* *
22
***************************************************************************/
23
24
#ifndef CLOCKWIDGET_H
25
#define CLOCKWIDGET_H
26
27
#include <QMouseEvent>
28
#include <QPaintEvent>
29
#include <QTimer>
30
#include <QWidget>
31
#include "scribusapi.h"
32
33
class
ScribusDoc
;
34
35
class
SCRIBUS_API
ClockWidget
:
public
QWidget
36
{
37
Q_OBJECT
38
39
public
:
40
ClockWidget
(QWidget *pa,
ScribusDoc
*doc);
41
~
ClockWidget
() {}
42
void
paintEvent(QPaintEvent *e);
43
void
mouseReleaseEvent(QMouseEvent *);
44
bool
isExpanded();
45
private
:
46
bool
m_expand;
47
int
m_time;
48
int
m_finalTime;
49
QTimer m_timer;
50
ScribusDoc
* m_doc;
51
public
slots:
52
void
resetTime();
53
void
updateDisplay();
54
signals:
55
void
clicked();
56
};
57
#endif
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
ClockWidget
Definition:
clockwidget.h:35
scribus
ui
clockwidget.h
Generated on Tue Sep 29 2015 09:15:18 for Scribus by
1.8.9.1