2017-04-03 13:04:00 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/gui/symbology/characterwidget.h *
|
2017-04-03 13:04:00 +10:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
class CharacterWidget : QWidget
|
|
|
|
{
|
2017-04-03 13:04:00 +10:00
|
|
|
%Docstring
|
|
|
|
|
|
|
|
A widget for displaying characters available in a preset font, and allowing
|
|
|
|
users to select an individual character.
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
%TypeHeaderCode
|
2017-04-03 13:04:00 +10:00
|
|
|
#include "characterwidget.h"
|
2013-06-22 19:37:41 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-04-03 13:04:00 +10:00
|
|
|
|
2015-02-18 17:00:36 +11:00
|
|
|
CharacterWidget( QWidget *parent /TransferThis/ = 0 );
|
2017-04-03 13:04:00 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for CharacterWidget.
|
|
|
|
%End
|
|
|
|
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual QSize sizeHint() const;
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-04-03 13:04:00 +10:00
|
|
|
int columns() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the number of columns of characters shown in the widget.
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: int
|
2017-04-03 13:04:00 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
int squareSize() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the size (in pixels) of the square used to render each character preview.
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: int
|
2017-04-03 13:04:00 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QChar character() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the currently selected character in the widget.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: setCharacter()
|
2017-04-03 13:04:00 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QChar
|
2017-04-03 13:04:00 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QFont font() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the font shown in the widget
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: setFont()
|
2017-04-03 13:04:00 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QFont
|
2017-04-03 13:04:00 +10:00
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
public slots:
|
2017-04-03 13:04:00 +10:00
|
|
|
|
|
|
|
void setFont( const QFont &font );
|
|
|
|
%Docstring
|
2017-04-17 13:49:59 +10:00
|
|
|
Sets the ``font`` to show in the widget.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: font()
|
2017-04-03 13:04:00 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setFontSize( double fontSize );
|
|
|
|
%Docstring
|
|
|
|
Sets the font size (in points) to render in the widget.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setFontStyle( const QString &fontStyle );
|
|
|
|
%Docstring
|
|
|
|
Sets the font style to show in the widget.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
void updateFontMerging( bool enable );
|
2017-04-03 13:04:00 +10:00
|
|
|
|
|
|
|
void setColumns( int columns );
|
|
|
|
%Docstring
|
|
|
|
Sets the number of columns of characters to show in the widget.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2016-02-02 19:46:18 +11:00
|
|
|
void setCharacter( QChar character );
|
2017-04-03 13:04:00 +10:00
|
|
|
%Docstring
|
2017-04-17 13:49:59 +10:00
|
|
|
Sets the currently selected ``character`` in the widget.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: character()
|
|
|
|
.. seealso:: characterSelected()
|
2017-04-03 13:04:00 +10:00
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
signals:
|
2017-04-03 13:04:00 +10:00
|
|
|
|
2016-02-02 19:46:18 +11:00
|
|
|
void characterSelected( QChar character );
|
2017-04-03 13:04:00 +10:00
|
|
|
%Docstring
|
|
|
|
Emitted when a character is selected in the widget.
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
protected:
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual void mouseMoveEvent( QMouseEvent *event );
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual void mousePressEvent( QMouseEvent *event );
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual void paintEvent( QPaintEvent *event );
|
2017-04-03 13:04:00 +10:00
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|
|
|
|
|
2017-04-03 13:04:00 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/gui/symbology/characterwidget.h *
|
2017-04-03 13:04:00 +10:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|