Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
pageitemsettersmanager.h
1
/***************************************************************************
2
* Copyright (C) 2009 by Pierre Marchand *
3
* pierre@oep-h.com *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19
***************************************************************************/
20
21
#ifndef PAGEITEMSETTERSMANAGER_H
22
#define PAGEITEMSETTERSMANAGER_H
23
24
#include <QObject>
25
#include <QList>
26
27
class
PageItemSetterBase
;
28
class
PageItem
;
29
class
Selection
;
30
class
ScribusDoc
;
31
37
class
PageItemSettersManager
:
public
QObject
38
{
39
Q_OBJECT
40
41
static
PageItemSettersManager
* instance;
42
static
PageItemSettersManager
* that();
43
44
PageItemSettersManager
(QObject * parent = 0);
45
46
QList<PageItemSetterBase*> setters;
47
Selection
* selection;
48
ScribusDoc
* doc;
49
50
public
:
51
static
void
registerSetter(
PageItemSetterBase
* base);
52
static
void
setSelection(
Selection
* selection);
53
static
PageItemSetterBase
* getClone(
const
QString& type);
54
55
private
slots:
56
void
UnRegisterSetter();
57
void
rotationModeChanged(
int
);
58
void
updateSelection();
59
60
};
61
62
#endif // PAGEITEMSETTERSMANAGER_H
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
PageItemSetterBase
Definition:
pageitemsetterbase.h:43
PageItemSettersManager
Definition:
pageitemsettersmanager.h:37
PageItem
Definition:
pageitem.h:92
Selection
Definition:
selection.h:34
scribus
pageitemsettersmanager.h
Generated on Tue Sep 29 2015 09:15:01 for Scribus by
1.8.9.1