buildtools/autotools/choosetargetdialog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 ------------------- 00003 begin : 29.11.2002 00004 copyright : (C) 2002 by Victor Röder 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 _CHOOSETARGETDIALOG_H_ 00018 #define _CHOOSETARGETDIALOG_H_ 00019 00020 #include "choosetargetdlgbase.h" 00021 00022 class AutoProjectWidget; 00023 class AutoProjectPart; 00024 class SubprojectItem; 00025 class TargetItem; 00026 00027 class QStringList; 00028 00029 class ChooseTargetDialog : public ChooseTargetDlgBase 00030 { 00031 00032 public: 00033 ChooseTargetDialog(AutoProjectWidget* widget, AutoProjectPart* part, QStringList fileList, QWidget* parent = 0, const char* name = 0); 00034 ~ChooseTargetDialog(); 00035 00036 private: 00037 AutoProjectWidget* m_widget; 00038 AutoProjectPart* m_part; 00039 QStringList m_fileList; 00040 QPtrList <SubprojectItem> m_subprojectList; 00041 SubprojectItem* m_choosenSubproject; 00042 TargetItem* m_choosenTarget; 00043 00044 public: 00045 TargetItem* choosenTarget(); 00046 SubprojectItem* choosenSubproject(); 00047 00048 private slots: 00049 void slotActiveTargetToggled(bool); 00050 void slotChooseTargetToggled(bool); 00051 void slotSubprojectChanged ( const QString& ); 00052 void slotTargetChanged ( const QString& ); 00053 void slotSubprojectTextChanged ( const QString& ); 00054 void slotTargetTextChanged ( const QString& ); 00055 00056 protected: 00057 virtual void accept (); 00058 }; 00059 00060 #endif