Skip to content

Commit

Permalink
New context_ids for context help.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5619 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jul 21, 2006
1 parent 6f42a27 commit 372147c
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsbookmarks.h
Expand Up @@ -43,7 +43,7 @@ public slots:
int connectDb();
void zoomToBookmark();
sqlite3 *db;
static const int context_id = 85340544;
static const int context_id = 151694916;

};
#endif // QGSBOOKMARKS_H
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsdbsourceselect.h
Expand Up @@ -117,7 +117,7 @@ class QgsDbSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
//! Pointer to the qgis application mainwindow
QgisApp *qgisApp;
PGconn *pd;
static const int context_id = 1244423922;
static const int context_id = 939347163;
};


Expand Down
5 changes: 5 additions & 0 deletions src/gui/qgsidentifyresults.cpp
Expand Up @@ -18,6 +18,7 @@
/* $Id$ */

#include "qgsidentifyresults.h"
#include "qgscontexthelp.h"
#include "qgsapplication.h"

#include <QCloseEvent>
Expand Down Expand Up @@ -290,3 +291,7 @@ void QgsIdentifyResults::clicked ( Q3ListViewItem *item )

mActions.doAction(id, mValues, mClickedOnValue);
}
void QgsIdentifyResults::on_buttonHelp_clicked()
{
QgsContextHelp::run(context_id);
}
4 changes: 4 additions & 0 deletions src/gui/qgsidentifyresults.h
Expand Up @@ -90,12 +90,16 @@ class QgsIdentifyResults: public QDialog, private Ui::QgsIdentifyResultsBase
/* Item in tree was clicked */
void clicked ( Q3ListViewItem *lvi );

//! Context help
void on_buttonHelp_clicked();

private:

QgsAttributeAction mActions;
int mClickedOnValue;
QMenu* mActionPopup;
std::vector<std::pair<QString, QString> > mValues;
static const int context_id = -689216579;

/**
Keeps track of what derived-attribute (e.g. Length, Area)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapserverexport.cpp
Expand Up @@ -292,7 +292,7 @@ void QgsMapserverExport::writeMapFile()
break;
}
#ifdef QGISDEBUG
std::cout << "\tMapsrver Export creating symbol entries" << std::endl;
std::cout << "\tMapserver Export creating symbol entries" << std::endl;
#endif
// create a simple class entry based on red fill color and black outline color
//TODO: adapt the following section to the new symbology
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmeasure.h
Expand Up @@ -113,7 +113,7 @@ public slots:
QgsRubberBand *mRubberBand;

//! Help context id
static const int context_id = 940759457;
static const int context_id = -687883780;

//! indicates whether we're measuring distances or areas
bool mMeasureArea;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsnewconnection.h
Expand Up @@ -43,7 +43,7 @@ class QgsNewConnection : public QDialog, private Ui::QgsNewConnectionBase
void on_btnHelp_clicked();
void on_btnConnect_clicked();
private:
static const int context_id = 821572257;
static const int context_id = -929865718;
};

#endif // QGSNEWCONNECTIONBASE_H
2 changes: 1 addition & 1 deletion src/gui/qgsprojectproperties.h
Expand Up @@ -113,5 +113,5 @@ public slots:
//! notification of when on the fly projections are enabled / disabled
void projectionEnabled(bool);
private:
static const int context_id = 1173513647;
static const int context_id = 361087368;
};

0 comments on commit 372147c

Please sign in to comment.