Subversion Repositories Scribus

Rev

Rev 16904 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/

#ifndef PROPERTIESPALETTE_CONTENT_H
#define PROPERTIESPALETTE_CONTENT_H

#include "scribusapi.h"

#include "propertywidgetbase.h"
#include "scdockpalette.h"

class QAbstractButton;

class PageItem;
class PropertyWidget_Group;
class PropertyWidget_Image;
class PropertyWidget_Text;
class ScribusDoc;
class ScribusMainWindow;
class Selection;

class SCRIBUS_API PropertiesPalette_Content : public ScDockPalette, public PropertyWidgetBase
{
        Q_OBJECT

public:
        PropertiesPalette_Content(QWidget* parent);
        ~PropertiesPalette_Content() {};

        virtual void changeEvent(QEvent *e);

protected:
        void connectSignals();
        void disconnectSignals();

        double m_unitRatio;
        int    m_unitIndex;

        PageItem*          m_item;
        ScribusMainWindow* m_ScMW;

        void enableFromSelection(void);
        void setCurrentItem(PageItem *i);
       
private:
        PropertyWidget_Group* groupWidget;
        PropertyWidget_Image* imageWidget;
        PropertyWidget_Text*  textWidget;
       
public slots:
        void setDoc(ScribusDoc *d);
        void setMainWindow(ScribusMainWindow *mw);

        void handleSelectionChanged();

        void languageChange();
        void unitChange();

private slots:
        void onButtonGroupClicked(QAbstractButton* button);
};

#endif