![]() |
IOT
0.5
I Only Think
|
00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- 00002 00003 /* IOT Copyright (C) 2010 CEG development team 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 00007 * as published by the Free Software Foundation. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * Authors: CEG <ceg@ionlythink.com>, http://www.ionlythink.com 00019 */ 00020 00021 #ifndef BOXSTYLE_H 00022 #define BOXSTYLE_H 00023 00024 #include <QString> 00025 00026 #include "IDomFactory.h" 00027 00037 class BoxStyle : public IDomFactory 00038 { 00039 public: 00040 BoxStyle(); 00041 BoxStyle(QDomElement const &); 00042 00043 float getOpacity() const; 00044 QString const & getImagePath() const; 00045 QString const & getText() const; 00046 QString const & getTextFont() const; 00047 int getTextFontSize() const; 00048 QString getTextColor() const; 00049 QString getFocusColor() const; 00050 QString getBlurColor() const; 00051 bool isRounded() const; 00052 00053 private: 00054 virtual void initializeFromXml(QDomElement const &); 00055 00056 private: 00057 bool _fromXML; 00058 float _opacity; 00059 QString _imagePath; 00060 QString _text; 00061 QString _textFont; 00062 int _textFontSize; 00063 QString _textColor; 00064 QString _focusColor; 00065 QString _blurColor; 00066 bool _isRounded; 00067 }; 00068 00069 #endif // BOXSTYLE_H