Subversion Repositories Scribus

Rev

Rev 5980 | Rev 6023 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5850 tsoots 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
 
8
#include "smtextstyles.h"
9
#include "smtextstyles.moc"
10
#include "util.h"
11
#include "mspinbox.h"
12
#include "alignselect.h"
13
#include "tabruler.h"
14
#include "fontcombo.h"
15
#include "styleselect.h"
16
#include "sccombobox.h"
17
#include "shadebutton.h"
18
#include "commonstrings.h"
5859 tsoots 19
#include "style.h"
20
#include "scribusdoc.h"
21
#include "selection.h"
5850 tsoots 22
 
23
#include <qgroupbox.h>
24
#include <qlayout.h>
25
#include <qtoolbutton.h>
26
#include <qlabel.h>
27
#include <qpopupmenu.h>
28
#include <qcombobox.h>
29
#include <qspinbox.h>
30
#include <qframe.h>
31
#include <qpixmap.h>
6019 tsoots 32
#include <qtabwidget.h>
5850 tsoots 33
 
34
SMPStyleWidget::SMPStyleWidget()
35
{
36
        setupDistances();
37
        setupDropCaps();
38
        setupTabs();
6019 tsoots 39
        setupCharStyle();
5850 tsoots 40
}
41
 
42
void SMPStyleWidget::setupDistances()
43
{
44
        distancesBox->setColumnLayout(0, Qt::Vertical );
45
        distancesBox->layout()->setSpacing( 0 );
46
        distancesBox->layout()->setMargin( 0 );
47
        distancesBoxLayout = new QGridLayout( distancesBox->layout() );
48
        distancesBoxLayout->setAlignment( Qt::AlignTop );
49
        distancesBoxLayout->setSpacing( 5 );
50
        distancesBoxLayout->setMargin( 10 );
51
 
6019 tsoots 52
        lineSpacingMode_ = new QComboBox(distancesBox, "linespacingCombo");
53
        lineSpacingMode_->insertItem(tr("Fixed Linespacing"));
54
        lineSpacingMode_->insertItem(tr("Automatic Linespacing"));
55
        lineSpacingMode_->insertItem(tr("Align to Baseline Grid"));
56
        distancesBoxLayout->addMultiCellWidget(lineSpacingMode_, 0, 0, 1, 3);
5850 tsoots 57
 
58
        pixmapLabel0 = new QLabel(distancesBox, "pixmapLabel0");
59
        pixmapLabel0->setMinimumSize(QSize(22,22));
60
        pixmapLabel0->setMaximumSize(QSize(22,22));
61
        pixmapLabel0->setPixmap(loadIcon("linespacing2.png"));
62
        distancesBoxLayout->addWidget(pixmapLabel0, 1, 0);
63
 
6019 tsoots 64
        lineSpacing_ = new MSpinBox(1, 300, distancesBox, 1 );
65
        lineSpacing_->setSuffix(tr( " pt" ));
66
        distancesBoxLayout->addWidget(lineSpacing_, 1,1);
5850 tsoots 67
 
5870 tsoots 68
//      pixmapLabel1 = new QLabel(distancesBox, "pixmapLabel2" );
69
//      pixmapLabel1->setMinimumSize(QSize(22, 22));
70
//      pixmapLabel1->setMaximumSize(QSize(22, 22));
71
//      pixmapLabel1->setPixmap(loadIcon("textbase.png"));
72
//      distancesBoxLayout->addWidget(pixmapLabel1, 2, 0);
73
// 
74
//      fontBase = new MSpinBox( -100, 100, distancesBox, 1 );
75
//      fontBase->setSuffix( tr( " %" ) );
76
//      distancesBoxLayout->addWidget( fontBase, 2, 1 );
5850 tsoots 77
 
78
        pixmapLabel3 = new QLabel( "", distancesBox, "TextLabel1_2_2" );
79
        pixmapLabel3->setPixmap( loadIcon("above.png") );
80
        distancesBoxLayout->addWidget( pixmapLabel3, 1, 2 );
81
 
6019 tsoots 82
        spaceAbove_ = new MSpinBox( 0, 300, distancesBox, 1 );
83
        spaceAbove_->setSuffix( tr( " pt" ) );
84
        distancesBoxLayout->addWidget( spaceAbove_, 1, 3 );
5850 tsoots 85
 
86
        pixmapLabel4 = new QLabel( "", distancesBox, "TextLabel1_2_3" );
87
        pixmapLabel4->setPixmap( loadIcon("below.png") );
88
        distancesBoxLayout->addWidget( pixmapLabel4, 2, 2 );
89
 
6019 tsoots 90
        spaceBelow_ = new MSpinBox( 0, 300, distancesBox, 1 );
91
        spaceBelow_->setSuffix( tr( " pt" ) );
92
        distancesBoxLayout->addWidget( spaceBelow_, 2, 3 );
5850 tsoots 93
 
6019 tsoots 94
        alignement_ = new AlignSelect(distancesBox);
95
        distancesBoxLayout->addMultiCellWidget(alignement_, 3,3,1,3);
5850 tsoots 96
}
97
 
