iiswinxptaskpanelscheme.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   Copyright: http://www.ii-system.com                                   *
00004  *   License:   LGPL                                                       *
00005  *                                                                         *
00006  ***************************************************************************/
00007 
00008 #include "iiswinxptaskpanelscheme.h"
00009 
00010 iisWinXPTaskPanelScheme* iisWinXPTaskPanelScheme::myDefaultXPScheme = 0;
00011 
00012 iisWinXPTaskPanelScheme::iisWinXPTaskPanelScheme(QObject *parent)
00013         : iisTaskPanelScheme(parent)
00014 {
00015         QLinearGradient panelBackgroundGrd(0,0, 0,300);
00016         panelBackgroundGrd.setColorAt(0, 0x7ba2e7);
00017         panelBackgroundGrd.setColorAt(1, 0x6375d6);
00018         panelBackground = panelBackgroundGrd;
00019 
00020         headerBackground = QBrush(0x225aca);
00021 
00022         headerBorder = QColor(0x225aca);
00023         headerSize = 25;
00024         headerAnimation = false;
00025 
00026         headerLabelScheme.text = QColor(0xffffff);
00027         headerLabelScheme.textOver = QColor(0x428eff);
00028         headerLabelScheme.iconSize = 22;
00029 
00030         headerButtonFold = QPixmap(":/Resources/headerButtonFold_XPBlue1.png");
00031         headerButtonFoldOver = QPixmap(":/Resources/headerButtonFoldOver_XPBlue1.png");
00032         headerButtonUnfold = QPixmap(":/Resources/headerButtonUnfold_XPBlue1.png");
00033         headerButtonUnfoldOver = QPixmap(":/Resources/headerButtonUnfoldOver_XPBlue1.png");
00034         headerButtonSize = QSize(17,17);
00035 
00036         groupBackground = QBrush(0xeff3ff); 
00037         groupBorder = QColor(0xffffff);
00038 
00039         taskLabelScheme.text = QColor(0x215dc6);
00040         taskLabelScheme.textOver = QColor(0x428eff);
00041 }
00042 
00043 iisWinXPTaskPanelScheme::~iisWinXPTaskPanelScheme()
00044 {
00045 
00046 }
00047 
00048 iisTaskPanelScheme* iisWinXPTaskPanelScheme::defaultScheme()    
00049 { 
00050         if (!myDefaultXPScheme)
00051                 myDefaultXPScheme = new iisWinXPTaskPanelScheme();
00052 
00053         return myDefaultXPScheme; 
00054 }
00055 
00056 
00057 
00058 iisWinXPTaskPanelScheme2* iisWinXPTaskPanelScheme2::myDefaultXPScheme = 0;
00059 
00060 iisWinXPTaskPanelScheme2::iisWinXPTaskPanelScheme2(QObject *parent)
00061         : iisTaskPanelScheme(parent)
00062 {
00063         QLinearGradient panelBackgroundGrd(0,0, 0,300);
00064         panelBackgroundGrd.setColorAt(0, 0x7ba2e7);
00065         panelBackgroundGrd.setColorAt(1, 0x6375d6);
00066         panelBackground = panelBackgroundGrd;
00067 
00068         QLinearGradient headerBackgroundGrd(0,0, 300,0);
00069         headerBackgroundGrd.setColorAt(0, 0xffffff);
00070         headerBackgroundGrd.setColorAt(1, 0xc6d3f7);
00071         headerBackground = headerBackgroundGrd;
00072 
00073         headerBorder = QPen(Qt::NoPen);
00074         headerSize = 25;
00075         headerAnimation = false;
00076 
00077         headerLabelScheme.text = QColor(0x215dc6);
00078         headerLabelScheme.textOver = QColor(0x428eff);
00079         headerLabelScheme.iconSize = 22;
00080 
00081         headerButtonFold = QPixmap(":/Resources/headerButtonFold_XPBlue2.png");
00082         headerButtonFoldOver = QPixmap(":/Resources/headerButtonFoldOver_XPBlue2.png");
00083         headerButtonUnfold = QPixmap(":/Resources/headerButtonUnfold_XPBlue2.png");
00084         headerButtonUnfoldOver = QPixmap(":/Resources/headerButtonUnfoldOver_XPBlue2.png");
00085         headerButtonSize = QSize(17,17);
00086 
00087         groupBackground = QBrush(0xd6dff7); 
00088         groupBorder = QColor(0xffffff);
00089 
00090         taskLabelScheme.text = QColor(0x215dc6);
00091         taskLabelScheme.textOver = QColor(0x428eff);
00092 }
00093 
00094 iisWinXPTaskPanelScheme2::~iisWinXPTaskPanelScheme2()
00095 {
00096 
00097 }
00098 
00099 iisTaskPanelScheme* iisWinXPTaskPanelScheme2::defaultScheme()   
00100 { 
00101         if (!myDefaultXPScheme)
00102                 myDefaultXPScheme = new iisWinXPTaskPanelScheme2();
00103 
00104         return myDefaultXPScheme; 
00105 }
00106 

Generated on Wed Nov 23 19:00:18 2011 for FreeCAD by  doxygen 1.6.1