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

« back to all changes in this revision

Viewing changes to src/qgspluginmanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2004-12-21 09:46:27 UTC
  • Revision ID: james.westby@ubuntu.com-20041221094627-r9lb6mlz2o3yp8gn
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          qgspluginmanager.h 
 
3
               Plugin manager for loading/unloading QGIS plugins
 
4
                             -------------------
 
5
    begin                : 2004-02-12
 
6
    copyright            : (C) 2004 by Gary E.Sherman
 
7
    email                : sherman at mrcc.com
 
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: qgspluginmanager.h,v 1.9 2004/11/23 03:50:34 gsherman Exp $ */
 
19
#ifndef QGSPLUGINMANAGER_H
 
20
#define QGSPLUGINMANAGER_H
 
21
#include <vector>
 
22
#ifdef WIN32
 
23
#include "qgspluginmanagerbase.h"
 
24
#else
 
25
#include "qgspluginmanagerbase.uic.h"
 
26
#endif
 
27
 
 
28
class QgsPluginItem;
 
29
/*!
 
30
 * \brief Plugin manager for loading/unloading plugins
 
31
@author Gary Sherman
 
32
*/
 
33
class QgsPluginManager : public QgsPluginManagerBase
 
34
{
 
35
  Q_OBJECT
 
36
  public:
 
37
    //! Constructor
 
38
    QgsPluginManager(QWidget *parent=0, const char *name=0);
 
39
    //! Destructor
 
40
    ~QgsPluginManager();
 
41
    //! Browse to a location (directory) containing QGIS plugins
 
42
    void browseFiles();
 
43
    //! Get description of plugins (name, etc)
 
44
    void getPluginDescriptions();
 
45
    //! Unload the selected plugins
 
46
    void unload();
 
47
    //! Gets the selected plugins
 
48
    std::vector<QgsPluginItem> getSelectedPlugins();
 
49
    public slots:
 
50
    //! Load selected plugins and close the dialog
 
51
    void apply();
 
52
    //! Select all plugins by setting their checkbox on
 
53
    void selectAll();
 
54
    //! Clear all selections by clearing the plugins checkbox
 
55
    void clearAll();
 
56
};
 
57
 
 
58
#endif