• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/duchain

  • sources
  • kfour-appscomplete
  • kdevelop
  • kdevplatform
  • language
  • duchain
  • navigation
problemnavigationcontext.h
Go to the documentation of this file.
1 /*
2  Copyright 2009 David Nolden <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KDEVPLATFORM_PROBLEMNAVIGATIONCONTEXT_H
20 #define KDEVPLATFORM_PROBLEMNAVIGATIONCONTEXT_H
21 
22 #include <interfaces/iproblem.h>
23 #include <interfaces/iassistant.h>
24 
25 #include <language/duchain/navigation/abstractnavigationcontext.h>
26 #include <language/languageexport.h>
27 
28 #include <QPointer>
29 
30 namespace KDevelop {
31 class KDEVPLATFORMLANGUAGE_EXPORT ProblemNavigationContext
32  : public AbstractNavigationContext
33 {
34  Q_OBJECT
35 
36 public:
37  enum Flag {
38  NoFlag = 0,
39  ShowLocation = 1 << 0,
40  };
41  Q_DECLARE_FLAGS(Flags, Flag)
42 
43  explicit ProblemNavigationContext(const QVector<IProblem::Ptr>& problems, const Flags flags = {});
44  ~ProblemNavigationContext() override;
45 
46  QString name() const override;
47  QString html(bool shorten = false) override;
48  QWidget* widget() const override;
49  bool isWidgetMaximized() const override;
50 
51  NavigationContextPointer executeKeyAction(const QString& key) override;
52 
53 public Q_SLOTS:
54  void executeAction(int index); // TODO: Add API in base class?
55 
56 private:
57  void html(IProblem::Ptr problem);
58 
64  QString escapedHtml(const QString& text) const;
65 
66  QVector<IProblem::Ptr> m_problems;
67  Flags m_flags;
68 
69  QPointer<QWidget> m_widget;
70  QVector<IAssistantAction::Ptr> m_assistantsActions;
71 };
72 }
73 
74 #endif // KDEVPLATFORM_PROBLEMNAVIGATIONCONTEXT_H
QPointer< QWidget >
KDevelop::ProblemNavigationContext::Flag
Flag
Definition: problemnavigationcontext.h:37
QWidget
KDevelop::m_problems
KDEVPLATFORMLANGUAGE_EXPORT m_problems
Definition: topducontextdata.h:49
m_flags
DUContext::SearchFlags m_flags
Definition: ducontext.cpp:615
abstractnavigationcontext.h
KDevelop::ProblemNavigationContext
Definition: problemnavigationcontext.h:31
QString
KDevelop::NavigationContextPointer
QExplicitlySharedDataPointer< AbstractNavigationContext > NavigationContextPointer
Definition: abstractnavigationcontext.h:62
KDevelop::AbstractNavigationContext
Definition: abstractnavigationcontext.h:64
KDevelop
Definition: abstractfunctiondeclaration.cpp:27
QVector< IProblem::Ptr >
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 23:29:50 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/language/duchain

Skip menu "kdevplatform/language/duchain"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal