Skip to content

Commit

Permalink
added context help button to attribute display dialog
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6092 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Nov 16, 2006
1 parent 31a7127 commit 99c3393
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/gui/qgsattributetabledisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "qgssearchtreenode.h"
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"
#include "qgscontexthelp.h"

#include <QMessageBox>
#include <QIcon>
Expand Down Expand Up @@ -363,3 +364,12 @@ void QgsAttributeTableDisplay::closeEvent(QCloseEvent* ev)
emit deleted();
delete this;
}

void QgsAttributeTableDisplay::on_btnHelp_clicked()
{
showHelp();
}
void QgsAttributeTableDisplay::showHelp()
{
QgsContextHelp::run(context_id);
}
4 changes: 4 additions & 0 deletions src/gui/qgsattributetabledisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class QgsAttributeTableDisplay:public QDialog, private Ui::QgsAttributeTableBase
void doSearch(const QString& searchString);

virtual void closeEvent(QCloseEvent* ev);
void showHelp();

/** array of feature IDs that match last searched condition */
std::vector<int> mSearchIds;
Expand All @@ -69,6 +70,7 @@ class QgsAttributeTableDisplay:public QDialog, private Ui::QgsAttributeTableBase
void search();
void advancedSearch();
void searchShowResultsChanged(int item);
void on_btnHelp_clicked();

signals:
void deleted();
Expand All @@ -77,6 +79,8 @@ class QgsAttributeTableDisplay:public QDialog, private Ui::QgsAttributeTableBase
void setTheme();

QString mSearchString;

static const int context_id = 831088384;
};

#endif

0 comments on commit 99c3393

Please sign in to comment.