/* Copyright (C) 2008 Michael Jansen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ACTIONGROUPWIDGET_H #define ACTIONGROUPWIDGET_H #include "hotkeys_widget_base.h" class ConditionsWidget; /** * @author Michael Jansen */ class ActionGroupWidget : public HotkeysWidgetBase { Q_OBJECT typedef HotkeysWidgetBase Base; public: /** * Default constructor */ ActionGroupWidget( QWidget *parent = 0 ); /** * Destructor */ virtual ~ActionGroupWidget(); /** * The associated action. */ KHotKeys::ActionDataBase *data() { return static_cast( _data ); } const KHotKeys::ActionDataBase *data() const { return static_cast( _data ); } //! Are there uncommited changes? bool isChanged() const; void setActionData( KHotKeys::ActionDataGroup *group ); private: void doCopyFromObject(); void doCopyToObject(); //! Widget to change the conditions ConditionsWidget *_conditions; }; #endif /* #ifndef ACTIONGROUPWIDGET_HPP */