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

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • variableeditor
variablelistview.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2011 Dominik Haumann <dhaumann kde org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef VARIABLE_LIST_VIEW_H
22 #define VARIABLE_LIST_VIEW_H
23 
24 #include <QtCore/QMap>
25 #include <QtGui/QScrollArea>
26 
27 class VariableItem;
28 class VariableEditor;
29 
30 class VariableListView : public QScrollArea
31 {
32  Q_OBJECT
33 
34 public:
35  VariableListView(const QString& variableLine, QWidget* parent = 0);
36  virtual ~VariableListView();
37 
38  void addItem(VariableItem* item);
39 
41  QString variableLine();
42 
43 Q_SIGNALS:
44  void aboutToHide();
45  void changed(); // unused right now
46 
47 protected:
48  virtual void resizeEvent(QResizeEvent* event);
49  virtual void hideEvent(QHideEvent* event);
50 
51  void parseVariables(const QString& line);
52 
53  QVector<VariableItem *> m_items;
54  QVector<VariableEditor *> m_editors;
55 
56  QMap<QString, QString> m_variables;
57 };
58 
59 #endif
60 
61 // kate: indent-width 2; replace-tabs on;
QHideEvent
QResizeEvent
QWidget
VariableListView::hideEvent
virtual void hideEvent(QHideEvent *event)
Definition: variablelistview.cpp:107
QMap< QString, QString >
VariableListView::variableLine
QString variableLine()
always returns the up-to-date variables line
Definition: variablelistview.cpp:115
VariableListView::aboutToHide
void aboutToHide()
VariableListView::addItem
void addItem(VariableItem *item)
Definition: variablelistview.cpp:68
VariableListView::m_editors
QVector< VariableEditor * > m_editors
Definition: variablelistview.h:54
VariableListView::parseVariables
void parseVariables(const QString &line)
Definition: variablelistview.cpp:41
VariableItem
Definition: variableitem.h:32
QScrollArea::event
virtual bool event(QEvent *e)
VariableListView::VariableListView
VariableListView(const QString &variableLine, QWidget *parent=0)
Definition: variablelistview.cpp:27
VariableListView
Definition: variablelistview.h:30
QString
VariableListView::changed
void changed()
VariableEditor
Definition: variableeditor.h:50
QVector< VariableItem * >
VariableListView::m_variables
QMap< QString, QString > m_variables
Definition: variablelistview.h:56
VariableListView::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: variablelistview.cpp:85
VariableListView::~VariableListView
virtual ~VariableListView()
Definition: variablelistview.cpp:37
VariableListView::m_items
QVector< VariableItem * > m_items
Definition: variablelistview.h:53
QScrollArea
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

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