KDevelop API Documentation

autosubprojectview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                              -------------------
00003     begin                : 19.01.2003
00004     copyright            : (C) 2002 by Victor R�er
00005     email                : victor_roeder@gmx.de
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef AUTOSUBPROJECTVIEW_H
00018 #define AUTOSUBPROJECTVIEW_H
00019 
00020 #include <qwidget.h>
00021 
00022 #include <klistview.h>
00023 
00024 
00025 class KAction;
00026 
00027 class AutoProjectWidget;
00028 class AutoProjectPart;
00029 class TargetItem;
00030 class SubprojectItem;
00031 
00032 namespace AutoProjectPrivate
00033 {
00034     bool isHeader( const QString& fileName );
00035 }
00036 
00037 
00038 class AutoSubprojectView : public KListView
00039 {
00040     Q_OBJECT
00041 
00042     public:
00043         AutoSubprojectView(AutoProjectWidget* widget, AutoProjectPart* part, QWidget *parent, const char *name);
00044         virtual ~AutoSubprojectView();
00045 
00046     public:
00047         void loadMakefileams ( const QString& dir );
00048 
00049         void parse(SubprojectItem *item);
00050 
00051         TargetItem *findNoinstHeaders(SubprojectItem *item);
00052 
00053     protected:
00054         void initActions ();
00055 
00056         void parseKDEDOCS(SubprojectItem *item,
00057                         const QString &lhs, const QString &rhs);
00058         void parseKDEICON(SubprojectItem *item,
00059                         const QString &lhs, const QString &rhs);
00060         void parsePrimary(SubprojectItem *item,
00061                         const QString &lhs, const QString &rhs);
00062         void parsePrefix(SubprojectItem *item,
00063                         const QString &lhs, const QString &rhs);
00064         void parseSUBDIRS(SubprojectItem *item,
00065                         const QString &lhs, const QString &rhs);
00066         virtual void focusOutEvent(QFocusEvent *e);
00067 
00068     private:
00069         AutoProjectWidget* m_widget;
00070         AutoProjectPart* m_part;
00071         QStringList headers;
00072 
00073         bool m_kdeMode;
00074 
00075         KAction* addApplicationAction;
00076         KAction* subProjectOptionsAction;
00077         KAction* addSubprojectAction;
00078         KAction* addExistingSubprojectAction;
00079         KAction* addTargetAction;
00080         KAction* addServiceAction;
00081         KAction* buildSubprojectAction;
00082         KAction* removeSubprojectAction;
00083         KAction* cleanSubprojectAction;
00084         KAction* forceReeditSubprojectAction;
00085         KAction* installSubprojectAction;
00086         KAction* installSuSubprojectAction;
00087 
00088     private slots:
00089         void slotContextMenu(KListView *, QListViewItem *item, const QPoint &p);
00090 //      void slotSubprojectExecuted(QListViewItem* item);
00091 
00092         void slotAddApplication();
00093         void slotSubprojectOptions();
00094         void slotAddSubproject();
00095         void slotAddExistingSubproject();
00096         void slotAddTarget();
00097         void slotAddService();
00098         void slotBuildSubproject();
00099         void slotRemoveSubproject();
00100         void slotForceReeditSubproject();
00101         void slotInstallSubproject();
00102         void slotInstallSuSubproject();
00103         void slotCleanSubproject();
00104 };
00105 
00106 #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:21 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003