Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
propertywidget_pareffect.h
1
#ifndef PROPERTYWIDGET_PAREFFECT_H
2
#define PROPERTYWIDGET_PAREFFECT_H
3
4
#include "ui_propertywidget_pareffectbase.h"
5
#include "numeration.h"
6
#include "propertywidgetbase.h"
7
#include "ui/charselectenhanced.h"
8
9
class
PageItem
;
10
class
ParagraphStyle
;
11
class
ScribusMainWindow
;
12
13
class
PropertyWidget_ParEffect
:
public
QFrame,
private
Ui::PropertyWidget_ParEffectBase,
public
PropertyWidgetBase
14
{
15
Q_OBJECT
16
17
public
:
18
PropertyWidget_ParEffect
(QWidget *parent = 0);
19
~
PropertyWidget_ParEffect
() {}
20
21
void
updateStyle(
const
ParagraphStyle
& newPStyle);
22
void
updateCharStyles();
23
24
void
showCharStyle(
const
QString& name);
25
void
connectSignals();
26
void
disconnectSignals();
27
CharSelectEnhanced
* m_enhanced;
28
29
void
fillNumerationsCombo();
30
protected
:
31
double
m_unitRatio;
32
int
m_unitIndex;
33
34
PageItem
* m_item;
35
ScribusMainWindow
* m_ScMW;
36
37
void
configureWidgets();
38
void
setCurrentItem(
PageItem
*item);
39
40
virtual
void
changeEvent(QEvent *e);
41
void
handleChanges(
PageItem
* item,
ParagraphStyle
& newStyle);
42
43
public
slots:
44
void
setMainWindow(
ScribusMainWindow
*mw);
45
void
setDoc(
ScribusDoc
*doc);
46
47
void
handleAppModeChanged(
int
oldMode,
int
mode);
48
void
handleSelectionChanged();
49
void
handleUpdateRequest(
int
);
50
51
void
languageChange();
52
void
unitChange();
53
54
void
handleParEffectUse();
55
void
handleBulletStr(QString);
56
void
handleDropCapLines(
int
);
57
void
handleNumName(QString);
58
void
handleNumFormat(
int
);
59
void
handleNumLevel(
int
);
60
void
handleNumPrefix(QString);
61
void
handleNumSuffix(QString);
62
void
handleNumStart(
int
);
63
void
handlePEOffset(
double
);
64
void
handlePEIndent(
bool
);
65
void
handlePECharStyle(QString);
66
67
private
slots:
68
void
on_bulletCharTableButton_toggled(
bool
checked);
69
void
insertSpecialChars(
const
QString &chars);
70
71
private
:
72
void
openEnhanced();
73
void
closeEnhanced(
bool
show =
false
);
74
void
enableDropCap(
bool
);
75
void
enableBullet(
bool
);
76
void
enableNum(
bool
);
77
void
enableParEffect(
bool
);
78
void
fillBulletStrEditCombo()
79
{
80
bulletStrEdit->clear();
81
bulletStrEdit->addItem(QChar(0x2022));
82
bulletStrEdit->addItem(
"*"
);
83
bulletStrEdit->addItem(QChar(0x2013));
84
bulletStrEdit->setMinimumWidth(50);
85
if
(bulletStrEdit->currentText().isEmpty())
86
bulletStrEdit->setEditText(QChar(0x2022));
87
}
88
89
void
fillNumFormatCombo()
90
{
91
numFormatCombo->clear();
92
numFormatCombo->addItems(getFormatList());
93
}
94
95
void
fillPECombo()
96
{
97
peCombo->clear();
98
peCombo->addItem(tr(
"No Paragraph Effects"
));
99
peCombo->addItem(tr(
"Drop Caps"
));
100
peCombo->addItem(tr(
"Bulleted List"
));
101
peCombo->addItem(tr(
"Numerated List"
));
102
}
103
104
// void SMPStyleWidget::fillNumRestartCombo()
105
// {
106
// numRestartCombo->clear();
107
// numRestartCombo->addItem(tr("Document"));
108
// numRestartCombo->addItem(tr("Section"));
109
// numRestartCombo->addItem(tr("Story"));
110
// numRestartCombo->addItem(tr("Page"));
111
// numRestartCombo->addItem(tr("Frame"));
112
// }
113
};
114
115
#endif // PROPERTYWIDGET_PAREFFECT_H
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
CharSelectEnhanced
Character Palette for batch glyphs inserting. Enhanced instance is created/destroyed on every call fr...
Definition:
charselectenhanced.h:20
ParagraphStyle
Definition:
paragraphstyle.h:27
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
PropertyWidgetBase
Definition:
propertywidgetbase.h:16
PropertyWidget_ParEffect
Definition:
propertywidget_pareffect.h:13
PageItem
Definition:
pageitem.h:92
scribus
ui
propertywidget_pareffect.h
Generated on Tue Sep 29 2015 09:15:23 for Scribus by
1.8.9.1