QGIS API Documentation  master-3f58142
src/gui/qgscharacterselectdialog.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgscharacterselectdialog.h - single font character selector dialog
00003 
00004     ---------------------
00005     begin                : November 2012
00006     copyright            : (C) 2012 by Larry Shaffer
00007     email                : larrys at dakcarto dot com
00008  ***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef QGSCHARACTERSELECTDIALOG_H
00018 #define QGSCHARACTERSELECTDIALOG_H
00019 
00020 #include <QDialog>
00021 #include <QChar>
00022 #include "qgisgui.h"
00023 #include "ui_qgscharacterselectdialogbase.h"
00024 
00025 class CharacterWidget;
00026 
00030 class GUI_EXPORT QgsCharacterSelectorDialog : public QDialog, private Ui::QgsCharacterSelectorBase
00031 {
00032     Q_OBJECT
00033 
00034   public:
00035     QgsCharacterSelectorDialog( QWidget* parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags );
00036     ~QgsCharacterSelectorDialog();
00037 
00038   public slots:
00039     const QChar& selectCharacter( bool* gotChar, const QFont& font, const QString& style );
00040 
00041   private slots:
00042     void setCharacter( const QChar& chr );
00043 
00044   protected:
00045     QChar mChar;
00046     CharacterWidget* mCharWidget;
00047 };
00048 
00049 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines