Skip to content

Commit

Permalink
missing bindings for user input tool bar
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 20, 2015
1 parent 57d21c8 commit 42f0993
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/gui/qgisinterface.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/app/qgisappinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/app/qgisappinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions src/gui/qgisinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 42f0993

Please sign in to comment.