~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/app/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$ */
 
19
#ifndef QGSBOOKMARKITEM_H
 
20
#define QGSBOOKMARKITEM_H
 
21
 
 
22
#include <QString>
 
23
#include "qgsrectangle.h"
 
24
 
 
25
/*!
 
26
 * \class QgsBookmarkItem
 
27
 * \brief A spatial bookmark record that is stored in a sqlite3
 
28
 * database.
 
29
 */
 
30
class QgsBookmarkItem
 
31
{
 
32
  public:
 
33
    //! Constructs a bookmark item
 
34
    QgsBookmarkItem( QString name, QString projectTitle,
 
35
                     QgsRectangle viewExtent, int srid, QString databasePath );
 
36
    //! Default destructor
 
37
    ~QgsBookmarkItem();
 
38
    //! Store the bookmark in the database
 
39
    void store();
 
40
  private:
 
41
    //! Name of the bookmark
 
42
    QString mName;
 
43
    //! Project that this bookmark was created from
 
44
    QString mProjectTitle;
 
45
    //! Extent of the view for the bookmark
 
46
    QgsRectangle mViewExtent;
 
47
    //! SRID of the canvas coordinate system when the bookmark was created
 
48
    int mSrid;
 
49
    //! Full path to the user database
 
50
    QString mUserDbPath;
 
51
 
 
52
};
 
53
 
 
54
#endif // QGSBOOKMARKITEM_H
 
55