~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/qgsbookmarkitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2005-11-05 16:04:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051105160445-l0g4isz5bc9yehet
Tags: 0.7.4-1
* New upstream release
* Build GRASS support in qgis-plugin-grass package (Closes: #248649)

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,v 1.2 2005/04/24 06:17:28 gsherman Exp $ */
 
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