Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
pageitemrotationsetter.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
#ifndef PAGEITEMROTATIONSETTER_H
21
#define PAGEITEMROTATIONSETTER_H
22
23
#include "ui/pageitemsetterbase.h"
24
#include "ui_rotationsetter.h"
25
26
class
PageItem
;
27
28
class
PageItemRotationSetter
:
public
PageItemSetterBase
,
private
Ui::RotationWidget
29
{
30
Q_OBJECT
31
32
Selection
* m_select;
33
34
public
:
35
PageItemRotationSetter
(QWidget * parent = 0);
36
37
void
changeItem
(
Selection
* sel);
38
PageItemSetterBase
*
clone
();
39
40
private
:
41
void
refineSetup();
42
43
void
createConnections();
44
void
removeConnections();
45
PageItem
* connectedItem;
46
47
inline
double
returnedVal(
const
double
& val)
const
;
48
void
rotate(
double
angle,
PageItem
* item);
49
50
private
slots:
51
void
updateRotation(
double
val);
52
void
modRot(
double
val);
53
void
rotate90();
54
55
};
56
57
#endif // PAGEITEMROTATIONSETTER_H
PageItemRotationSetter
Definition:
pageitemrotationsetter.h:28
PageItemRotationSetter::changeItem
void changeItem(Selection *sel)
Definition:
pageitemrotationsetter.cpp:51
PageItemSetterBase
Definition:
pageitemsetterbase.h:43
PageItem
Definition:
pageitem.h:92
PageItemRotationSetter::clone
PageItemSetterBase * clone()
Definition:
pageitemrotationsetter.cpp:39
Selection
Definition:
selection.h:34
scribus
ui
pageitemrotationsetter.h
Generated on Tue Sep 29 2015 09:15:20 for Scribus by
1.8.9.1