KDevelop API Documentation

partselectwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2001 by Bernd Gehrmann                                  *
00003  *   bernd@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _PARTSELECTWIDGET_H_
00013 #define _PARTSELECTWIDGET_H_
00014 
00015 #include <qdialog.h>
00016 #include <qdom.h>
00017 #include <qstringlist.h>
00018 
00019 class QListView;
00020 class KURLLabel;
00021 
00022 
00023 class PartSelectWidget : public QWidget
00024 {
00025     Q_OBJECT
00026 
00027 public:
00028     /* for selection of project parts */
00029     PartSelectWidget( QDomDocument &projectDom, QWidget *parent=0, const char *name=0 );
00030     /* for selection of global parts */
00031     PartSelectWidget( QWidget *parent=0, const char *name=0 );
00032     ~PartSelectWidget();
00033 
00034 public slots:
00035    void accept();
00036 
00037 signals:
00038    void accepted();
00039 
00040 private slots:
00041     void itemSelected( QListViewItem * );
00042     void openURL( const QString & );
00043 
00044 private:
00045     enum Scope { Global, Project };
00046 
00047     void init();
00048     void readGlobalConfig();
00049     void saveGlobalConfig();
00050     void readProjectConfig();
00051     void saveProjectConfig();
00052 
00053     QDomDocument m_projectDom;
00054     Scope _scope;
00055 
00056     QListView * _pluginList;
00057     QLabel * _pluginDescription;
00058     KURLLabel * _urlLabel;
00059 
00060 };
00061 
00062 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003