diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-11-13 19:53:11 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-11-13 19:53:22 +0900 |
commit | 98b37ff3b1d307add5fe3f9e1f9c7923831debd4 (patch) | |
tree | f99bdc8ee40242e1baba1d09b2522e1344098c5d /gui/polkittqt1-gui-actionbuttons.h | |
parent | 8f1d08da58bce00523534cf39807732f7dee91ce (diff) | |
download | polkit-tqt-98b37ff3b1d307add5fe3f9e1f9c7923831debd4.tar.gz polkit-tqt-98b37ff3b1d307add5fe3f9e1f9c7923831debd4.zip |
Conversion of 'gui' library module.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'gui/polkittqt1-gui-actionbuttons.h')
-rw-r--r-- | gui/polkittqt1-gui-actionbuttons.h | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/gui/polkittqt1-gui-actionbuttons.h b/gui/polkittqt1-gui-actionbuttons.h deleted file mode 100644 index 4324b0bf9..000000000 --- a/gui/polkittqt1-gui-actionbuttons.h +++ /dev/null @@ -1,114 +0,0 @@ -/* - * This file is part of the Polkit-tqt project - * Copyright (C) 2009 Dario Freddi <drf@kde.org> - * - * 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 POLKIT_TQT_GUI_ACTIONBUTTONS_H -#define POLKIT_TQT_GUI_ACTIONBUTTONS_H - -#include "polkit-tqt-gui-actionbutton.h" - -namespace PolkitTQt -{ - -namespace Gui -{ - -class ActionButtonsPrivate; -/** - * \class ActionButtons polkit-tqt-gui-actionbuttons.h ActionButtons - * \author Dario Freddi <drf@kde.org> - * - * \brief Class used to hold and update a list of TQAbstractButtons - * - * This class is a convenience wrapper around ActionButton that lets - * you associate an undefined number of TQAbstractButtons with a single - * action. Every button will be updated accordingly upon action's properties - * changes. - * - * \see ActionButton - */ -class ActionButtons : public ActionButton -{ - Q_OBJECT - TQ_DECLARE_PRIVATE(ActionButtons) - TQ_DISABLE_COPY(ActionButtons) - -public: - /** - * Constructs a new ActionButton. You need to pass this - * constructor an existing list of TQAbstractButtons, whose properties - * will be modified according to the underlying Action - * object. As ActionButtons inherits from Action, you can - * define your buttons' behavior right through this wrapper. - * - * \see Action - * - * \param buttons the TQAbstractButton to associate to this ActionButton - * \param actionId the action Id to create the underlying Action - * \param parent the parent object - */ - explicit ActionButtons(const TQList<TQAbstractButton *> &buttons, const TQString &actionId = TQString(), TQObject *parent = 0); - virtual ~ActionButtons(); - - /** - * Sets a list of buttons associated to the underlying action. - * - * \note If you are calling this function, you're probably - * changing the buttons list the action is referring to. If this - * is the case, please note that Polkit-TQt does not handle - * the previous buttons' memory, so you should take care of - * deleting them yourself (if needed). You can retrieve it by - * using buttons() - * - * \see buttons - * - * \param buttons the new buttons associated with the underlying action - */ - void setButtons(const TQList<TQAbstractButton *> &buttons); - - /** - * Returns the current buttons list - * - * \return the buttons currently associated with the underlying action - */ - TQList<TQAbstractButton *> buttons() const; - - /** - * Adds a button to the current button list. The button's properties - * will be updated according to the action upon adding. - * - * \param button the button to add - */ - void addButton(TQAbstractButton *button); - - /** - * Removes a button from the current list. Please note that Polkit-TQt - * does not handle the removed button's memory, so you should take care of - * deleting it yourself (if needed). - * - * \param button the button to remove - */ - void removeButton(TQAbstractButton *button); -}; - -} - -} - -#endif |