Rev 1803 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/* $Id: cwdialog.h 1804 2005-03-30 14:35:38Z subik $ */
#ifndef CWDIALOG_H
#define CWDIALOG_H
#include <qvariant.h>
#include <qdialog.h>
#include "colorwheelwidget.h"
#include <scribus.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QComboBox;
class QListView;
class QListViewItem;
class QPushButton;
class QSpinBox;
/** \brief GUI dialog for Color Wheel Plugin.
Quite everything in this class is self explanatory (except few things ;)).
\author Petr Vanek; petr@yarpen.cz
\date April 2005
*/
class ColorWheelDialog : public QDialog
{
Q_OBJECT
public:
ColorWheelDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~ColorWheelDialog();
QLabel* typeLabel;
QComboBox* typeCombo;
QListView* colorList;
ColorWheel* colorWheel;
QLabel* previewLabel;
QLabel* angleLabel;
QSpinBox* angleSpin;
QPushButton* addButton;
QPushButton* cancelButton;
protected:
/** It fills a colors into list view. It takes colors
from ColorWheel widget. */
void fillColorList();
QGridLayout* formLayout;
QHBoxLayout* mainLayout;
QVBoxLayout* wheelLayout;
QSpacerItem* spacer1;
QHBoxLayout* angleLayout;
QVBoxLayout* listLayout;
QHBoxLayout* buttonLayout;
/** Configuration structure */
PrefsContext* prefs;
/** Draws a strange colorful things as preview of the color schema. */
void setPreview();
public slots:
virtual void typeCombo_activated(int);
virtual void colorWheel_clicked(int, const QPoint &);
virtual void addButton_clicked();
virtual void cancelButton_clicked();
virtual void angleSpin_valueChanged(int);
protected slots:
virtual void languageChange();
};
#endif // CWDIALOG_H