~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

Viewing changes to src/splashscreen.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
 
                          splashscreen.h  -  description
3
 
                             -------------------
4
 
    begin                : Sat May 17 2003
5
 
    copyright            : (C) 2003 by Tim Sutton
6
 
    email                : tim@linfiniti.com
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *  Based on an example by Trolltech                                                                       *
16
 
 ***************************************************************************/
17
 
/* $Id: splashscreen.h,v 1.5 2005/05/22 10:51:37 timlinux Exp $ */
18
 
 
19
 
#ifndef SPLASHSCREEN_H
20
 
#define SPLASHSCREEN_H
21
 
 
22
 
#include <qpixmap.h>
23
 
#include <qwidget.h>
24
 
    
25
 
/**A splash screen to show on application startup. Based on code found at: http://doc.trolltech.com/qq/qq04-splashscreen.html
26
 
  *@author Tim Sutton
27
 
  */
28
 
 
29
 
 
30
 
class SplashScreen : public QWidget
31
 
{
32
 
  Q_OBJECT
33
 
public:
34
 
  SplashScreen();
35
 
 
36
 
  void setStatus( const QString &message, int alignment = AlignLeft, const QColor &color = Qt::white );
37
 
  void finish( QWidget *mainWin );
38
 
  void repaint();
39
 
 
40
 
protected:
41
 
  void mousePressEvent( QMouseEvent * );
42
 
 
43
 
private:
44
 
  QPixmap splashImage;
45
 
};
46
 
 
47
 
#endif