Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
core
qgsmessageoutput.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmessageoutput.h - interface for showing messages
3
----------------------
4
begin : April 2006
5
copyright : (C) 2006 by Martin Dobias
6
email : wonder.sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
/* $Id$ */
16
17
18
#ifndef QGSMESSAGEOUTPUT_H
19
#define QGSMESSAGEOUTPUT_H
20
21
#include <QString>
22
#include <QObject>
23
24
class
QgsMessageOutput
;
25
typedef
QgsMessageOutput
*( *MESSAGE_OUTPUT_CREATOR )();
26
27
39
class
CORE_EXPORT
QgsMessageOutput
40
{
41
public
:
42
44
enum
MessageType
{ MessageText, MessageHtml };
45
47
virtual
~
QgsMessageOutput
();
48
50
virtual
void
setMessage(
const
QString& message, MessageType msgType ) = 0;
51
53
virtual
void
appendMessage(
const
QString& message ) = 0;
54
56
virtual
void
setTitle(
const
QString& title ) = 0;
57
59
virtual
void
showMessage(
bool
blocking =
true
) = 0;
60
62
static
void
setMessageOutputCreator(
MESSAGE_OUTPUT_CREATOR
f );
63
66
static
QgsMessageOutput
* createMessageOutput();
67
68
private
:
69
71
static
MESSAGE_OUTPUT_CREATOR
mMessageOutputCreator
;
72
};
73
74
81
class
CORE_EXPORT
QgsMessageOutputConsole
:
public
QObject,
public
QgsMessageOutput
82
{
83
Q_OBJECT
84
85
public
:
86
87
QgsMessageOutputConsole
();
88
89
virtual
void
setMessage
(
const
QString& message,
MessageType
msgType );
90
91
virtual
void
appendMessage
(
const
QString& message );
92
93
virtual
void
setTitle
(
const
QString& title );
94
96
virtual
void
showMessage
(
bool
blocking =
true
);
97
98
signals:
99
101
void
destroyed();
102
103
private
:
104
106
QString
mMessage
;
107
109
QString
mTitle
;
110
111
};
112
113
#endif
Generated on Wed Jun 13 2012 13:54:10 for Quantum GIS API Documentation by
1.8.1