00001 /*************************************************************************** 00002 QgsBookmarks.h - Spatial Bookmarks 00003 ------------------- 00004 begin : 2005-04-23 00005 copyright : (C) 2005 Gary Sherman 00006 email : sherman at mrcc dot com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 /* $Id: qgsbookmarks.h 9138 2008-08-23 21:37:31Z jef $ */ 00018 #ifndef QGSBOOKMARKS_H 00019 #define QGSBOOKMARKS_H 00020 #include "ui_qgsbookmarksbase.h" 00021 #include <QDialog> 00022 00023 class QString; 00024 class QWidget; 00025 class QTreeWidgetItem; 00026 struct sqlite3; 00027 class QgsBookmarks : public QDialog, private Ui::QgsBookmarksBase 00028 { 00029 Q_OBJECT 00030 public: 00031 QgsBookmarks( QWidget *parent = 0, Qt::WFlags fl = 0 ); 00032 ~QgsBookmarks(); 00033 void restorePosition(); 00034 private slots: 00035 void saveWindowLocation(); 00036 void on_btnDelete_clicked(); 00037 void on_btnZoomTo_clicked(); 00038 void on_lstBookmarks_doubleClicked( QTreeWidgetItem * ); 00039 void helpRequested(); 00040 void refreshBookmarks(); 00041 private: 00042 QWidget *mParent; 00043 void initialise(); 00044 int connectDb(); 00045 void zoomToBookmark(); 00046 sqlite3 *db; 00047 static const int context_id = 151694916; 00048 00049 }; 00050 #endif // QGSBOOKMARKS_H 00051
1.5.1