buildtools/ada/adaprojectoptionsdlg.h
Go to the documentation of this file.00001 /* $Id: adaprojectoptionsdlg.h,v 1.1 2003/05/01 23:47:37 okellogg Exp $ 00002 * Copyright (C) 2003 Oliver Kellogg 00003 * okellogg@users.sourceforge.net 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 #ifndef ADAPROJECTOPTIONSDLG_H 00011 #define ADAPROJECTOPTIONSDLG_H 00012 00013 #include <ktrader.h> 00014 00015 #include "adaproject_optionsdlgbase.h" 00016 00017 class AdaProjectPart; 00018 class KDevCompilerOptions; 00019 00020 class AdaProjectOptionsDlg : public AdaProjectOptionsDlgBase 00021 { 00022 Q_OBJECT 00023 00024 public: 00025 AdaProjectOptionsDlg(AdaProjectPart *part, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 00026 ~AdaProjectOptionsDlg(); 00027 00028 public slots: 00029 virtual void accept(); 00030 00031 protected slots: 00032 virtual void compiler_box_activated(const QString &s); 00033 void configComboTextChanged(const QString &config); 00034 void configChanged(const QString &config); 00035 void configAdded(); 00036 void configRemoved(); 00037 void optionsButtonClicked(); 00038 void setDirty(); 00039 void setDefaultOptions(); 00040 00041 private: 00042 QStringList allConfigs; 00043 QString currentConfig; 00044 bool dirty; 00045 00046 KTrader::OfferList offers; 00047 QStringList service_names; 00048 QStringList service_execs; 00049 00050 AdaProjectPart *m_part; 00051 00052 void saveConfig(QString config); 00053 void readConfig(QString config); 00054 QStringList allBuildConfigs(); 00055 }; 00056 00057 #endif 00058