File indexing completed on 2024-12-22 04:17:20

0001 /*
0002     Keeps track of information relevant to label creation.
0003     Copyright (C) 2011  Barth Netterfield netterfield@astro.utoronto.ca
0004 
0005     This program is free software; you can redistribute it and/or modify
0006     it under the terms of the GNU General Public License as published by
0007     the Free Software Foundation; either version 2 of the License, or
0008     (at your option) any later version.
0009 
0010     This program is distributed in the hope that it will be useful,
0011     but WITHOUT ANY WARRANTY; without even the implied warranty of
0012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013     GNU General Public License for more details.
0014 
0015     You should have received a copy of the GNU General Public License along
0016     with this program; if not, write to the Free Software Foundation, Inc.,
0017     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0018 */
0019 
0020 #ifndef LABELINFO_H
0021 #define LABELINFO_H
0022 
0023 #include <QString>
0024 
0025 #include "kst_export.h"
0026 
0027 
0028 namespace Kst {
0029 
0030 struct KSTCORE_EXPORT LabelInfo
0031 {
0032   LabelInfo() : name(QString()), quantity(QString()), units(QString()), file(QString()) {}
0033   bool operator==(const LabelInfo &l) const { return (l.name==name) && (l.quantity==quantity) && (l.units==units) && (l.file==file); }
0034   bool operator!=(const LabelInfo &l) const { return !(*this==l); }
0035   QString name;
0036   QString quantity;
0037   QString units;
0038   QString file;
0039   QString escapedFile();
0040   QString singleRenderItemLabel() const;
0041 };
0042 
0043 }
0044 
0045 #endif // LABELINFO_H