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

« back to all changes in this revision

Viewing changes to src/app/composer/qgscomposermanager.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
                              qgscomposermanager.h
 
3
                             ------------------------
 
4
    begin                : September 11 2009
 
5
    copyright            : (C) 2009 by Marco Hugentobler
 
6
    email                : marco at hugis dot net
 
7
 ***************************************************************************/
 
8
/***************************************************************************
 
9
 *                                                                         *
 
10
 *   This program is free software; you can redistribute it and/or modify  *
 
11
 *   it under the terms of the GNU General Public License as published by  *
 
12
 *   the Free Software Foundation; either version 2 of the License, or     *
 
13
 *   (at your option) any later version.                                   *
 
14
 *                                                                         *
 
15
 ***************************************************************************/
 
16
 
 
17
#ifndef QGSCOMPOSERMANAGER_H
 
18
#define QGSCOMPOSERMANAGER_H
 
19
 
 
20
#include "ui_qgscomposermanagerbase.h"
 
21
 
 
22
class QgisApp;
 
23
class QListWidgetItem;
 
24
class QgsComposer;
 
25
 
 
26
/**A dialog that shows the existing composer instances. Lets the user add new \
 
27
instances and change title of existing ones*/
 
28
class QgsComposerManager: public QDialog, private Ui::QgsComposerManagerBase
 
29
{
 
30
    Q_OBJECT
 
31
  public:
 
32
    QgsComposerManager( QgisApp* app, QWidget * parent = 0, Qt::WindowFlags f = 0 );
 
33
    ~QgsComposerManager();
 
34
 
 
35
 
 
36
  private:
 
37
    QgisApp* mQgisApp;
 
38
    /**Stores the relation between items and composer pointers */
 
39
    QMap<QListWidgetItem*, QgsComposer*> mItemComposerMap;
 
40
    /**Enters the composer instances and created the item-composer map*/
 
41
    void initialize();
 
42
 
 
43
  private slots:
 
44
    void on_mAddButton_clicked();
 
45
    void on_mRemoveButton_clicked();
 
46
    void on_mShowPushButton_clicked();
 
47
    void on_mRenamePushButton_clicked();
 
48
    void on_mComposerListWidget_itemChanged( QListWidgetItem * item );
 
49
};
 
50
 
 
51
#endif // QGSCOMPOSERMANAGER_H