gccoptionsplugin.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2000-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 _GCCOPTIONSPLUGIN_H_ 00013 #define _GCCOPTIONSPLUGIN_H_ 00014 00015 #include <kdialogbase.h> 00016 00017 #include "kdevcompileroptions.h" 00018 00019 00020 class GeneralTab; 00021 class OptimizationTab; 00022 class G77Tab; 00023 class Warnings1Tab; 00024 class Warnings2Tab; 00025 00026 00027 class GccOptionsPlugin : public KDevCompilerOptions 00028 { 00029 Q_OBJECT 00030 00031 public: 00032 enum Type { GCC, GPP, G77, Unknown }; 00033 GccOptionsPlugin( QObject *parent, const char *name, const QStringList &args ); 00034 ~GccOptionsPlugin(); 00035 00036 static QString captionForType(Type type); 00037 00038 virtual QString exec(QWidget *parent, const QString &flags); 00039 00040 private: 00041 Type gcctype; 00042 }; 00043 00044 00045 class GccOptionsDialog : public KDialogBase 00046 { 00047 public: 00048 GccOptionsDialog( GccOptionsPlugin::Type type, QWidget *parent=0, const char *name=0 ); 00049 ~GccOptionsDialog(); 00050 00051 void setFlags(const QString &flags); 00052 QString flags() const; 00053 00054 private: 00055 GeneralTab *general; 00056 OptimizationTab *optimization; 00057 G77Tab *g77; 00058 Warnings1Tab *warnings1; 00059 Warnings2Tab *warnings2; 00060 QStringList unrecognizedFlags; 00061 }; 00062 00063 #endif