1
/***************************************************************************
2
* Copyright (C) 2003 by Alexander Dymo *
3
* cloudtemple@mksat.net *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#ifndef CHOOSESUBPROJECTDLG_H
13
#define CHOOSESUBPROJECTDLG_H
15
#include <klistview.h>
17
#include "choosesubprojectdlgbase.h"
20
class TrollProjectWidget;
22
class ChooseItem: public KListViewItem
25
ChooseItem(QMakeScopeItem *spitem, QListViewItem *parent, QString text);
26
ChooseItem(QMakeScopeItem *spitem, QListView *parent, QString text);
28
QMakeScopeItem *subproject();
31
QMakeScopeItem *m_spitem;
34
class ChooseSubprojectDlg : public ChooseSubprojectDlgBase
39
ChooseSubprojectDlg(TrollProjectWidget *widget, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
40
~ChooseSubprojectDlg();
41
/*$PUBLIC_FUNCTIONS$*/
43
QMakeScopeItem *selectedSubproject();
49
/*$PROTECTED_FUNCTIONS$*/
50
TrollProjectWidget *m_widget;
54
virtual void accept();
55
virtual void itemSelected(QListViewItem *it);
58
void fillSubprojectsView(ChooseItem *item);
64
// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on