~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kchart/kchartLegendConfigPage.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2001 by Laurent Montel, released under Artistic License.
 
3
 */
 
4
 
 
5
#ifndef __KCHARTLEGENDCONFIGPAGE_H__
 
6
#define __KCHARTLEGENDCONFIGPAGE_H__
 
7
 
 
8
#include <qwidget.h>
 
9
#include <qbutton.h>
 
10
#include <qlayout.h>
 
11
 
 
12
class KChartParams;
 
13
class QRadioButton;
 
14
class QLineEdit;
 
15
class KColorButton;
 
16
class QPushButton;
 
17
 
 
18
class KChartLegendConfigPage : public QWidget
 
19
{
 
20
    Q_OBJECT
 
21
 
 
22
public:
 
23
    KChartLegendConfigPage( KChartParams* params,
 
24
                                 QWidget* parent );
 
25
    void init();
 
26
    void apply();
 
27
public slots:
 
28
    void changeTitleLegendFont();
 
29
    void changeTextLegendFont();
 
30
 
 
31
private:
 
32
    KChartParams* _params;
 
33
    QPushButton *lTopLeft,    *lTop,     *lTopRight,
 
34
                *lLeft,       *noLegend, *lRight,
 
35
                *lBottomLeft, *lBottom,  *lBottomRight;
 
36
    QLineEdit *title;
 
37
    KColorButton *legendTitleColor, *legendTextColor;
 
38
    QFont titleLegend, textLegend;
 
39
    QPushButton *titleLegendFontButton, *textLegendFontButton;
 
40
    QButton::ToggleState titleLegendIsRelative, textLegendIsRelative;
 
41
 
 
42
    QPushButton* addButton( QGridLayout* layout, QButtonGroup* gb,
 
43
                            const QString &toolTipText, const QString &icon,
 
44
                            int posY, int posX );
 
45
};
 
46
 
 
47
#endif