TableDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : TableDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr, thzs*gmx.net
00007     Description          : Column options dialog
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
00027  *                                                                         *
00028  ***************************************************************************/
00029 #ifndef TABLEDIALOG_H
00030 #define TABLEDIALOG_H
00031 
00032 #include "Table.h"
00033 
00034 class QPushButton;
00035 class QLineEdit;
00036 class QCheckBox;
00037 class QComboBox;
00038 class QLabel;
00039 class QTextEdit;
00040 class QSpinBox;
00041 
00043 class TableDialog : public QDialog
00044 {
00045     Q_OBJECT
00046 
00047 public:
00048     TableDialog(Table *t, QWidget* parent, const char* name = 0, bool modal = false, Qt::WFlags fl = 0 );
00049 
00050 private slots:
00051     void prevColumn();
00052     void nextColumn();
00053     void updateColumn(int);
00054     void changeColWidth(int width);
00055     void showPrecisionBox(int item);
00056     void updatePrecision(int prec);
00057     void setPlotDesignation(int i);
00058     void accept();
00059     void apply();
00060     void updateDisplay(int item);
00061     void enablePrecision(int f);
00062     void setNumericFormat(int type, int prec, bool allRightColumns);
00063 
00064 signals:
00065     void nameChanged(const QString&);
00066     void enumRightCols(bool);
00067     void changeWidth(const QString&, bool);
00068 
00069 private:
00070     void setDateTimeFormat(int type, const QString& format, bool allRightColumns);
00071     void setTextFormat(bool allRightColumns);
00072     void closeEvent( QCloseEvent *);
00073 
00074     Table * d_table;
00075 
00076     QPushButton* buttonOk;
00077     QPushButton* buttonCancel;
00078     QPushButton* buttonApply;
00079     QPushButton* buttonPrev;
00080     QPushButton* buttonNext;
00081     QLineEdit* colName;
00082     QCheckBox* enumerateAllBox;
00083     QCheckBox* applyToRightCols;
00084     QCheckBox* applyToAllBox;
00085     QComboBox* formatBox;
00086     QComboBox* displayBox;
00087     QComboBox* columnsBox;
00088     QSpinBox* colWidth, *precisionBox;
00089     QLabel *labelNumeric, *labelFormat;
00090     QTextEdit *comments;
00091     QCheckBox *boxShowTableComments;
00092 };
00093 
00094 #endif // TABLEDIALOG_H

Generated on Mon Oct 15 06:11:42 2007 for QtiPlot by  doxygen 1.5.3