98
void SMPStyleWidget::setupDropCaps()
99
{
100
        dropCapsBox->setCheckable( true );
101
        dropCapsBox->setColumnLayout(0, Qt::Vertical );
102
        dropCapsBox->layout()->setSpacing( 5 );
103
        dropCapsBox->layout()->setMargin( 10 );
104
 
105
        dropCapsBoxLayout = new QGridLayout(dropCapsBox->layout());
106
        dropCapsBoxLayout->setAlignment(Qt::AlignTop);
107
 
6019 tsoots 108
        dropCapLines_ = new QSpinBox(dropCapsBox, "DropLines");
109
        dropCapLines_->setMinValue(2);
110
        dropCapLines_->setMaxValue(20);
111
        capLabel1 = new QLabel(dropCapLines_, tr("&Lines:"), dropCapsBox, "CapLabel");
5850 tsoots 112
        dropCapsBoxLayout->addWidget(capLabel1, 0, 0);
6019 tsoots 113
        dropCapsBoxLayout->addWidget(dropCapLines_, 0, 1);
5850 tsoots 114
 
6019 tsoots 115
        dropCapOffset_ = new MSpinBox(-3000, 3000, dropCapsBox, 1);
116
        dropCapOffset_->setSuffix(tr(" pt"));
117
        capLabel2 = new QLabel(dropCapLines_, tr("Distance from Text:"), dropCapsBox, "CapLabel2");
5850 tsoots 118
        dropCapsBoxLayout->addWidget(capLabel2, 1, 0);
6019 tsoots 119
        dropCapsBoxLayout->addWidget(dropCapOffset_, 1, 1);
5850 tsoots 120
}
121
 
122
void SMPStyleWidget::setupTabs()
123
{
124
        tabsBox->setColumnLayout(0, Qt::Vertical );
125
        tabsBox->layout()->setSpacing( 0 );
126
        tabsBox->layout()->setMargin( 0 );
127
 
128
        tabsBoxLayout = new QVBoxLayout(tabsBox->layout());
129
        tabsBoxLayout->setAlignment( Qt::AlignTop );
130
        tabsBoxLayout->setSpacing( 5 );
131
        tabsBoxLayout->setMargin( 10 );
132
 
6019 tsoots 133
        tabList_ = new Tabruler(tabsBox);
134
        tabsBoxLayout->addWidget( tabList_ );
5850 tsoots 135
}
136
 
6019 tsoots 137
void SMPStyleWidget::setupCharStyle()
138
{
139
        characterBox->setColumns(3);
140
        characterBox->setInsideMargin(5);
141
        characterBox->setInsideSpacing(5);
142
        cpage = new SMCStylePage(characterBox);
143
}
144
 
145
void SMPStyleWidget::show(ParagraphStyle &pstyle)
146
{
147
        lineSpacingMode_->setCurrentItem(pstyle.lineSpacingMode());
148
        lineSpacing_->setValue(pstyle.lineSpacing());
149
        alignement_->setStyle(pstyle.alignment());
150
        tabList_->setFirstLineData(pstyle.firstIndent());
151
        tabList_->setLeftIndentData(pstyle.leftMargin());
152
        tabList_->setRightIndentData(pstyle.rightMargin());
153
        spaceAbove_->setValue(pstyle.gapBefore());
154
        spaceBelow_->setValue(pstyle.gapAfter());
155
        dropCapsBox->setChecked(pstyle.hasDropCap());
156
        dropCapLines_->setValue(pstyle.dropCapLines());
157
        dropCapOffset_->setValue(pstyle.dropCapOffset());
158
 
159
//  ASK Avox!
160
//      bool useBaselineGrid() const { return BaseAdj==NOVALUE && parent()? inh().useBaselineGrid() : BaseAdj > 0; }
161
 
162
        cpage->show(pstyle.charStyle());
163
}
164
 
