QFontSet.h

00001 /*
00002  * @(#)QFontSet.h  0.2.0 / 2007-10-09
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef QFONTSET_H
00010 #define QFONTSET_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- QFontSet Class.                                                          -*/
00016 /*^**************************************************************************^*/
00017 
00024 class JAVAQX_EXPORT QFontSet
00025 {
00026 public:
00027   QFontSet();
00028   QFontSet(const QFont &defaultFont,
00029            const QFont &fixedFont = QFont("Courier", 9));
00030   QFontSet(const QFontSet &fontSet);
00031 public:
00032   const QFont &defaultFont() const;
00033   void setDefaultFont(const QFont &font);
00034   const QFont &fixedFont() const;
00035   void setFixedFont(const QFont &font);
00036   const QFont &componentFont() const;
00037   void setComponentFont(const QFont &font);
00038   const QFont &buttonFont() const;
00039   void setButtonFont(const QFont &font);
00040   const QFont &menuFont() const;
00041   void setMenuFont(const QFont &font);
00042   const QFont &menuBarFont() const;
00043   void setMenuBarFont(const QFont &font);
00044   const QFont &textFont() const;
00045   void setTextFont(const QFont &font);
00046   const QFont &toolTipFont() const;
00047   void setToolTipFont(const QFont &font);
00048 private:
00049   QFont m_defaultFont;
00050   QFont m_fixedFont;
00051   QFont m_componentFont;
00052   QFont m_buttonFont;
00053   QFont m_menuFont;
00054   QFont m_menuBarFont;
00055   QFont m_textFont;
00056   QFont m_toolTipFont;
00057 };
00058 
00059 #endif // QFONTSET_H
00060 
00061 /*^*****************************************************************************
00062   File History:
00063 
00064  - 2007-10-09 12:16:07 Slobodan
00065    Initial version
00066 
00067 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.