/****************************************************************************
** Form interface generated from reading ui file 'WerkTest2.ui'
**
** Created: Mit Mai 1 09:39:29 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef MPALETTE_H
#define MPALETTE_H

#include <qdockwindow.h>
#include <qvariant.h>
#include <qradiobutton.h>
#include <qbuttongroup.h>
#include <qcombobox.h>
#include <qframe.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <qtabwidget.h>
#include <qtoolbutton.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <qwidgetstack.h>
#include <qcheckbox.h>
#include "mspinbox.h"
#include "pageitem.h"
#include "page.h"
#include "scribusdoc.h"
#include "linkbutton.h"
#include "linecombo.h"

class Mpalette : public QDockWindow  {
Q_OBJECT
public:
    Mpalette(QWidget* parent, QPopupMenu* FontMenu);
    ~Mpalette();

    QTabWidget* TabWidget3;
    QWidget* tab;
		QWidgetStack* Fram;
    QLabel* Text1;
    QLabel* Text2;
    QLabel* Text3;
    QLabel* Text4;
    QLabel* Text5;
    QLabel* Text5_2;
    MSpinBox* Xpos;
    MSpinBox* Width;
    MSpinBox* Height;
    MSpinBox* Ypos;
    MSpinBox* Rot;
    QSpinBox* RoundRect;
		QCheckBox* ScaleGr;
    QWidget* tab_2;
    QFrame* Frame7;
    MSpinBox* LXpos;
    MSpinBox* LYpos;
    MSpinBox* ScaleX;
    MSpinBox* ScaleY;
    MSpinBox* Extra;
    MSpinBox* LineSp;
    QGroupBox* GroupBox1;
//    QGroupBox* GroupBox3;
    QGroupBox* GroupBox4;
    QButtonGroup* GroupBox5;
    QLabel* Text22;
    QSpinBox* Size;
    QToolButton* Fonts;
    QGroupBox* GroupBox2;
    QLabel* Text23;
    QLabel* Text24;
    QToolButton* Bold;
    QToolButton* Italic;
    QToolButton* Underline;
    QToolButton* Kapital;
    QButtonGroup* ButtonGroup6;
    QToolButton* Subs;
    QToolButton* Supers;
    QToolButton* Strike;
    QButtonGroup* ButtonGroup2;
    QToolButton* TextL;
    QToolButton* TextR;
    QToolButton* TextC;
    QToolButton* TextB;
    QToolButton* FlipH;
    QToolButton* FlipV;
    QLabel* Text13;
    QLabel* Text11;
    QLabel* Text12;
    LinkButton* Kette;
    QLabel* Text10;
    QToolButton* FlipH2;
    QToolButton* FlipV2;
    QFrame* Frame8;
    QFrame* Frame9;
    QLabel* Text15;
    LineCombo* LStyle;
    QLabel* Text16;
    MSpinBox* LSize;
    QLabel* Text20;
    QLabel* Text21;
    QComboBox* LJoinStyle;
    QComboBox* LEndStyle;
		QComboBox* LineMode;
    QRadioButton* FreeScale;
    QRadioButton* FrameScale;
    QCheckBox* Aspect;
    PageItem *CurItem;
    bool HaveDoc;
    bool HaveItem;
    ScribusDoc *doc;
    float Umrech;
		bool Sichtbar;
    bool LMode;

public slots:
		void SetDoc(ScribusDoc *d);
		void UnsetDoc();
		void Verbergen(bool vis);
		void Docken(QDockWindow::Place p);
		void NewSel(int nr);
		void SetCurItem(PageItem *i);
		void UnitChange();
    void setXY(float x, float y);
    void setBH(float x, float y);
		void setR(float r);
		void setRR(float r);
		void setLsp(float r);
		void setSize(int s);
		void setExtra(float e);
		void ChangeScaling();
		void setLvalue(float scx, float scy, float x, float y);
		void setSvalue(float s);
		void setLIvalue(PenStyle p, PenCapStyle pc, PenJoinStyle pj);
		void setStil(int s);
		void setAli(int e);
		
private slots:
		void NewX();
		void NewY();
		void NewW();
		void NewH();
		void NewR();
		void NewRR();
		void NewLsp();
		void NewSize();
		void NewExtra();
		void DoFlipH();
		void DoFlipV();
		void ToggleKette();
		void HChange();
		void VChange();
		void NewLocalXY();
		void NewLocalSC();
		void NewLS();
		void NewLSty();
		void NewLJoin();
		void NewLEnd();
		void NewAli();
		void setTypeStyle();
		void NewLMode();
	
signals:
	void Schliessen();
	void DocChanged();
	void NewAbStyle(int s);
	void BackHome();
	void Stellung(int s);

protected:
    QGridLayout* tabLayout;
    QVBoxLayout* tabLayout_2;
    QVBoxLayout* Frame7Layout;
    QGridLayout* GroupBox1Layout;
    QGridLayout* GroupBox2Layout;
    QHBoxLayout* Layout11;
    QHBoxLayout* ButtonGroup6Layout;
    QHBoxLayout* Layout14;
    QHBoxLayout* ButtonGroup2Layout;
    QHBoxLayout* Layout14_2;
    QGridLayout* Frame8Layout;
    QVBoxLayout* GroupBox5Layout;
    QGridLayout* GroupBox4Layout;
    QHBoxLayout* ScaleLayout3;
};

#endif // MPALETTE_H
