Debian Codegraph @

HercPrinter/Stationery.h

raw symbols SCIP
1 /*
2 * File: Stationery.h
3 *
4 * Author: Jacob Dekel
5 * Created on: May 10, 2014
6 *
7 * Copyright (c) 2009-2014 Jacob Dekel
8 * $Id$
9 *
10 * This object represents the stationery used by the Hercules Studio printer
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 #ifndef STATIONERY_H
28 #define STATIONERY_H
29
30 #include "HerculesStudio.h"
31 #include <QString>
32
33 mk_shared_ptr(Stationery)
34
35 class Stationery
36 {
37 public:
38 Stationery(const QString& name, const QString& paperSize, const QString& size1, const QString& size2,
39 int topMargin, bool millimters, bool portrait, const QString& barsColor,
40 const QString& barsRGB, bool Decorated, bool tractorFeedHoles);
41 unsigned static int paperSizes();
42 static const char *paperSize(unsigned int i);
43 int *getBarsColor(int * fill);
44 int getBarsColorIndex();
45
46 static const char *mBarsColorNames[];
47
48 public: // TODO: getters/setters
49 QString mName;
50 QString mPaperSize;
51 QString mSize1;
52 QString mSize2;
53 int mTopMargin;
54 bool mMillimeters;
55 bool mPortrait;
56 QString mBarsColor;
57 QString mBarsRGB;
58 bool mDecorated;
59 bool mTractorFeedHoles;
60
61 };
62
63 #endif // STATIONERY_H