5850 tsoots 165
SMPStyleWidget::~SMPStyleWidget()
166
{
167
 
168
}
169
 
170
/******************************************************************************/
171
/******************************************************************************/
172
 
5980 avox 173
SMParagraphStyle::SMParagraphStyle() : StyleItem(), pwidget_(0), doc_(NULL)
5850 tsoots 174
{
175
 
176
}
177
 
178
QTabWidget* SMParagraphStyle::widget()
179
{
180
        if (!pwidget_)
181
        {
182
                pwidget_ = new SMPStyleWidget();
183
                Q_CHECK_PTR(pwidget_);
184
        }
185
 
186
        return pwidget_->tabWidget;
187
}
188
 
189
QString SMParagraphStyle::typeName()
190
{
191
        return tr("Paragraph Styles");
192
}
193
 
194
void SMParagraphStyle::currentDoc(ScribusDoc *doc)
195
{
196
        Q_ASSERT(doc);
5859 tsoots 197
        doc_ = doc;
5850 tsoots 198
}
199
 
200
QValueList<StyleName> SMParagraphStyle::styles()
201
{
202
        QValueList<StyleName> tmpList;
203
 
6019 tsoots 204
        if (!doc_)
205
                return tmpList; // no doc available
5859 tsoots 206
 
6019 tsoots 207
        StyleSet<ParagraphStyle> &tmp = doc_->docParagraphStyles;
208
        for (uint i = 0; i < tmp.count(); ++i)
209
        {
210
                if (tmp[i].hasName())
211
                {
212
                        QString styleName = tmp[i].name();
213
                        QString parentName = QString::null;
5859 tsoots 214
 
6019 tsoots 215
                        if (tmp[i].hasParent() && tmp[i].parent()->hasName())
216
                                parentName = tmp[i].parent()->displayName();
217
 
218
                        tmpList << StyleName(styleName, parentName);
219
                }
220
        }
221
 
5850 tsoots 222
        return tmpList;
223
}
224
 
225
void SMParagraphStyle::selected(const QStringList &styleNames)
226
{
6019 tsoots 227
        if (styleNames.count() == 1)
228
        {
229
                int index = doc_->docParagraphStyles.find(styleNames[0]);
230
                if (index > -1)
231
                        pwidget_->show(doc_->docParagraphStyles[index]);
232
        }
233
        else // more than one item selected do the magic tricks here
234
        {
235
 
236
        }
5850 tsoots 237
}
238
 
5859 tsoots 239
QString SMParagraphStyle::fromSelection() const
240
{
241
//      Q_ASSERT(doc_ && doc_->m_Selection);
242
//      QString lsName = QString::null;
243
 
244
//      for (uint i = 0; i < doc_->m_Selection->count(); ++i)
245
//      {
246
//              PageItem *item = doc_->m_Selection->itemAt(i);
247
//      }
248
        return QString::null;
249
}
250
 
5850 tsoots 251
void SMParagraphStyle::apply()
252
{
253
 
254
}
255
 
256
void SMParagraphStyle::deleteStyles(const QValueList<RemoveItem> &removeList)
257
{
258
 
259
}
260
 
261
void SMParagraphStyle::nameChanged(const QString &newName)
262
{
263
 
264
}
265
 
266
SMParagraphStyle::~SMParagraphStyle()
267
{
268
 
269
}
270
 
271
/******************************************************************************/
272
/******************************************************************************/
273
 
