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

« back to all changes in this revision

Viewing changes to src/qgsproviderextentcalcevent.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
      qgsproviderextentcalcevent.h  -  Notification that the exact extent
3
 
                                       of a layer has been calculated.
4
 
                             -------------------
5
 
    begin                : Feb 1, 2005
6
 
    copyright            : (C) 2005 by Brendan Morley
7
 
    email                : morb at ozemail dot com dot au
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: qgsproviderextentcalcevent.h,v 1.1 2005/03/10 05:36:58 gsherman Exp $ */
19
 
 
20
 
#ifndef QGSPROVIDEREXTENTCALCEVENT_H
21
 
#define QGSPROVIDEREXTENTCALCEVENT_H
22
 
 
23
 
#include <qevent.h>
24
 
 
25
 
#include "qgis.h"
26
 
#include "qgsrect.h"
27
 
 
28
 
/*!
29
 
 * \brief   A custom event that is designed to be fired when a layer extent has been fully calculated.
30
 
   \author  Brendan Morley
31
 
   \date    March 2005
32
 
 
33
 
   
34
 
   This QCustomEvent is designed to be fired when the full extent of a layer has been calculated.
35
 
   It was initially included in QGIS to help the QgsPostgresProvider provide the asynchronous
36
 
   calculation of PostgreSQL layer extents.
37
 
   
38
 
   Events are used instead of Qt signals/slots as events can be received asynchronously,
39
 
   which makes for better mutlithreading behaviour and less opportunity for programmer mishap.
40
 
  
41
 
 */ 
42
 
 
43
 
// TODO: Add the pg table this is a extent OF.
44
 
 
45
 
class QgsProviderExtentCalcEvent : public QCustomEvent
46
 
{
47
 
 
48
 
public:
49
 
 
50
 
  QgsProviderExtentCalcEvent( QgsRect* layerExtent );
51
 
 
52
 
  QgsRect* layerExtent() const;
53
 
 
54
 
  
55
 
private:
56
 
 
57
 
  QgsRect* le;
58
 
    
59
 
};
60
 
 
61
 
#endif