~ubuntu-branches/ubuntu/maverick/qgis/maverick

« back to all changes in this revision

Viewing changes to src/core/qgsbookmarkitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/***************************************************************************
3
 
               QgsBookmarkItem.h  - Spatial Bookmark Item
4
 
                             -------------------
5
 
    begin                : 2005-04-23
6
 
    copyright            : (C) 2005 Gary Sherman
7
 
    email                : sherman at mrcc dot com
8
 
 ***************************************************************************/
9
 
 
10
 
/***************************************************************************
11
 
 *                                                                         *
12
 
 *   This program is free software; you can redistribute it and/or modify  *
13
 
 *   it under the terms of the GNU General Public License as published by  *
14
 
 *   the Free Software Foundation; either version 2 of the License, or     *
15
 
 *   (at your option) any later version.                                   *
16
 
 *                                                                         *
17
 
 ***************************************************************************/
18
 
 /* $Id: qgsbookmarkitem.h 4502 2006-01-08 01:18:20Z timlinux $ */
19
 
#ifndef QGSBOOKMARKITEM_H
20
 
#define QGSBOOKMARKITEM_H
21
 
class QString;
22
 
class QgsRect;
23
 
/*!
24
 
 * \class QgsBookmarkItem
25
 
 * \brief A spatial bookmark record that is stored in a sqlite3
26
 
 * database.
27
 
 */ 
28
 
class QgsBookmarkItem
29
 
{
30
 
public:
31
 
  //! Constructs a bookmark item
32
 
  QgsBookmarkItem(QString name, QString projectTitle, 
33
 
      QgsRect viewExtent, int srid, QString databasePath);
34
 
  //! Default destructor
35
 
  ~QgsBookmarkItem();
36
 
  //! Store the bookmark in the database
37
 
  void store();
38
 
private:
39
 
  //! Name of the bookmark
40
 
  QString mName;
41
 
  //! Project that this bookmark was created from
42
 
  QString mProjectTitle;
43
 
  //! Extent of the view for the bookmark
44
 
  QgsRect mViewExtent;
45
 
  //! SRID of the canvas coordinate system when the bookmark was created
46
 
  int mSrid;
47
 
  //! Full path to the user database
48
 
  QString mUserDbPath;
49
 
 
50
 
};
51
 
 
52
 
#endif // QGSBOOKMARKITEM_H
53