6019 tsoots 274
SMCStylePage::SMCStylePage(QWidget *parent) : CStylePBase(parent)
5850 tsoots 275
{
276
        characterBoxLayout = new QVBoxLayout(characterBox);
277
        characterBoxLayout->setAlignment( Qt::AlignLeft );
278
        characterBoxLayout->setSpacing( 5 );
279
        characterBoxLayout->setMargin( 10 );
280
 
6019 tsoots 281
        fontFace_ = new FontComboH(characterBox);
282
        characterBoxLayout->addWidget( fontFace_ );
5850 tsoots 283
 
284
        characterBoxLayout->addSpacing( 10 );
285
 
286
        layout7 = new QHBoxLayout( 0, 0, 5, "layout7");
6019 tsoots 287
        fontSize_ = new MSpinBox( 1, 2048, characterBox, 1 );
288
        fontSize_->setMinimumSize( QSize( 70, 22 ) );
289
        fontSize_->setSuffix( tr( " pt" ) );
5850 tsoots 290
 
291
        TextF2 = new QLabel( "" ,characterBox, "TextF2" );
292
        TextF2->setPixmap(loadIcon("Zeichen.xpm"));
293
        TextF2->setMinimumSize( QSize( 22, 22 ) );
294
        TextF2->setMaximumSize( QSize( 22, 22 ) );
295
        layout7->addWidget( TextF2 );
6019 tsoots 296
        layout7->addWidget( fontSize_ );
5850 tsoots 297
 
5870 tsoots 298
        pixmapLabel3_3 = new QLabel( characterBox, "pixmapLabel3_3" );
299
        pixmapLabel3_3->setMinimumSize( QSize( 22, 22 ) );
300
        pixmapLabel3_3->setMaximumSize( QSize( 22, 22 ) );
301
        pixmapLabel3_3->setPixmap( loadIcon("textkern.png") );
302
        layout7->addWidget(pixmapLabel3_3);
303
 
6019 tsoots 304
        tracking_ = new MSpinBox( -300, 300, characterBox, 1 );
305
        tracking_->setSuffix( tr( " %" ) );
306
        layout7->addWidget(tracking_);
5870 tsoots 307
 
308
 
309
        pixmapLabel2 = new QLabel( characterBox, "pixmapLabel2" );
310
        pixmapLabel2->setMinimumSize( QSize( 22, 22 ) );
311
        pixmapLabel2->setMaximumSize( QSize( 22, 22 ) );
312
        pixmapLabel2->setPixmap( loadIcon("textbase.png") );
313
        layout7->addWidget( pixmapLabel2 );
6019 tsoots 314
        baselineOffset_ = new MSpinBox( -100, 100, characterBox, 1 );
315
        baselineOffset_->setSuffix( tr( " %" ) );
316
        layout7->addWidget( baselineOffset_ );
5870 tsoots 317
        layout7->addStretch(10);
318
        characterBoxLayout->addLayout( layout7 );
319
 
320
        layout8 = new QHBoxLayout(0, 0, 5, "layout8");
321
 
5850 tsoots 322
        pixmapLabel3 = new QLabel( "", characterBox, "pixmapLabel3" );
323
        pixmapLabel3->setMinimumSize( QSize( 22, 22 ) );
324
        pixmapLabel3->setMaximumSize( QSize( 22, 22 ) );
325
        pixmapLabel3->setPixmap( loadIcon("textscaleh.png") );
5870 tsoots 326
        layout8->addWidget( pixmapLabel3 );
5850 tsoots 327
 
6019 tsoots 328
        fontHScale_ = new MSpinBox( 10, 400, characterBox, 1 );
329
        fontHScale_->setSuffix( tr( " %" ) );
330
        layout8->addWidget( fontHScale_ );
5850 tsoots 331
 
332
        pixmapLabel3_2 = new QLabel( "", characterBox, "pixmapLabel3_2" );
333
        pixmapLabel3_2->setMinimumSize( QSize( 22, 22 ) );
334
        pixmapLabel3_2->setMaximumSize( QSize( 22, 22 ) );
335
        pixmapLabel3_2->setPixmap( loadIcon("textscalev.png") );
5870 tsoots 336
        layout8->addWidget( pixmapLabel3_2 );
5850 tsoots 337
 
6019 tsoots 338
        fontVScale_ = new MSpinBox( 10, 400, characterBox, 1 );
339
        fontVScale_->setSuffix( tr( " %" ) );
340
        layout8->addWidget( fontVScale_ );
5870 tsoots 341
        layout8->addStretch(10);
342
        characterBoxLayout->addLayout( layout8 );
5850 tsoots 343
 
344
        characterBoxLayout->addSpacing( 10 );
345
 
346
        layout9a = new QHBoxLayout( 0, 0, 0, "layout9");
6019 tsoots 347
        effects_ = new StyleSelect(characterBox);
348
        layout9a->addWidget( effects_ );
5850 tsoots 349
 
350
        spacer1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
351
        layout9a->addItem( spacer1 );
352
        characterBoxLayout->addLayout( layout9a, Qt::AlignLeft );
353
 
354
        characterBoxLayout->addSpacing( 10 );
355
 
356
        layout5 = new QHBoxLayout( 0, 0, 5, "layout5");
357
        FillIcon = new QLabel( "", characterBox, "FillIcon" );
358
        FillIcon->setPixmap(loadIcon("fill.png"));
359
        layout5->addWidget( FillIcon );
360
 
6019 tsoots 361
        fillColor_ = new ScComboBox( false, characterBox, "TxFill" );
362
        layout5->addWidget( fillColor_ );
5850 tsoots 363
 
364
        pixmapLabel3_20 = new QLabel( characterBox, "pixmapLabel3_20" );
365
        pixmapLabel3_20->setMinimumSize( QSize( 22, 22 ) );
366
        pixmapLabel3_20->setMaximumSize( QSize( 22, 22 ) );
367
        pixmapLabel3_20->setPixmap( loadIcon("shade.png") );
368
        layout5->addWidget( pixmapLabel3_20 );
369
 
6019 tsoots 370
        fillShade_ = new ShadeButton(characterBox);
371
        layout5->addWidget( fillShade_ );
5850 tsoots 372
        QSpacerItem* spacer3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
373
        layout5->addItem( spacer3 );
374
        characterBoxLayout->addLayout( layout5 );
375
 
376
        layout6 = new QHBoxLayout( 0, 0, 5, "layout6");
377
        StrokeIcon = new QLabel( "", characterBox, "StrokeIcon" );
378
        StrokeIcon->setPixmap(loadIcon("Stiftalt.xpm"));
379
        layout6->addWidget( StrokeIcon );
380
 
6019 tsoots 381
        strokeColor_ = new ScComboBox( false, characterBox, "TxStroke" );
382
        layout6->addWidget( strokeColor_ );
5850 tsoots 383
 
384
        pixmapLabel3_19 = new QLabel( "", characterBox, "pixmapLabel3_19" );
385
        pixmapLabel3_19->setMinimumSize( QSize( 22, 22 ) );
386
        pixmapLabel3_19->setMaximumSize( QSize( 22, 22 ) );
387
        pixmapLabel3_19->setPixmap( loadIcon("shade.png") );
388
        layout6->addWidget( pixmapLabel3_19 );
389
 
6019 tsoots 390
        strokeShade_ = new ShadeButton(characterBox);
391
        layout6->addWidget( strokeShade_ );
5850 tsoots 392
 
393
        spacer4 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
394
        layout6->addItem( spacer4 );
395
        characterBoxLayout->addLayout( layout6 );
396
 
397
        characterBoxLayout->addStretch(10);
398
 
6019 tsoots 399
        fillColor_->clear();
400
        strokeColor_->clear();
5850 tsoots 401
        ColorList::Iterator it;
402
        QPixmap pm = QPixmap(15, 15);
6019 tsoots 403
        fillColor_->insertItem(CommonStrings::NoneColor);
404
        strokeColor_->insertItem(CommonStrings::NoneColor);
5850 tsoots 405
        StrokeIcon->setEnabled(false);
6019 tsoots 406
        strokeShade_->setEnabled(false);
407
        strokeColor_->setEnabled(false);
5850 tsoots 408
}
409
 
