TableDialog.h
Go to the documentation of this file.
/***************************************************************************
File : TableDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 - 2009 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Column options dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef TABLEDIALOG_H
#define TABLEDIALOG_H
#include "Table.h"
#include <QDialog>
class QPushButton;
class QLineEdit;
class QCheckBox;
class QComboBox;
class QLabel;
class QTextEdit;
class QSpinBox;
class TableDialog : public QDialog
{
Q_OBJECT
public:
TableDialog(Table *t, QWidget* parent, Qt::WFlags fl = 0 );
private slots:
void prevColumn();
void nextColumn();
void updateColumn(int);
void setColumnWidth(int width);
void showPrecisionBox(int item);
void updatePrecision(int prec);
void setPlotDesignation(int i);
void accept();
void apply();
void updateDisplay(int item);
void setNumericFormat(int type, int prec, bool allRightColumns);
void setDayFormat(const QString& format, bool allRightColumns);
void setMonthFormat(const QString& format, bool allRightColumns);
signals:
void nameChanged(const QString&);
void enumRightCols(bool);
void changeWidth(const QString&, bool);
private:
void setDateTimeFormat(int type, const QString& format, bool allRightColumns);
void setTextFormat(bool allRightColumns);
void closeEvent( QCloseEvent *);
Table * d_table;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonApply;
QPushButton* buttonPrev;
QPushButton* buttonNext;
QLineEdit* colName;
QCheckBox* enumerateAllBox;
QCheckBox* applyToRightCols;
QCheckBox* applyToAllBox;
QComboBox* formatBox;
QComboBox* displayBox;
QComboBox* columnsBox;
QSpinBox* colWidth, *precisionBox;
QLabel *labelNumeric, *labelFormat;
QTextEdit *comments;
QCheckBox *boxShowTableComments, *boxReadOnly, *boxHideColumn;
};
#endif // TABLEDIALOG_H
TableDialog::labelFormat
QLabel * labelFormat
Definition: TableDialog.h:91
TableDialog::changeWidth
void changeWidth(const QString &, bool)
TableDialog::updatePrecision
void updatePrecision(int prec)
Definition: TableDialog.cpp:397
TableDialog::displayBox
QComboBox * displayBox
Definition: TableDialog.h:88
TableDialog::boxHideColumn
QCheckBox * boxHideColumn
Definition: TableDialog.h:93
TableDialog::prevColumn
void prevColumn()
Definition: TableDialog.cpp:203
TableDialog::updateDisplay
void updateDisplay(int item)
Definition: TableDialog.cpp:402
TableDialog::labelNumeric
QLabel * labelNumeric
Definition: TableDialog.h:91
TableDialog::apply
void apply()
Definition: TableDialog.cpp:293
TableDialog::buttonApply
QPushButton * buttonApply
Definition: TableDialog.h:80
TableDialog::buttonNext
QPushButton * buttonNext
Definition: TableDialog.h:82
TableDialog::setDayFormat
void setDayFormat(const QString &format, bool allRightColumns)
Definition: TableDialog.cpp:546
TableDialog::accept
void accept()
Definition: TableDialog.cpp:197
TableDialog::enumRightCols
void enumRightCols(bool)
TableDialog::nameChanged
void nameChanged(const QString &)
TableDialog::setTextFormat
void setTextFormat(bool allRightColumns)
Definition: TableDialog.cpp:536
TableDialog::TableDialog
TableDialog(Table *t, QWidget *parent, Qt::WFlags fl=0)
Definition: TableDialog.cpp:46
TableDialog::buttonCancel
QPushButton * buttonCancel
Definition: TableDialog.h:79
TableDialog::buttonOk
QPushButton * buttonOk
Definition: TableDialog.h:78
TableDialog::comments
QTextEdit * comments
Definition: TableDialog.h:92
TableDialog::setDateTimeFormat
void setDateTimeFormat(int type, const QString &format, bool allRightColumns)
Definition: TableDialog.cpp:490
TableDialog::showPrecisionBox
void showPrecisionBox(int item)
Definition: TableDialog.cpp:375
TableDialog::setColumnWidth
void setColumnWidth(int width)
Definition: TableDialog.cpp:287
TableDialog::applyToAllBox
QCheckBox * applyToAllBox
Definition: TableDialog.h:86
TableDialog::boxReadOnly
QCheckBox * boxReadOnly
Definition: TableDialog.h:93
TableDialog::updateColumn
void updateColumn(int)
Definition: TableDialog.cpp:217
TableDialog::d_table
Table * d_table
Definition: TableDialog.h:76
TableDialog::buttonPrev
QPushButton * buttonPrev
Definition: TableDialog.h:81
TableDialog::nextColumn
void nextColumn()
Definition: TableDialog.cpp:210
TableDialog::columnsBox
QComboBox * columnsBox
Definition: TableDialog.h:89
TableDialog::formatBox
QComboBox * formatBox
Definition: TableDialog.h:87
TableDialog::applyToRightCols
QCheckBox * applyToRightCols
Definition: TableDialog.h:85
Table.h
TableDialog::precisionBox
QSpinBox * precisionBox
Definition: TableDialog.h:90
TableDialog::setMonthFormat
void setMonthFormat(const QString &format, bool allRightColumns)
Definition: TableDialog.cpp:559
TableDialog::setNumericFormat
void setNumericFormat(int type, int prec, bool allRightColumns)
Definition: TableDialog.cpp:524
TableDialog
Column options dialog.
Definition: TableDialog.h:44
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
TableDialog::boxShowTableComments
QCheckBox * boxShowTableComments
Definition: TableDialog.h:93
TableDialog::colName
QLineEdit * colName
Definition: TableDialog.h:83
TableDialog::enumerateAllBox
QCheckBox * enumerateAllBox
Definition: TableDialog.h:84
TableDialog::setPlotDesignation
void setPlotDesignation(int i)
Definition: TableDialog.cpp:364
TableDialog::closeEvent
void closeEvent(QCloseEvent *)
Definition: TableDialog.cpp:358
TableDialog::colWidth
QSpinBox * colWidth
Definition: TableDialog.h:90