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

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • kasten
  • controllers
  • view
  • structures
structview.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Okteta Kasten Framework, made within the KDE community.
3  *
4  * Copyright 2009, 2012 Alex Richardson <alex.richardson@gmx.de>
5  * Copyright 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) version 3, or any
11  * later version accepted by the membership of KDE e.V. (or its
12  * successor approved by the membership of KDE e.V.), which shall
13  * act as a proxy defined in Section 6 of version 3 of the license.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef STRUCTVIEW_H_
25 #define STRUCTVIEW_H_
26 #include <QtGui/QWidget>
27 #include "structviewitemdelegate.h"
28 #include <config-structtool.h>
29 
30 namespace Okteta {
31 class AbstractByteArrayModel;
32 }
33 
34 class KComboBox;
35 class QTreeView;
36 class KPushButton;
37 class KTextEdit;
38 //class ModelTest;
39 
40 namespace Kasten2
41 {
42 class StructTool;
43 class StructTreeModel;
44 
45 class StructView: public QWidget
46 {
47 Q_OBJECT
48 
49 public:
50  explicit StructView(StructTool* tool, QWidget* parent = 0);
51  virtual ~StructView();
52 
53 public:
54  StructTool* tool() const;
55  virtual bool eventFilter(QObject* object, QEvent* event);
56 
57 protected:
58  StructTool* mTool;
59 
60  StructTreeModel* mStructTreeModel;
61 // ModelTest* mModeltest;
62 
63  QTreeView* mStructTreeView;
64  KPushButton* mValidateButton;
65  KPushButton* mSettingsButton;
66  KPushButton* mScriptConsoleButton;
67  StructViewItemDelegate* mDelegate;
68  KPushButton* mLockStructureButton;
69  QWidget* mStructTreeViewFocusChild;
70 
71 protected Q_SLOTS:
72  void openSettingsDlg(int page = 0);
73  void openScriptConsole();
74  void onCurrentRowChanged(const QModelIndex& current, const QModelIndex& previous);
75  void onCursorIndexChange();
76  void lockButtonToggled();
77  void setLockButtonState(bool structureLocked);
78  void onByteArrayModelChanged(Okteta::AbstractByteArrayModel* model);
79 };
80 
81 inline StructTool* StructView::tool() const
82 {
83  return mTool;
84 }
85 
86 }
87 #endif /* STRUCTVIEW_H_ */
Kasten2::StructView
Definition: structview.h:45
Kasten2::StructView::setLockButtonState
void setLockButtonState(bool structureLocked)
Definition: structview.cpp:256
Kasten2::StructView::tool
StructTool * tool() const
Definition: structview.h:81
Kasten2::StructView::mScriptConsoleButton
KPushButton * mScriptConsoleButton
Definition: structview.h:66
Okteta::AbstractByteArrayModel
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
structviewitemdelegate.h
Kasten2::StructView::mStructTreeModel
StructTreeModel * mStructTreeModel
Definition: structview.h:60
Kasten2::StructView::mStructTreeView
QTreeView * mStructTreeView
Definition: structview.h:63
QWidget
Kasten2::StructView::mStructTreeViewFocusChild
QWidget * mStructTreeViewFocusChild
Definition: structview.h:69
QObject
Kasten2::StructView::~StructView
virtual ~StructView()
Definition: structview.cpp:236
Kasten2::StructView::onByteArrayModelChanged
void onByteArrayModelChanged(Okteta::AbstractByteArrayModel *model)
Definition: structview.cpp:285
Kasten2::StructView::openScriptConsole
void openScriptConsole()
Definition: structview.cpp:278
Kasten2::StructView::openSettingsDlg
void openSettingsDlg(int page=0)
Definition: structview.cpp:142
Kasten2::StructView::mLockStructureButton
KPushButton * mLockStructureButton
Definition: structview.h:68
Kasten2::StructView::onCurrentRowChanged
void onCurrentRowChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: structview.cpp:223
Kasten2::StructView::StructView
StructView(StructTool *tool, QWidget *parent=0)
Definition: structview.cpp:58
Kasten2::StructView::mValidateButton
KPushButton * mValidateButton
Definition: structview.h:64
Kasten2::StructView::mSettingsButton
KPushButton * mSettingsButton
Definition: structview.h:65
Kasten2::StructView::eventFilter
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: structview.cpp:178
Kasten2::StructTreeModel
Definition: structtreemodel.h:36
Kasten2::StructView::lockButtonToggled
void lockButtonToggled()
Definition: structview.cpp:240
Kasten2::StructView::mTool
StructTool * mTool
Definition: structview.h:58
Kasten2::StructView::onCursorIndexChange
void onCursorIndexChange()
Definition: structview.cpp:135
Kasten2::StructTool
Definition: structtool.h:49
StructViewItemDelegate
Definition: structviewitemdelegate.h:28
Kasten2::StructView::mDelegate
StructViewItemDelegate * mDelegate
Definition: structview.h:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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