not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / khotkeys / kcm_hotkeys / action_group_widget.h
blob25afae866ae35d678b5d418d68017b0d8968c34d
1 /*
2 Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
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 as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library 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 GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
19 #ifndef ACTIONGROUPWIDGET_H
20 #define ACTIONGROUPWIDGET_H
23 #include "hotkeys_widget_base.h"
25 /**
26 * @author Michael Jansen <kde@michael-jansen.biz>
28 class ActionGroupWidget : public HotkeysWidgetBase
30 Q_OBJECT
32 typedef HotkeysWidgetBase Base;
34 public:
36 /**
37 * Default constructor
39 ActionGroupWidget( QWidget *parent = 0 );
41 /**
42 * Destructor
44 virtual ~ActionGroupWidget();
46 /**
47 * The associated action.
49 KHotKeys::ActionDataBase *data()
51 return static_cast<KHotKeys::ActionDataBase*>( _data );
54 const KHotKeys::ActionDataBase *data() const
56 return static_cast<const KHotKeys::ActionDataBase*>( _data );
59 void setActionData( KHotKeys::ActionDataGroup *group );
61 private:
63 void doCopyFromObject();
64 void doCopyToObject();
68 #endif /* #ifndef ACTIONGROUPWIDGET_HPP */