QGIS/python/gui/qgscheckablecombobox.sip

154 lines
3.7 KiB
Plaintext
Raw Normal View History

2017-04-07 11:01:38 +03:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscheckablecombobox.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-03-22 09:43:52 +02:00
class QgsCheckableComboBox : QComboBox
{
2017-04-07 11:01:38 +03:00
2017-03-22 09:43:52 +02:00
%TypeHeaderCode
2017-04-07 11:01:38 +03:00
#include "qgscheckablecombobox.h"
2017-03-22 09:43:52 +02:00
%End
public:
QgsCheckableComboBox( QWidget *parent /TransferThis/ = 0 );
2017-04-07 11:01:38 +03:00
%Docstring
Constructor for QgsCheckableComboBox.
%End
2017-03-22 09:43:52 +02:00
QString separator() const;
2017-04-07 11:01:38 +03:00
%Docstring
Returns separator used to separate items in the display text.
2017-04-07 11:06:24 +03:00
\see setSeparator()
2017-04-08 10:25:00 +03:00
:rtype: str
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
void setSeparator( const QString &separator );
2017-04-07 11:01:38 +03:00
%Docstring
Set separator used to separate items in the display text.
2017-04-07 11:06:24 +03:00
\param separator separator to use
\see separator()
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
QString defaultText() const;
2017-04-07 11:01:38 +03:00
%Docstring
Returns default text which will be displayed in the widget
when no items selected.
2017-04-07 11:06:24 +03:00
\see setDefaultText()
2017-04-08 10:25:00 +03:00
:rtype: str
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
void setDefaultText( const QString &text );
2017-04-07 11:01:38 +03:00
%Docstring
Set default text which will be displayed in the widget when
no items selected.
2017-04-07 11:06:24 +03:00
\param text default text
\see defaultText()
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
QStringList checkedItems() const;
2017-04-07 11:01:38 +03:00
%Docstring
Returns currently checked items.
2017-04-07 11:06:24 +03:00
\see setCheckedItems()
2017-04-08 10:25:00 +03:00
:rtype: list of str
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
Qt::CheckState itemCheckState( int index ) const;
2017-04-07 11:01:38 +03:00
%Docstring
Returns the checked state of the item identified by index
2017-04-07 11:06:24 +03:00
\param index item index
\see setItemCheckState()
\see toggleItemCheckState()
2017-04-08 10:25:00 +03:00
:rtype: Qt.CheckState
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
void setItemCheckState( int index, Qt::CheckState state );
2017-04-07 11:01:38 +03:00
%Docstring
Sets the item check state to state
2017-04-07 11:06:24 +03:00
\param index item index
\param state check state
\see itemCheckState()
\see toggleItemCheckState()
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
void toggleItemCheckState( int index );
2017-04-07 11:01:38 +03:00
%Docstring
Toggles the item check state
2017-04-07 11:06:24 +03:00
\param index item index
\see itemCheckState()
\see setItemCheckState()
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
virtual void hidePopup();
2017-04-07 11:01:38 +03:00
%Docstring
Hides the list of items in the combobox if it is currently
visible and resets the internal state.
%End
2017-03-22 09:43:52 +02:00
virtual bool eventFilter( QObject *object, QEvent *event );
2017-04-07 11:01:38 +03:00
%Docstring
Filters events to enable context menu
2017-04-08 10:25:00 +03:00
:rtype: bool
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
signals:
void checkedItemsChanged( const QStringList &items );
2017-04-07 11:01:38 +03:00
%Docstring
This signal is emitted whenever the checked items list changed.
%End
2017-03-22 09:43:52 +02:00
public slots:
void setCheckedItems( const QStringList &items );
2017-04-07 11:01:38 +03:00
%Docstring
Set items which should be checked/selected.
2017-04-07 11:06:24 +03:00
\param items items to select
\see checkedItems()
2017-04-07 11:01:38 +03:00
%End
2017-03-22 09:43:52 +02:00
protected:
2017-04-07 11:01:38 +03:00
2017-03-22 09:43:52 +02:00
virtual void resizeEvent( QResizeEvent *event );
2017-04-07 11:01:38 +03:00
%Docstring
Handler for widget resizing
%End
protected slots:
2017-04-07 11:01:38 +03:00
void showContextMenu( const QPoint &pos );
2017-04-07 11:01:38 +03:00
%Docstring
Display context menu which allows to select/deselect
all items at once.
%End
void selectAllOptions();
2017-04-07 11:01:38 +03:00
%Docstring
Selects all items.
%End
void deselectAllOptions();
2017-04-07 11:01:38 +03:00
%Docstring
Removes selection from all items.
%End
2017-03-22 09:43:52 +02:00
};
2017-04-07 11:01:38 +03:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscheckablecombobox.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/