summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/autodetailsview.h
blob: 081842ee5a8d9a5032cafe72c40ac51a45592ea4 (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
/*
  TDevelop 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 TDEAction;

class AutoProjectPart;
class AutoProjectWidget;
class AutoToolsAction;

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

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

	TQString getUiFileLink( const TQString &path, const TQString& filename );
	TDEListView* 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( TDEListView *, 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;
	TDEAction* addIconAction;
	AutoToolsAction* buildTargetAction;
	AutoToolsAction* executeTargetAction;
	TDEAction* setActiveTargetAction;
	AutoToolsAction* removeDetailAction;

};

#endif