Songbook-Client
0.7
This application is a manager of customguitar songbooks
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
notification.hh
Go to the documentation of this file.
1
// Copyright (C) 2009-2011, Romain Goffe <romain.goffe@gmail.com>
2
// Copyright (C) 2009-2011, Alexandre Dupas <alexandre.dupas@gmail.com>
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License as
6
// published by the Free Software Foundation; either version 2 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
// 02110-1301, USA.
18
//******************************************************************************
19
20
#ifndef __NOTIFICATION_HH__
21
#define __NOTIFICATION_HH__
22
23
#include <QDockWidget>
24
#include <QString>
25
26
class
CMainWindow
;
27
class
QTextEdit;
28
class
QBoxLayout;
29
42
class
CNotification
:
public
QDockWidget
43
{
44
Q_OBJECT
45
46
public
:
47
enum
Priority { LowPriority, MediumPriority, HighPriority };
48
50
CNotification
(QWidget*
parent
);
51
56
QString
message
()
const
;
57
62
void
setMessage
(
const
QString & message);
63
69
Priority
priority
()
const
;
70
76
void
setPriority
(
const
Priority & level);
77
82
void
addAction
(QAction* action);
83
86
CMainWindow
*
parent
()
const
;
87
88
private
:
91
void
changeBackground();
92
93
QTextEdit* m_textEdit;
94
QBoxLayout* m_layout;
95
Priority m_priority;
96
};
97
98
#endif // __NOTIFICATION_HH__
Generated on Fri Jul 20 2012 20:46:38 for Songbook-Client by
1.8.1.1