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

liblancelot

  • sources
  • kde-4.14
  • workspace
  • kdeplasma-addons
  • libs
  • lancelot
  • widgets
PassagewayView.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007, 2008, 2009, 2010 Ivan Cukic <ivan.cukic(at)kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser/Library General Public License version 2,
6  * or (at your option) any later version, as published by the Free
7  * Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser/Library General Public License for more details
13  *
14  * You should have received a copy of the GNU Lesser/Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef LANCELOT_PASSAGEWAY_VIEW_H
21 #define LANCELOT_PASSAGEWAY_VIEW_H
22 
23 #include <QtGui/QGraphicsLinearLayout>
24 #include <QtGui/QIcon>
25 
26 #include <lancelot/lancelot.h>
27 #include <lancelot/lancelot_export.h>
28 #include <lancelot/layouts/ColumnLayout.h>
29 #include <lancelot/layouts/NodeLayout.h>
30 #include <lancelot/models/ActionListModel.h>
31 #include <lancelot/models/ActionTreeModel.h>
32 #include <lancelot/widgets/ActionListView.h>
33 #include <lancelot/widgets/Panel.h>
34 #include <lancelot/widgets/PassagewayView.h>
35 #include <lancelot/widgets/Widget.h>
36 
37 namespace Lancelot
38 {
39 
45 class LANCELOT_EXPORT PassagewayView : public Lancelot::Panel
46 {
47  Q_OBJECT
48 
49  Q_PROPERTY ( int activationMethod READ activationMethod WRITE setActivationMethod )
50 
51  // @puck L_WIDGET
52  // @puck L_INCLUDE(lancelot/widgets/PassagewayView.h)
53 
54 public:
55  PassagewayView(QGraphicsItem * parent = 0);
56  explicit PassagewayView(ActionTreeModel * entranceModel,
57  ActionTreeModel * atlasModel = 0, QGraphicsItem * parent = 0);
58  virtual ~PassagewayView();
59 
60  // Entrance
61  void setEntranceModel(ActionTreeModel * model);
62  void setEntranceTitle(const QString & title);
63  void setEntranceIcon(QIcon icon);
64 
65  // Atlas
66  void setAtlasModel(ActionTreeModel * model);
67  void setAtlasTitle(const QString & title);
68  void setAtlasIcon(QIcon icon);
69 
70  void setActivationMethod(int value);
71  int activationMethod() const;
72 
73  void setColumnLimit(int limit);
74  void reset();
75 
76  void clearSelection();
77 
78  L_Override void setGroup(Group * group = NULL);
79  L_Override void keyPressEvent(QKeyEvent * event);
80 
81 protected:
82  L_Override void hideEvent(QHideEvent * event);
83 
84 
85 protected Q_SLOTS:
86  virtual void listItemActivated(int itemIndex, int listIndex = -1);
87  virtual void pathButtonActivated();
88 
89 private:
90  class Private;
91  Private * const d;
92 };
93 
94 } // namespace Lancelot
95 
96 #endif /* LANCELOT_PASSAGEWAY_VIEW_H */
97 
QHideEvent
ColumnLayout.h
Panel.h
PassagewayView.h
QGraphicsItem
L_Override
#define L_Override
Definition: lancelot_export.h:41
lancelot_export.h
Lancelot::Group
Represents a group of object.
Definition: Global.h:63
Lancelot::PassagewayView
Class for non-click tree-browsing with a list of fast-access items Entrance - the list of fast-access...
Definition: PassagewayView.h:45
LANCELOT_EXPORT
#define LANCELOT_EXPORT
Definition: lancelot_export.h:32
NodeLayout.h
ActionListModel.h
Lancelot::Panel
A container widget with optional title-bar.
Definition: Panel.h:38
QString
Lancelot::ActionTreeModel
Definition: ActionTreeModel.h:30
ActionListView.h
Widget.h
QKeyEvent
lancelot.h
ActionTreeModel.h
QIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

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

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       GroupingDesktop
  •     liblancelot

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