~ubuntu-branches/ubuntu/utopic/qgis/utopic

« back to all changes in this revision

Viewing changes to src/gui/symbology-ng/qgsstylev2exportimportdialog.h

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-04-24 15:12:20 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120424151220-r88g00af5fpn5fc3
Tags: 1.7.4+1.7.5~20120320-1
The "Sometimes they come back" release.

* Branching from Qgis tree and adapting to current Debian Policy and
  standards. The target tree is currently set to release-1.7.
  (closes: #661491, #606304, #615683, #616182, #600308)
* Policy bumped to 3.9.3.
* Moving to debhelper compatibility level 9.
* Source format is now 3.0 with quilt support.
* Merged with 2bf42287 upstream git snapshot.
* Migrated to dh_python2 instead of python-central.
  (closes: #617048)
* Snapshot in qgis.org release-1.7: c936d031
* Added an automagic creation of a lintian override for sqlite embedding.
  This is required for uploading currently.
* Added missing ${misc:Depends} to make lintian happy.
* Copyright notes updated and debian/copyright moved to format 1.0.
* More licenses notices now reported in debian/copyright. Thanks ftpmasters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    qgsstylev2exportimportdialog.h
 
3
    ---------------------
 
4
    begin                : Jan 2011
 
5
    copyright            : (C) 2011 by Alexander Bruy
 
6
    email                : alexander dot bruy at gmail dot com
 
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
/* $Id: qgsstylev2exportimportdialog.h 13187 2010-03-28 22:14:44Z jef $ */
 
18
 
 
19
#ifndef QGSSTYLEV2EXPORTIMPORTDIALOG_H
 
20
#define QGSSTYLEV2EXPORTIMPORTDIALOG_H
 
21
 
 
22
#include <QDialog>
 
23
 
 
24
#include "ui_qgsstylev2exportimportdialogbase.h"
 
25
 
 
26
class QgsStyleV2;
 
27
 
 
28
class QgsStyleV2ExportImportDialog : public QDialog, private Ui::QgsStyleV2ExportImportDialogBase
 
29
{
 
30
    Q_OBJECT
 
31
 
 
32
  public:
 
33
    enum Mode
 
34
    {
 
35
      Export,
 
36
      Import
 
37
    };
 
38
 
 
39
    // constructor
 
40
    // mode argument must be 0 for saving and 1 for loading
 
41
    QgsStyleV2ExportImportDialog( QgsStyleV2* style, QWidget *parent = NULL, Mode mode = Export, QString fileName = "" );
 
42
    ~QgsStyleV2ExportImportDialog();
 
43
 
 
44
  public slots:
 
45
    void doExportImport();
 
46
    void selectAll();
 
47
    void clearSelection();
 
48
 
 
49
  private:
 
50
    bool populateStyles( QgsStyleV2* style );
 
51
    void moveStyles( QModelIndexList* selection, QgsStyleV2* src, QgsStyleV2* dst );
 
52
 
 
53
    QString mFileName;
 
54
    Mode mDialogMode;
 
55
 
 
56
    QgsStyleV2* mQgisStyle;
 
57
    QgsStyleV2* mTempStyle;
 
58
};
 
59
 
 
60
#endif // QGSSTYLEV2EXPORTIMPORTDIALOG_H