00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqTitleTab.h 00004 // 00005 // Purpose: Class definition of a QGroupBox to create a widget 00006 // to be used as a Tab element in a Dialog 00007 // to edit titles 00008 // 00009 // Version: $Id: TxqTitleTab.h,v 1.4 2001/10/10 17:29:49 kgl Exp $ 00010 // 00011 // Copyright (c) 2000 by Tech-X Corporation. All rights reserved. 00012 // 00013 // Author: Kelly G. Luetkemeyer 00014 // 00015 //-------------------------------------------------------------------- 00016 00017 #ifndef TXQ_TITLE_TAB_H 00018 #define TXQ_TITLE_TAB_H 00019 00020 // Qt includes 00021 #include <qstring.h> 00022 #include <qfileinfo.h> 00023 #include <qvbox.h> 00024 #include <qlabel.h> 00025 #include <qlineedit.h> 00026 #include <qdatetime.h> 00027 #include <qbuttongroup.h> 00028 #include <qcheckbox.h> 00029 #include <qlistbox.h> 00030 #include <qvalidator.h> 00031 #include <qwidget.h> 00032 #include <qlayout.h> 00033 #include <qradiobutton.h> 00034 00045 class TxqTitleTab : public QGroupBox 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 00057 TxqTitleTab( QWidget *parent, const QString& tle, const QColor& col ); 00058 00062 virtual ~TxqTitleTab(); 00063 00069 void setData(const QString& tle, const QColor& col); 00070 00075 QString getTitle(); 00076 00081 QColor getTitleColor(); 00082 00083 protected: 00084 00085 protected slots: 00086 00091 void changeColor(bool on); 00092 00093 private: 00094 00098 QLineEdit *editor; 00099 00103 QLabel *title; 00104 00108 QCheckBox *colorBox; 00109 00113 QColor color; 00114 00115 }; 00116 00117 #endif
Copyright Tech-X Corporation, all rights reserved.