configureoptionswidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2001-2002 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 _CONFIGUREOPTIONSWIDGET_H_ 00013 #define _CONFIGUREOPTIONSWIDGET_H_ 00014 00015 #include "configureoptionswidgetbase.h" 00016 00017 #include <ktrader.h> 00018 #include "domutil.h" 00019 00020 00021 class KDevCompilerOptions; 00022 class AutoProjectPart; 00023 class EnvironmentVariablesWidget; 00024 00025 class ConfigureOptionsWidget : public ConfigureOptionsWidgetBase 00026 { 00027 Q_OBJECT 00028 00029 public: 00030 ConfigureOptionsWidget( AutoProjectPart *part, QWidget *parent=0, const char *name=0 ); 00031 ~ConfigureOptionsWidget(); 00032 00033 public slots: 00034 void accept(); 00035 00036 private: 00037 virtual void builddirClicked(); 00038 virtual void topsourcedirClicked(); 00039 virtual void setDirty(); 00040 virtual void configChanged(const QString &config); 00041 virtual void configComboTextChanged(const QString &config); 00042 virtual void configAdded(); 00043 virtual void configRemoved(); 00044 virtual void cflagsClicked(); 00045 virtual void cxxflagsClicked(); 00046 virtual void f77flagsClicked(); 00047 virtual void cserviceChanged(); 00048 virtual void cxxserviceChanged(); 00049 virtual void f77serviceChanged(); 00050 00051 void fixLayout(); 00052 void readSettings(const QString &config); 00053 void saveSettings(const QString &config); 00054 00055 KDevCompilerOptions *createCompilerOptions(const QString &lang); 00056 KTrader::OfferList coffers, cxxoffers, f77offers; 00057 QStringList cservice_names, cservice_execs; 00058 QStringList cxxservice_names, cxxservice_execs; 00059 QStringList f77service_names, f77service_execs; 00060 QStringList allConfigs; 00061 QString currentConfig; 00062 bool dirty; 00063 00064 AutoProjectPart *m_part; 00065 EnvironmentVariablesWidget* m_environmentVariablesWidget; 00066 }; 00067 00068 #endif