missing bindings for user input tool bar

This commit is contained in:
Denis Rouzaud 2015-05-20 08:17:39 +02:00
parent 57d21c8383
commit 42f0993c32
5 changed files with 15 additions and 1 deletions

View File

@ -165,6 +165,9 @@ class QgisInterface : QObject
/** Return the message bar of the main app */
virtual QgsMessageBar * messageBar() = 0;
/** Adds a widget to the user input tool bar.*/
virtual void addUserInputWidget( QWidget* widget ) = 0;
/** Return mainwindows / composer views of running composer instances (currently only one) */
virtual QList<QgsComposerView*> activeComposers() = 0;

View File

@ -195,7 +195,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
/** Return the messageBar object which allows displaying unobtrusive messages to the user.*/
QgsMessageBar *messageBar();
/** Adds a widget to the user input tool br.*/
/** Adds a widget to the user input tool bar.*/
void addUserInputWidget( QWidget* widget );
//! Set theme (icons)

View File

@ -321,6 +321,11 @@ QgsMessageBar * QgisAppInterface::messageBar()
return qgis->messageBar();
}
void QgisAppInterface::addUserInputWidget( QWidget *widget )
{
qgis->addUserInputWidget( widget );
}
QList<QgsComposerView*> QgisAppInterface::activeComposers()
{
QList<QgsComposerView*> composerViewList;

View File

@ -177,6 +177,9 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
QgsMessageBar * messageBar() override;
/** Adds a widget to the user input tool bar.*/
void addUserInputWidget( QWidget* widget ) override;
// ### QGIS 3: return QgsComposer*, not QgsComposerView*
QList<QgsComposerView*> activeComposers() override;

View File

@ -211,6 +211,9 @@ class GUI_EXPORT QgisInterface : public QObject
/** Return the message bar of the main app */
virtual QgsMessageBar * messageBar() = 0;
/** Adds a widget to the user input tool bar.*/
virtual void addUserInputWidget( QWidget* widget ) = 0;
/** Return mainwindows / composer views of running composer instances (currently only one) */
virtual QList<QgsComposerView*> activeComposers() = 0;