QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgscharacterselectordialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscharacterselectordialog.h - single font character selector dialog
3
4
---------------------
5
begin : November 2012
6
copyright : (C) 2012 by Larry Shaffer
7
email : larrys at dakcarto dot com
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSCHARACTERSELECTORDIALOG_H
18
#define QGSCHARACTERSELECTORDIALOG_H
19
20
#include "ui_qgscharacterselectdialogbase.h"
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsguiutils.h
"
25
26
#include <QChar>
27
#include <QDialog>
28
29
class
CharacterWidget
;
30
35
36
class
GUI_EXPORT
QgsCharacterSelectorDialog
:
public
QDialog,
private
Ui::QgsCharacterSelectorBase
37
{
38
Q_OBJECT
39
40
public
:
41
QgsCharacterSelectorDialog
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
42
43
public
slots:
44
50
QChar
selectCharacter
(
bool
*gotChar,
const
QFont &font,
const
QString &style, QChar initialSelection = QChar() );
51
52
private
slots:
53
void
setCharacter( QChar chr );
54
55
protected
:
56
QChar
mChar
;
57
CharacterWidget
*
mCharWidget
=
nullptr
;
58
};
59
60
#endif
CharacterWidget
A widget for displaying characters available in a preset font, and allowing users to select an indivi...
Definition
characterwidget.h:69
QgsCharacterSelectorDialog::mCharWidget
CharacterWidget * mCharWidget
Definition
qgscharacterselectordialog.h:57
QgsCharacterSelectorDialog::selectCharacter
QChar selectCharacter(bool *gotChar, const QFont &font, const QString &style, QChar initialSelection=QChar())
Opens the dialog modally and returns when the user has selected a character.
Definition
qgscharacterselectordialog.cpp:38
QgsCharacterSelectorDialog::QgsCharacterSelectorDialog
QgsCharacterSelectorDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
Definition
qgscharacterselectordialog.cpp:27
QgsCharacterSelectorDialog::mChar
QChar mChar
Definition
qgscharacterselectordialog.h:56
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsguiutils.h
Generated on
for QGIS API Documentation by
1.17.0