| 1 | /* |
| 2 | * File: FontPreferences.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Nov 9, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This class manages font preferences for one object |
| 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 FONTPREFERENCES_H_ |
| 28 | #define FONTPREFERENCES_H_cxx . . $ `HercStudio/FontPreferences.h:28:9`! |
| 29 | |
| 30 | #include <string> |
| 31 | |
| 32 | class QFilecxx . . $ QFile#; |
| 33 | |
| 34 | class FontPreferencescxx . . $ FontPreferences# { |
| 35 | public: |
| 36 | enum variationscxx . . $ FontPreferences#variations# |
| 37 | { |
| 38 | Boldcxx . . $ FontPreferences#Bold. = 128, |
| 39 | Italiccxx . . $ FontPreferences#Italic. = 64 |
| 40 | }; |
| 41 | FontPreferencescxx . . $ FontPreferences#FontPreferences(8d4ab0a187bf9331).(stdcxx . . $ std/::stringcxx . . $ std/string# line); |
| 42 | virtual ~cxx . . $ FontPreferences#`~FontPreferences`(49f6e7a06ebc5aa8).FontPreferencescxx . . $ FontPreferences#(); |
| 43 | |
| 44 | void setFontNamecxx . . $ FontPreferences#setFontName(9c546c94e5fcce4e).( const stdcxx . . $ std/::stringcxx . . $ std/string#& fontName) ; |
| 45 | stdcxx . . $ std/::stringcxx . . $ std/string#& fontNamecxx . . $ FontPreferences#fontName(75da78375bc7a3dd). () ; |
| 46 | void setFontSizecxx . . $ FontPreferences#setFontSize(d4f767463ce0a6b3).( int size ); |
| 47 | int fontSizecxx . . $ FontPreferences#fontSize(b126dc7c1de90089).(); |
| 48 | void setFontBoldnesscxx . . $ FontPreferences#setFontBoldness(b45ddcbc8423892c).( bool isBold ); |
| 49 | void setFontItaliccxx . . $ FontPreferences#setFontItalic(b45ddcbc8423892c).( bool isItalic ); |
| 50 | bool fontIsBoldcxx . . $ FontPreferences#fontIsBold(c9857a73d68e59ba).(); |
| 51 | bool fontIsItaliccxx . . $ FontPreferences#fontIsItalic(c9857a73d68e59ba).(); |
| 52 | int fontVariationcxx . . $ FontPreferences#fontVariation(b126dc7c1de90089).(); |
| 53 | stdcxx . . $ std/::stringcxx . . $ std/string# prefLinecxx . . $ FontPreferences#prefLine(efd28698952f529a).(); |
| 54 | void setPrefLinecxx . . $ FontPreferences#setPrefLine(8d4ab0a187bf9331).(stdcxx . . $ std/::stringcxx . . $ std/string# line); |
| 55 | |
| 56 | private: |
| 57 | stdcxx . . $ std/::stringcxx . . $ std/string# mLinecxx . . $ FontPreferences#mLine.; |
| 58 | stdcxx . . $ std/::stringcxx . . $ std/string# mNamecxx . . $ FontPreferences#mName.; |
| 59 | int mSizecxx . . $ FontPreferences#mSize.; |
| 60 | bool mBoldcxx . . $ FontPreferences#mBold.; |
| 61 | bool mItaliccxx . . $ FontPreferences#mItalic.; |
| 62 | }; |
| 63 | |
| 64 | #endif /* FONTPREFERENCES_H_ */ |