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

« back to all changes in this revision

Viewing changes to src/helpviewer/qgshelpviewer.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
1
/***************************************************************************
2
 
                             qgshelpviewer.h 
 
2
                             qgshelpviewer.h
3
3
                             Simple help browser
4
4
                             -------------------
5
5
    begin                : 2005-07-02
15
15
 *   (at your option) any later version.                                   *
16
16
 *                                                                         *
17
17
 ***************************************************************************/
18
 
 /* $Id: qgshelpviewer.h 6091 2006-11-16 03:39:30Z gsherman $ */
 
18
/* $Id$ */
19
19
 
20
20
#ifndef QGSHELPVIEWER_H
21
21
#define QGSHELPVIEWER_H
22
22
# include "ui_qgshelpviewerbase.h"
23
23
class QString;
24
 
class sqlite3;
 
24
struct sqlite3;
25
25
class QgsHelpViewer : public QDialog, private Ui::QgsHelpViewerBase
26
26
{
27
 
  Q_OBJECT
 
27
    Q_OBJECT
28
28
  public:
29
 
    QgsHelpViewer(const QString &contextId=QString::null, QWidget *parent=0, Qt::WFlags=0);
 
29
    QgsHelpViewer( const QString &contextId = QString::null, QWidget *parent = 0, Qt::WFlags = 0 );
30
30
    ~QgsHelpViewer();
31
 
public slots:
32
 
    void setContext(const QString &contextId);
 
31
  public slots:
 
32
    void setContext( const QString &contextId );
33
33
    void fileExit();
34
 
private:
35
 
    void loadContext(const QString &contextId);
36
 
    void loadContextFromSqlite(const QString &contextId);
37
 
  int connectDb(const QString &helpDbPath);
38
 
 sqlite3 *db;
 
34
  protected:
 
35
    void moveEvent( QMoveEvent *event );
 
36
    void resizeEvent( QResizeEvent *event );
 
37
  private:
 
38
    void restorePosition();
 
39
    void saveWindowLocation();
 
40
    void loadContext( const QString &contextId );
 
41
    void loadContextFromSqlite( const QString &contextId );
 
42
    int connectDb( const QString &helpDbPath );
 
43
    sqlite3 *db;
39
44
};
40
45
#endif // QGSHELPVIEWER_H