summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kivio_stencil_geometry_panel.h
blob: b049b2f38f784b6c67b62538f9d2b303bf1b1bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef KIVIO_STENCIL_GEOMETRY_PANEL_H
#define KIVIO_STENCIL_GEOMETRY_PANEL_H

#include <tqwidget.h>
#include <KoUnit.h>

class KoPageLayout;
class KoUnitDoubleSpinBox;
class KIntSpinBox;

class KivioStencilGeometryPanel : public TQWidget
{
  Q_OBJECT
  TQ_OBJECT
  protected:
    KoUnitDoubleSpinBox *m_pX, *m_pY, *m_pW, *m_pH;
    KIntSpinBox* m_rotationSBox;
    KoUnit::Unit m_unit;
    bool m_emitSignals;

  public slots:
    void setUnit(KoUnit::Unit);
    void setPosition(double, double);
    void setSize(double, double);
    void setPageLayout(const KoPageLayout& l);
    void setRotation(int d);

    void setEmitSignals(bool e);

  protected slots:
    void xChange(double);
    void yChange(double);
    void wChange(double);
    void hChange(double);
    void rotationChange(int);

  signals:
    void positionChanged(double, double);
    void sizeChanged(double, double);
    void rotationChanged(int);

  public:
    KivioStencilGeometryPanel(TQWidget* tqparent);
    virtual ~KivioStencilGeometryPanel();
};

#endif