KNewStuff
#include <knewstuffbutton.h>
Signals | |
void | aboutToShowDialog () |
void | dialogFinished (const KNS3::Entry::List &changedEntries) |
Signals inherited from KPushButton | |
void | authorized (KAuth::Action *action) |
Public Member Functions | |
Button (const QString &text, const QString &configFile, QWidget *parent) | |
Button (QWidget *parent) | |
~Button () | |
void | setButtonText (const QString &text) |
void | setConfigFile (const QString &configFile) |
Public Member Functions inherited from KPushButton | |
KPushButton (QWidget *parent=0) | |
KPushButton (const QString &text, QWidget *parent=0) | |
KPushButton (const KGuiItem &item, QWidget *parent=0) | |
KPushButton (const KIcon &icon, const QString &text, QWidget *parent=0) | |
~KPushButton () | |
KAuth::Action * | authAction () const |
QMenu * | delayedMenu () |
KStandardGuiItem::StandardItem | guiItem () const |
bool | isDragEnabled () const |
void | setAuthAction (KAuth::Action *action) |
void | setAuthAction (const QString &actionName) |
void | setDelayedMenu (QMenu *delayed_menu) |
void | setDragEnabled (bool enable) |
void | setGuiItem (const KGuiItem &item) |
void | setGuiItem (KStandardGuiItem::StandardItem item) |
void | setIcon (const QIcon &pix) |
void | setIcon (const KIcon &icon) |
void | setText (const QString &text) |
virtual QSize | sizeHint () const |
Protected Slots | |
void | showDialog () |
Additional Inherited Members | |
Protected Member Functions inherited from KPushButton | |
virtual QDrag * | dragObject () |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | paintEvent (QPaintEvent *) |
virtual void | startDrag () |
Properties inherited from KPushButton | |
bool | isDragEnabled |
Detailed Description
KHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating most of the details involved in using KHotNewStuff in the button itself.
- Since
- 4.4
Definition at line 37 of file knewstuff3/knewstuffbutton.h.
Constructor & Destructor Documentation
Constructor used when the details of the KHotNewStuff download is known when the button is created.
- Parameters
-
text describing what is being downloaded. It should be a text beginning with "Download New ..." for consistency configFile the name of the .knsrc file parent the parent widget
Definition at line 33 of file knewstuff3/knewstuffbutton.cpp.
KNS3::Button::Button | ( | QWidget * | parent | ) |
Constructor used when the details of the KHotNewStuff download is not known in advance of the button being created.
- Parameters
-
parent the parent widget
Definition at line 44 of file knewstuff3/knewstuffbutton.cpp.
KNS3::Button::~Button | ( | ) |
Definition at line 52 of file knewstuff3/knewstuffbutton.cpp.
Member Function Documentation
|
signal |
emitted when the Hot New Stuff dialog is about to be shown, usually as a result of the user having click on the button
|
signal |
emitted when the Hot New Stuff dialog has been closed
void KNS3::Button::setButtonText | ( | const QString & | text | ) |
set the text that should appear on the button.
will be prefaced with i18n("Download New")
Definition at line 63 of file knewstuff3/knewstuffbutton.cpp.
void KNS3::Button::setConfigFile | ( | const QString & | configFile | ) |
set the name of the .knsrc file to use
Definition at line 68 of file knewstuff3/knewstuffbutton.cpp.
|
protectedslot |
Definition at line 73 of file knewstuff3/knewstuffbutton.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.