Skip to content
Permalink
Browse files

added context help button to attribute display dialog

git-svn-id: http://svn.osgeo.org/qgis/trunk@6092 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman
gsherman committed Nov 16, 2006
1 parent 31a7127 commit 99c339332773f73b48eb16450b97dfff800edce0
Showing with 14 additions and 0 deletions.
  1. +10 −0 src/gui/qgsattributetabledisplay.cpp
  2. +4 −0 src/gui/qgsattributetabledisplay.h
@@ -28,6 +28,7 @@
#include "qgssearchtreenode.h"
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"
#include "qgscontexthelp.h"

#include <QMessageBox>
#include <QIcon>
@@ -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);
}
@@ -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;
@@ -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();
@@ -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.
You can’t perform that action at this time.