00001 //LabPlot : TitleDialog.h 00002 00003 #ifndef TITLEDIALOG_H 00004 #define TITLEDIALOG_H 00005 00006 #include "Dialog.h" 00007 #include "Worksheet.h" 00008 #include "Label.h" 00009 #include "RichTextWidget.h" 00010 00011 class TitleDialog: public Dialog 00012 { 00013 Q_OBJECT 00014 public: 00015 TitleDialog(MainWin *mw, const char *name); 00016 void updateDialog(); 00017 public slots: 00018 void setLabel(Label *l) { title=l; rtw->setLabel(l); rtw->update(); } 00019 Label *getLabel() { return rtw->getLabel(); } 00020 int Apply() { return apply_clicked(); } 00021 private: 00022 Label *title; 00023 RichTextWidget *rtw; 00024 private slots: 00025 void ok_clicked(); 00026 int apply_clicked(); 00027 }; 00028 #endif //TITLEDIALOG_H