blob: ee67558d3d060b17b8b796e8112d6140527de3ea (
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
|
/*
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
public:
AutoDetailsView( AutoProjectWidget* widget, AutoProjectPart* part, QWidget *parent, const char *name );
virtual ~AutoDetailsView();
QString getUiFileLink( const QString &path, const QString& filename );
KListView* listView()
{
return m_listView;
}
public slots:
void slotSelectionChanged( QListViewItem* item );
void slotSelectionChanged();
signals:
void selectionChanged( QListViewItem* );
protected:
void initActions ();
virtual void focusOutEvent( QFocusEvent *e );
private slots:
void slotDetailsExecuted( QListViewItem *item );
void slotDetailsContextMenu( KListView *, QListViewItem *item, const QPoint &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;
|