mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-20 02:49:59 +01:00
Changed every occurence in the code of the "inset" term to "title block".
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1132 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
58
sources/titleblockproperties.h
Normal file
58
sources/titleblockproperties.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright 2006-2010 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 TITLEBLOCK_PROPERTIES_H
|
||||
#define TITLEBLOCK_PROPERTIES_H
|
||||
#include <QtCore>
|
||||
#include <QtXml>
|
||||
/**
|
||||
Cette classe est un conteneur pour les proprietes d'un cartouche de schema
|
||||
: titre, auteur, date, nom de fichier et folio
|
||||
*/
|
||||
class TitleBlockProperties {
|
||||
public:
|
||||
TitleBlockProperties();
|
||||
virtual ~TitleBlockProperties();
|
||||
/// Specifie comment gerer la date
|
||||
enum DateManagement {
|
||||
UseDateValue, ///< utilise l'attribut date
|
||||
CurrentDate ///< utilise la date courante
|
||||
};
|
||||
|
||||
bool operator==(const TitleBlockProperties &);
|
||||
bool operator!=(const TitleBlockProperties &);
|
||||
|
||||
void toXml(QDomElement &) const;
|
||||
void fromXml(QDomElement &);
|
||||
void toSettings(QSettings &, const QString & = QString()) const;
|
||||
void fromSettings(QSettings &, const QString & = QString());
|
||||
|
||||
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
|
||||
|
||||
private:
|
||||
QString exportDate() const;
|
||||
void setDateFromString(const QString &);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user