Freeciv-3.3
Loading...
Searching...
No Matches
fonts.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__FONTS_H
15#define FC__FONTS_H
16
17// Qt
18#include <QMap>
19
20// gui-qt
21#include "listener.h"
22
23class QFont;
24
25namespace fonts
26{
27 const char * const default_font = "gui_qt_font_default";
28 const char * const notify_label = "gui_qt_font_notify_label";
29 const char * const help_label = "gui_qt_font_help_label";
30 const char * const help_text = "gui_qt_font_help_text";
31 const char * const chatline = "gui_qt_font_chatline";
32 const char * const city_names = "gui_qt_font_city_names";
33 const char * const city_productions = "gui_qt_font_city_productions";
34 const char * const reqtree_text = "gui_qt_font_reqtree_text";
35}
36
37
39{
41private:
44 explicit fc_font();
45public:
46 static fc_font *instance();
47 static void drop();
50 void init_fonts();
51 void release_fonts();
52 void get_mapfont_size();
55};
56
57void configure_fonts();
59 bool bold = false);
60
61#endif // FC__FONTS_H
static QString bold(QString text)
Definition citydlg.cpp:3988
int city_fontsize
Definition fonts.h:53
fc_font()
Definition fonts.cpp:34
static fc_font * m_instance
Definition fonts.h:43
Q_DISABLE_COPY(fc_font)
void init_fonts()
Definition fonts.cpp:77
static fc_font * instance()
Definition fonts.cpp:41
void set_font(QString name, QFont *qf)
Definition fonts.cpp:123
QFont * get_font(QString name)
Definition fonts.cpp:63
static void drop()
Definition fonts.cpp:51
void release_fonts()
Definition fonts.cpp:104
void get_mapfont_size()
Definition fonts.cpp:114
QMap< QString, QFont * > font_map
Definition fonts.h:42
int prod_fontsize
Definition fonts.h:54
char * incite_cost
Definition comments.c:76
QString configure_font(QString font_name, QStringList sl, int size, bool bold=false)
Definition fonts.cpp:217
void configure_fonts()
Definition fonts.cpp:154
const char * font_name
Definition gui_main_g.h:43
const char * name
Definition inputfile.c:127
Definition fonts.h:26
const char *const city_productions
Definition fonts.h:33
const char *const chatline
Definition fonts.h:31
const char *const default_font
Definition fonts.h:27
const char *const notify_label
Definition fonts.h:28
const char *const help_label
Definition fonts.h:29
const char *const city_names
Definition fonts.h:32
const char *const help_text
Definition fonts.h:30
const char *const reqtree_text
Definition fonts.h:34
size_t size
Definition specvec.h:72