6019 tsoots 410
void SMCStylePage::show(CharStyle &cstyle)
5850 tsoots 411
{
6019 tsoots 412
        // ASK Avox!
413
        fontSize_->setValue(cstyle.fontSize() / 10.0);
414
        fillShade_->setValue(cstyle.fillShade());
415
        strokeShade_->setValue(cstyle.strokeShade());
416
        effects_->setStyle(static_cast<int>(cstyle.effects()));
417
        effects_->ShadowVal->Xoffset->setValue(cstyle.shadowXOffset());
418
        effects_->ShadowVal->Yoffset->setValue(cstyle.shadowYOffset());
419
        effects_->OutlineVal->LWidth->setValue(cstyle.outlineWidth());
420
        effects_->StrikeVal->LPos->setValue(cstyle.strikethruOffset());
421
        effects_->StrikeVal->LWidth->setValue(cstyle.strikethruWidth());
422
        effects_->UnderlineVal->LPos->setValue(cstyle.underlineOffset());
423
        effects_->UnderlineVal->LWidth->setValue(cstyle.underlineWidth());
424
        fontHScale_->setValue(cstyle.scaleH());
425
        fontVScale_->setValue(cstyle.scaleV());
426
        baselineOffset_->setValue(cstyle.baselineOffset());
427
        tracking_->setValue(cstyle.tracking());
428
        fillColor_->setCurrentText(cstyle.fillColor());
429
        strokeColor_->setCurrentText(cstyle.strokeColor());
430
        fontFace_->setCurrentFont(cstyle.font().scName());
431
//      QString language() const { return language_==NOLANG && parent()? inh().language() : language_; }
432
 
433
}
5850 tsoots 434
 
