QGIS API Documentation
3.40.0-Bratislava (b56115d8743)
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 <QDialog>
21
#include <QChar>
22
#include "
qgsguiutils.h
"
23
#include "ui_qgscharacterselectdialogbase.h"
24
#include "qgis_gui.h"
25
#include "
qgis_sip.h
"
26
27
class
CharacterWidget
;
28
34
class
GUI_EXPORT
QgsCharacterSelectorDialog
:
public
QDialog,
private
Ui::QgsCharacterSelectorBase
35
{
36
Q_OBJECT
37
38
public
:
39
QgsCharacterSelectorDialog
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
40
41
public
slots:
42
48
QChar selectCharacter(
bool
*gotChar,
const
QFont &font,
const
QString &style, QChar initialSelection = QChar() );
49
50
private
slots:
51
void
setCharacter( QChar chr );
52
53
protected
:
54
QChar
mChar
;
55
CharacterWidget
*mCharWidget =
nullptr
;
56
};
57
58
#endif
CharacterWidget
A widget for displaying characters available in a preset font, and allowing users to select an indivi...
Definition
characterwidget.h:70
QgsCharacterSelectorDialog
A dialog for selecting a single character from a single font.
Definition
qgscharacterselectordialog.h:35
QgsCharacterSelectorDialog::mChar
QChar mChar
Definition
qgscharacterselectordialog.h:54
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
qgsguiutils.h
Generated on Mon Oct 28 2024 22:06:03 for QGIS API Documentation by
1.9.8