summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/autodetailsview.h
blob: 0c649b9586d563282b3227364ca889eab3b4080c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
  KDevelop Autotools Support
  Copyright (c) 2002 by Victor Roeder <[email protected]>
  Copyright (c) 2005 by Matt Rogers <[email protected]>

***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
*/

#ifndef AUTODETAILSVIEW_H
#define AUTODETAILSVIEW_H

#include "autoprojectviewbase.h"

#include "domutil.h"
#include "autolistviewitems.h"

class KAction;

class AutoProjectPart;
class AutoProjectWidget;
class AutoToolsAction;

class AutoDetailsView : protected AutoProjectViewBase
{
	friend class RemoveFileDialog;
	friend class FileItem;
	Q_OBJECT
  TQ_OBJECT

public:
	AutoDetailsView( AutoProjectWidget* widget, AutoProjectPart* part, TQWidget *tqparent, const char *name );
	virtual ~AutoDetailsView();

	TQString getUiFileLink( const TQString &path, const TQString& filename );
	KListView* listView()
	{
		return m_listView;
	}

public slots:
	void slotSelectionChanged( TQListViewItem* item );
	void slotSelectionChanged();

signals:
	void selectionChanged( TQListViewItem* );

protected:
	void initActions ();
	virtual void focusOutEvent( TQFocusEvent *e );

private slots:
	void slotDetailsExecuted( TQListViewItem *item );
	void slotDetailsContextMenu( KListView *, TQListViewItem *item, const TQPoint &p );

	void slotTargetOptions ();
	void slotAddNewFile();
	void slotAddExistingFile();
	void slotAddIcon();
	void slotBuildTarget();
	void slotExecuteTarget();
	void slotRemoveDetail();
	void slotSetActiveTarget();

private:
	AutoProjectWidget* m_widget;
	AutoProjectPart* m_part;

	DomUtil::PairList m_subclasslist;

	AutoToolsAction* targetOptionsAction;
	AutoToolsAction* addNewFileAction;
	AutoToolsAction* addExistingFileAction;
	KAction* addIconAction;
	AutoToolsAction* buildTargetAction;
	AutoToolsAction* executeTargetAction;
	KAction* setActiveTargetAction;
	AutoToolsAction* removeDetailAction;

};

#endif
// kate: indent-mode csands; tab-width 4;