6019 tsoots 435
SMCStylePage::~SMCStylePage()
436
{
437
 
5850 tsoots 438
}
439
 
440
/******************************************************************************/
441
/******************************************************************************/
442
 
6019 tsoots 443
SMCharacterStyle::SMCharacterStyle() : StyleItem(), widget_(0), page_(0), doc_(0)
5850 tsoots 444
{
445
 
446
}
447
 
448
QTabWidget* SMCharacterStyle::widget()
449
{
6019 tsoots 450
        if (!widget_)
5850 tsoots 451
        {
6019 tsoots 452
                widget_ = new QTabWidget();
453
                Q_CHECK_PTR(widget_);
454
                page_ = new SMCStylePage();
455
                Q_CHECK_PTR(page_);
456
                widget_->addTab(page_, tr("Properties"));
5850 tsoots 457
        }
458
 
6019 tsoots 459
        return widget_;
5850 tsoots 460
}
461
 
462
QString SMCharacterStyle::typeName()
463
{
464
        return tr("Character Styles");
465
}
466
 
467
void SMCharacterStyle::currentDoc(ScribusDoc *doc)
468
{
469
        Q_ASSERT(doc);
6019 tsoots 470
        doc_ = doc;
5850 tsoots 471
}
472
 
473
QValueList<StyleName> SMCharacterStyle::styles()
474
{
475
        QValueList<StyleName> tmpList;
476
 
6019 tsoots 477
        if (!doc_)
478
                return tmpList; // no doc available
479
 
480
        StyleSet<CharStyle> &tmp = doc_->docCharStyles;
481
        for (uint i = 0; i < tmp.count(); ++i)
482
        {
483
                if (tmp[i].hasName())
484
                {
485
                        QString styleName = tmp[i].name();
486
                        QString parentName = QString::null;
487
 
488
                        if (tmp[i].hasParent() && tmp[i].parent()->hasName())
489
                                parentName = tmp[i].parent()->displayName();
490
 
491
                        tmpList << StyleName(styleName, parentName);
492
                }
493
        }
494
 
5850 tsoots 495
        return tmpList;
496
}
497
 
498
void SMCharacterStyle::selected(const QStringList &styleNames)
499
{
6019 tsoots 500
        if (styleNames.count() == 1)
501
        {
502
                int index = doc_->docCharStyles.find(styleNames[0]);
503
                if (index > -1)
504
                        page_->show(doc_->docCharStyles[index]);
505
        }
506
        else // more than one item selected do the magic tricks here
507
        {
508
 
509
        }
5850 tsoots 510
}
511
 
5859 tsoots 512
QString SMCharacterStyle::fromSelection() const
513
{
514
        return QString::null;
515
}
516
 
5850 tsoots 517
void SMCharacterStyle::apply()
518
{
519
 
520
}
521
 
522
void SMCharacterStyle::deleteStyles(const QValueList<RemoveItem> &removeList)
523
{
524
 
525
}
526
 
527
void SMCharacterStyle::nameChanged(const QString &newName)
528
{
529
 
530
}
531
 
532
SMCharacterStyle::~SMCharacterStyle()
533
{
6019 tsoots 534
        delete page_;
535
        delete widget_;
536
        page_ = 0;
537
        widget_ = 0;
5850 tsoots 538
}
539