• 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
  • viewprofiles
viewprofilesmanagedialog.h
Go to the documentation of this file.
1 /*
2  This file is part of the Okteta Kasten module, made within the KDE community.
3 
4  Copyright 2010,2012 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef VIEWPROFILESMANAGEDIALOG_H
24 #define VIEWPROFILESMANAGEDIALOG_H
25 
26 // lib
27 #include <bytearrayviewprofile.h>
28 // KDE
29 #include <KDialog>
30 
31 template< class C > class QList;
32 class QTreeView;
33 
34 
35 namespace Kasten2
36 {
37 
38 class ByteArrayViewProfileManager;
39 class ViewProfileTableModel;
40 
41 
42 class ViewProfilesManageDialog : public KDialog
43 {
44  Q_OBJECT
45 
46  public:
47  explicit ViewProfilesManageDialog( ByteArrayViewProfileManager* viewProfileManager,
48  QWidget* parent = 0 );
49 
50  virtual ~ViewProfilesManageDialog();
51 
52  protected Q_SLOTS:
53  void onViewProfileSelectionChanged();
54 
55  void onCreateNewButtonClicked();
56  void onEditButtonClicked();
57  void onSetDefaultButtonClicked();
58  void onDeleteButtonClicked();
59 
60  void onModelReset();
61  void onViewProfilesLocked( const QList<Kasten2::ByteArrayViewProfile::Id>& viewProfileIds );
62  void onViewProfilesUnlocked( const QList<Kasten2::ByteArrayViewProfile::Id>& viewProfileIds );
63  void onDefaultViewProfileChanged( const Kasten2::ByteArrayViewProfile::Id& viewProfileId );
64 
65  private:
66  ByteArrayViewProfileManager* mViewProfileManager;
67  ViewProfileTableModel* mViewProfileTableModel;
68  ByteArrayViewProfile::Id mCurrentViewProfileId;
69 
70  QTreeView* mViewProfileTableView;
71  KPushButton* mEditButton;
72  KPushButton* mSetDefaultButton;
73  KPushButton* mDeleteButton;
74 };
75 
76 }
77 
78 #endif
Kasten2::ViewProfilesManageDialog::onViewProfilesUnlocked
void onViewProfilesUnlocked(const QList< Kasten2::ByteArrayViewProfile::Id > &viewProfileIds)
Definition: viewprofilesmanagedialog.cpp:302
Kasten2::ByteArrayViewProfile::Id
QString Id
Definition: bytearrayviewprofile.h:42
Kasten2::ViewProfilesManageDialog::onDefaultViewProfileChanged
void onDefaultViewProfileChanged(const Kasten2::ByteArrayViewProfile::Id &viewProfileId)
Definition: viewprofilesmanagedialog.cpp:315
Kasten2::ViewProfilesManageDialog::onModelReset
void onModelReset()
Definition: viewprofilesmanagedialog.cpp:264
QWidget
Kasten2::ViewProfilesManageDialog::onSetDefaultButtonClicked
void onSetDefaultButtonClicked()
Definition: viewprofilesmanagedialog.cpp:239
Kasten2::ViewProfilesManageDialog::onEditButtonClicked
void onEditButtonClicked()
Definition: viewprofilesmanagedialog.cpp:206
KDialog
bytearrayviewprofile.h
Kasten2::ViewProfilesManageDialog::~ViewProfilesManageDialog
virtual ~ViewProfilesManageDialog()
Definition: viewprofilesmanagedialog.cpp:322
Kasten2::ViewProfilesManageDialog
Definition: viewprofilesmanagedialog.h:42
Kasten2::ViewProfilesManageDialog::onCreateNewButtonClicked
void onCreateNewButtonClicked()
Definition: viewprofilesmanagedialog.cpp:168
Kasten2::ViewProfilesManageDialog::ViewProfilesManageDialog
ViewProfilesManageDialog(ByteArrayViewProfileManager *viewProfileManager, QWidget *parent=0)
Definition: viewprofilesmanagedialog.cpp:43
Kasten2::ViewProfilesManageDialog::onViewProfilesLocked
void onViewProfilesLocked(const QList< Kasten2::ByteArrayViewProfile::Id > &viewProfileIds)
Definition: viewprofilesmanagedialog.cpp:290
Kasten2::ViewProfilesManageDialog::onDeleteButtonClicked
void onDeleteButtonClicked()
Definition: viewprofilesmanagedialog.cpp:250
Kasten2::ViewProfileTableModel
Definition: viewprofiletablemodel.h:39
Kasten2::viewProfileIds
static QList< ByteArrayViewProfile::Id > viewProfileIds(const QList< ByteArrayViewProfile > &viewProfiles)
Definition: bytearrayviewprofilemanager.cpp:58
Kasten2::ByteArrayViewProfileManager
Definition: bytearrayviewprofilemanager.h:65
Kasten2::ViewProfilesManageDialog::onViewProfileSelectionChanged
void onViewProfileSelectionChanged()
Definition: viewprofilesmanagedialog.cpp:149
QList
Definition: bookmarkable.h:29
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