Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

WorksheetDialog.h

Go to the documentation of this file.
00001 //LabPlot : WorksheetDialog.h
00002 
00003 #ifndef WORKSHEETDIALOG_H
00004 #define WORKSHEETDIALOG_H
00005 
00006 #include <qtoolbutton.h>
00007 #include <qcolor.h>
00008 #include <qcheckbox.h>
00009 #include "Worksheet.h"
00010 #include "Dialog.h"
00011 #include "RichTextWidget.h"
00012 
00013 class WorksheetDialog: public Dialog
00014 {
00015         Q_OBJECT
00016 public:
00017         WorksheetDialog(MainWin *mw, const char *name);
00018         void updateDialog();
00019 public slots:
00020         void enableTitle(bool e=true) { enabletcb->setChecked(e); }
00021         bool TitleEnabled() { return enabletcb->isChecked(); }
00022         void setTitle(QString t) { titlele->setText(t); }
00023         QString Title() { return titlele->text(); }
00024         void setBackgroundColor(QColor c) { bgcolor->setColor(c); }
00025         QColor BackgroundColor() { return bgcolor->color(); }
00026         void enableTimeStamp(bool e=true) { enablecb->setChecked(e); }
00027         bool TimeStampEnabled() { return enablecb->isChecked(); }
00028         void setTimeStamp(QString t) { timestample->setText(t); }
00029         QString TimeStamp() { return timestample->text(); }
00030         void setSize(int x, int y) { xni->setValue(x); yni->setValue(y); }
00031         void setWidth(int x) { xni->setValue(x); }
00032         void setHeight(int y) { yni->setValue(y); }
00033         Point Size() { return Point(xni->value(),yni->value()); }
00034         int Width() { return xni->value(); }
00035         int Heigth() { return yni->value(); }
00036 
00037         int Apply() { return apply_clicked(); }
00038         void updateTimeStamp();
00039 private:
00040         KColorButton *bgcolor;
00041         QCheckBox *enabletcb, *enablecb;
00042         KLineEdit *titlele, *timestample;
00043         KIntNumInput *xni, *yni;
00044         KPushButton *update;
00045 private slots:
00046         void ok_clicked() {apply_clicked(); accept(); }
00047         void saveSettings();
00048         int apply_clicked();
00049 };
00050 
00051 #endif //WORKSHEETDIALOG_H

Generated on Sun Apr 2 02:05:09 2006 for LabPlot by  doxygen 1.4.4