QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgscharacterselectdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscharacterselectdialog.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 QGSCHARACTERSELECTDIALOG_H
18 #define QGSCHARACTERSELECTDIALOG_H
19 
20 #include <QDialog>
21 #include <QChar>
22 #include "qgisgui.h"
23 #include "ui_qgscharacterselectdialogbase.h"
24 
25 class CharacterWidget;
26 
30 class GUI_EXPORT QgsCharacterSelectorDialog : public QDialog, private Ui::QgsCharacterSelectorBase
31 {
32  Q_OBJECT
33 
34  public:
35  QgsCharacterSelectorDialog( QWidget* parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
37 
38  public slots:
39  const QChar& selectCharacter( bool* gotChar, const QFont& font, const QString& style );
40 
41  private slots:
42  void setCharacter( const QChar& chr );
43 
44  protected:
45  QChar mChar;
47 };
48 
49 #endif