2008-08-14 22:51:08 +00:00
|
|
|
/*
|
2011-03-02 00:16:40 +00:00
|
|
|
Copyright 2006-2011 Xavier Guerrin
|
2008-08-14 22:51:08 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech 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.
|
|
|
|
|
|
|
|
QElectroTech 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 QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef BORDER_PROPERTIES_WIDGET_H
|
|
|
|
#define BORDER_PROPERTIES_WIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "borderproperties.h"
|
2008-08-15 12:46:22 +00:00
|
|
|
class QCheckBox;
|
2008-08-14 22:51:08 +00:00
|
|
|
class QSpinBox;
|
|
|
|
/**
|
|
|
|
Cette classe represente un widget permettant d'editer les dimensions et les
|
|
|
|
options d'affichage d'un schema, cartouche non inclus.
|
2010-12-20 02:45:36 +00:00
|
|
|
@see TitleBlockPropertiesWidget
|
2008-08-14 22:51:08 +00:00
|
|
|
*/
|
|
|
|
class BorderPropertiesWidget : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
// constructeurs, destructeur
|
|
|
|
public:
|
|
|
|
BorderPropertiesWidget(const BorderProperties &, QWidget * = 0);
|
|
|
|
virtual ~BorderPropertiesWidget();
|
|
|
|
private:
|
|
|
|
BorderPropertiesWidget(const BorderPropertiesWidget &);
|
|
|
|
|
|
|
|
// methodes
|
|
|
|
public:
|
|
|
|
const BorderProperties &borderProperties();
|
2010-02-28 16:13:45 +00:00
|
|
|
bool isReadOnly() const;
|
|
|
|
void setReadOnly(bool);
|
2008-08-14 22:51:08 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void setEditedBorder(const BorderProperties &);
|
|
|
|
void build();
|
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
BorderProperties border_; ///< Proprietes editees
|
|
|
|
QSpinBox *columns_count; ///< Widget d'edition du nombre de colonnes
|
|
|
|
QSpinBox *columns_width; ///< Widget d'edition de la largeur des colonnes
|
2008-08-15 12:46:22 +00:00
|
|
|
QCheckBox *display_columns; ///< Case a cocher pour afficher ou non les entetes des colonnes
|
2008-08-14 22:51:08 +00:00
|
|
|
QSpinBox *rows_count; ///< Widget d'edition du nombre de lignes
|
|
|
|
QSpinBox *rows_height; ///< Widget d'edition de la hauteur des lignes
|
2008-08-15 12:46:22 +00:00
|
|
|
QCheckBox *display_rows; ///< Case a cocher pour afficher ou non les entetes des lignes
|
2008-08-14 22:51:08 +00:00
|
|
|
};
|
|
|
|
#endif
|