You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/parts/classview/classviewpart.h

101 lines
2.5 KiB

/*
* Copyright (C) 2003 Roberto Raggi (roberto@kdevelop.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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef __KDEVPART_CLASSVIEW_H__
#define __KDEVPART_CLASSVIEW_H__
#include "kdevlanguagesupport.h"
#include "viewcombos.h"
#include <tqguardedptr.h>
#include <tqmap.h>
#include <kdevplugin.h>
#include <codemodel.h>
#include <codebrowserfrontend.h>
using namespace Extensions;
namespace KParts { class Part; }
namespace KTextEditor
{
class Document;
class View;
class EditInterface;
class SelectionInterface;
class ViewCursorInterface;
}
class ClassViewWidget;
class TDEListViewAction;
class TQListViewItem;
class TDEToolBarPopupAction;
class NamespaceItem;
class Navigator;
class HierarchyDialog;
class ClassViewPart : public Extensions::KDevCodeBrowserFrontend
{
Q_OBJECT
public:
ClassViewPart(TQObject *parent, const char *name, const TQStringList &);
virtual ~ClassViewPart();
bool langHasFeature(KDevLanguageSupport::Features feature);
TDEListViewAction *m_functionsnav;
Navigator *navigator;
inline ClassViewWidget* widget() {
return &( *m_widget );
}
virtual bool jumpedToItem( ItemDom item );
private slots:
void slotProjectOpened();
void slotProjectClosed();
void graphicalClassView();
void refresh();
void slotFocusNavbar();
void activePartChanged(KParts::Part*);
private:
void setupActions();
TQGuardedPtr<ClassViewWidget> m_widget;
TQString m_activeFileName;
KTextEditor::Document* m_activeDocument;
KTextEditor::View* m_activeView;
KTextEditor::SelectionInterface* m_activeSelection;
KTextEditor::EditInterface* m_activeEditor;
KTextEditor::ViewCursorInterface* m_activeViewCursor;
HierarchyDialog* m_hierarchyDlg;
friend class Navigator;
};
#endif