diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch) | |
tree | acaf47eb0fa12142d3896416a69e74cbf5a72242 /buildtools/autotools/autodetailsview.h | |
download | tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/autotools/autodetailsview.h')
-rw-r--r-- | buildtools/autotools/autodetailsview.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/buildtools/autotools/autodetailsview.h b/buildtools/autotools/autodetailsview.h new file mode 100644 index 00000000..ee67558d --- /dev/null +++ b/buildtools/autotools/autodetailsview.h @@ -0,0 +1,88 @@ +/* + KDevelop Autotools Support + Copyright (c) 2002 by Victor Roeder <victor_roeder@gmx.de> + Copyright (c) 2005 by Matt Rogers <mattr@kde.org> + +*************************************************************************** +* * +* 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; |