49 lines
1.7 KiB
C
Raw Normal View History

/*
Copyright 2006-2008 Xavier Guerrin
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 INSET_PROPERTIES_H
#define INSET_PROPERTIES_H
#include <QDate>
#include <QString>
/**
Cette classe est un conteneur pour les proprietes d'un cartouche de schema
: titre, auteur, date, nom de fichier et folio
*/
class InsetProperties {
public:
InsetProperties();
virtual ~InsetProperties();
/// Specifie comment gerer la date
enum DateManagement {
UseDateValue, ///< utilise l'attribut date
CurrentDate ///< utilise la date courante
};
bool operator==(const InsetProperties &);
bool operator!=(const InsetProperties &);
QDate finalDate() const ;
// attributs
QString title; ///< Titre affiche par le cartouche
QString author; ///< Auteur affiche par le cartouche
QDate date; ///< Date affichee par le cartouche ; si la date est nulle, le champ reste vide
QString filename; ///< Nom de fichier affiche par le cartouche
QString folio; ///< Folio affiche par le cartouche
DateManagement useDate; ///< Indique s'il faut utiliser ou non l'attribut date
};
#endif