SGL
lib
gcolorchooser.h
1
/*
2
* File: gcolorchooser.h
3
* ---------------------
4
* This file defines the <code>GColorChooser</code> class which supports
5
* popping up graphical dialog boxes to select colors.
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 gcolorchooser.h to replace Java version
13
* @version 2018/07/29
14
* - initial version
15
*/
16
17
18
#ifndef _gcolorchooser_h
19
#define _gcolorchooser_h
20
21
#include <string>
22
#include <QWidget>
23
24
#include "gwindow.h"
25
32
class
GColorChooser
{
33
public
:
39
static
string
showDialog
(
const
string& title,
int
initialColor);
40
46
static
string
showDialog
(
GWindow
* parent,
const
string& title,
int
initialColor);
47
53
static
string
showDialog
(QWidget* parent,
const
string& title,
int
initialColor);
54
60
static
string
showDialog
(
const
string& title =
""
,
const
string& initialColor =
""
);
61
67
static
string
showDialog
(
GWindow
* parent,
const
string& title =
""
,
const
string& initialColor =
""
);
68
74
static
string
showDialog
(QWidget* parent,
const
string& title =
""
,
const
string& initialColor =
""
);
75
76
private
:
77
GColorChooser
();
// prevent construction
78
};
79
80
#endif // _gcolorchooser_h
GColorChooser::showDialog
static string showDialog(string title, int initialColor)
Pops up a color chooser dialog with the given top title text, with the given initial color selected...
Definition:
gcolorchooser.cpp:25
GColorChooser
The GColorChooser class contains static methods for popping up color-choosing dialog boxes that allow...
Definition:
gcolorchooser.h:32
GWindow
This class represents a graphics window that supports simple graphics.
Definition:
gwindow.h:98
Generated by
1.8.14