SGL
lib
gfontchooser.h
1
/*
2
* File: gfontchooser.h
3
* ----------------------
4
* This file defines the <code>GFontChooser</code> class which supports
5
* popping up graphical dialog boxes to select fonts.
6
*
7
* @author Marty Stepp
8
* @version 2018/09/07
9
* - added doc comments for new documentation generation
10
* - added overloads that accept GWindow* parent
11
* @version 2018/08/23
12
* - renamed to gfontchooser.h to replace Java version
13
* @version 2018/07/29
14
* - initial version
15
*/
16
17
18
#ifndef _gfontchooser_h
19
#define _gfontchooser_h
20
21
#include <string>
22
#include <QWidget>
23
24
#include "gwindow.h"
25
37
class
GFontChooser
{
38
public
:
45
static
string
showDialog
(
const
string& title =
""
,
const
string& initialFont =
""
);
46
54
static
string
showDialog
(
GWindow
* parent,
const
string& title =
""
,
const
string& initialFont =
""
);
55
63
static
string
showDialog
(QWidget* parent,
const
string& title =
""
,
const
string& initialFont =
""
);
64
65
private
:
66
GFontChooser
();
// prevent construction
67
};
68
69
#endif // _gfontchooser_h
GFontChooser
The GFontChooser class contains static methods for popping up font-choosing dialog boxes that allow t...
Definition:
gfontchooser.h:37
GFontChooser::showDialog
static string showDialog(string title="", string initialFont="")
Pops up a font chooser dialog with the given top title text and the given initially selected font...
Definition:
gfontchooser.cpp:25
GWindow
This class represents a graphics window that supports simple graphics.
Definition:
gwindow.h:98
Generated by
1.8.14