QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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
29class CharacterWidget;
30
35
36class 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;
58};
59
60#endif
A widget for displaying characters available in a preset font, and allowing users to select an indivi...
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.
QgsCharacterSelectorDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53