00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqTickMarkTab.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 tick marks placement. 00008 // 00009 // Version: $Id: TxqTickMarkTab.h,v 1.3 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_TICK_MARK_TAB_H 00018 #define TXQ_TICK_MARK_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 #include <qcolordialog.h> 00035 00047 class TxqTickMarkTab : public QGroupBox 00048 { 00049 Q_OBJECT 00050 00051 public: 00052 00061 TxqTickMarkTab( QWidget *parent, const QString& tle, const QColor& col , 00062 bool inside, bool outside); 00063 00067 virtual ~TxqTickMarkTab(); 00068 00076 void setData(const QString& tle, const QColor& col, bool inside, bool outside); 00077 00082 bool getInsideTick() {return insideBox->isChecked();} 00083 00088 bool getOutsideTick() {return outsideBox->isChecked();} 00089 00094 QColor getTickLabelColor() {return color;} 00095 00096 protected: 00097 00098 protected slots: 00099 00104 void changeColor(bool on); 00105 00106 00107 private: 00108 00112 QLabel *title; 00113 00117 QColor color; 00118 00122 bool insideMark; 00123 00127 bool outsideMark; 00128 00132 QCheckBox *outsideBox; 00133 00137 QCheckBox *insideBox; 00138 00142 QCheckBox *colorBox; 00143 00144 }; 00145 00146 #endif
Copyright Tech-X Corporation, all rights reserved.