• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KNewStuff

  • KNS3
  • UploadDialog
Classes | Public Slots | Public Member Functions
KNS3::UploadDialog Class Reference

#include <uploaddialog.h>

Inheritance diagram for KNS3::UploadDialog:
KDialog QDialog

List of all members.

Classes

class  Private

Public Slots

virtual void accept ()
- Public Slots inherited from KDialog
void delayedDestruct ()
void enableButton (ButtonCode id, bool state)
void enableButtonApply (bool state)
void enableButtonCancel (bool state)
void enableButtonOk (bool state)
void enableLinkedHelp (bool state)
bool isDetailsWidgetVisible () const
virtual void setCaption (const QString &caption)
virtual void setCaption (const QString &caption, bool modified)
void setDetailsWidget (QWidget *detailsWidget)
void setDetailsWidgetVisible (bool visible)
void setHelp (const QString &anchor, const QString &appname=QString())
void setHelpLinkText (const QString &text)
virtual void setPlainCaption (const QString &caption)

Public Member Functions

 UploadDialog (QWidget *parent=0)
 UploadDialog (const QString &configFile, QWidget *parent=0)
 ~UploadDialog ()
void selectCategory (const QString &category)
void setChangelog (const QString &changelog)
void setDescription (const QString &description)
void setPreviewImageFile (uint number, const KUrl &file)
void setPrice (double price)
void setPriceEnabled (bool enabled)
void setPriceReason (const QString &reason)
void setUploadFile (const KUrl &payloadFile)
void setUploadName (const QString &name)
void setVersion (const QString &version)
- Public Member Functions inherited from KDialog
 KDialog (QWidget *parent=0, Qt::WindowFlags flags=0)
 ~KDialog ()
KPushButton * button (ButtonCode id) const
KIcon buttonIcon (ButtonCode id) const
QString buttonText (ButtonCode id) const
QString buttonToolTip (ButtonCode id) const
QString buttonWhatsThis (ButtonCode id) const
ButtonCode defaultButton () const
QString helpLinkText () const
void incrementInitialSize (const QSize &size)
bool isButtonEnabled (ButtonCode id) const
QWidget * mainWidget ()
virtual QSize minimumSizeHint () const
void restoreDialogSize (const KConfigGroup &config)
void saveDialogSize (KConfigGroup &config, KConfigGroup::WriteConfigFlags options=KConfigGroup::Normal) const
void setButtonFocus (ButtonCode id)
void setButtonGuiItem (ButtonCode id, const KGuiItem &item)
void setButtonIcon (ButtonCode id, const KIcon &icon)
void setButtonMenu (ButtonCode id, QMenu *menu, ButtonPopupMode popupmode=InstantPopup)
void setButtons (ButtonCodes buttonMask)
void setButtonsOrientation (Qt::Orientation orientation)
void setButtonText (ButtonCode id, const QString &text)
void setButtonToolTip (ButtonCode id, const QString &text)
void setButtonWhatsThis (ButtonCode id, const QString &text)
void setDefaultButton (ButtonCode id)
void setEscapeButton (ButtonCode id)
void setInitialSize (const QSize &size)
void setMainWidget (QWidget *widget)
void showButton (ButtonCode id, bool state)
void showButtonSeparator (bool state)
virtual QSize sizeHint () const

Additional Inherited Members

- Public Types inherited from KDialog
enum  ButtonCode
enum  ButtonPopupMode
enum  CaptionFlag
- Signals inherited from KDialog
void aboutToShowDetails ()
void applyClicked ()
void buttonClicked (KDialog::ButtonCode button)
void cancelClicked ()
void closeClicked ()
void defaultClicked ()
void finished ()
void helpClicked ()
void hidden ()
void layoutHintChanged ()
void noClicked ()
void okClicked ()
void resetClicked ()
void tryClicked ()
void user1Clicked ()
void user2Clicked ()
void user3Clicked ()
void yesClicked ()
- Static Public Member Functions inherited from KDialog
static bool avoidArea (QWidget *widget, const QRect &area, int screen=-1)
static void centerOnScreen (QWidget *widget, int screen=-1)
static int groupSpacingHint ()
static QString makeStandardCaption (const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption)
static int marginHint ()
static void resizeLayout (QLayout *lay, int margin, int spacing)
static void resizeLayout (QWidget *widget, int margin, int spacing)
static void setAllowEmbeddingInGraphicsView (bool allowEmbedding)
static int spacingHint ()
- Public Attributes inherited from KDialog
 Apply
 AppNameCaption
 Cancel
 Close
 Default
 DelayedPopup
 Details
 Help
 HIGCompliantCaption
 InstantPopup
 ModifiedCaption
 No
 NoCaptionFlags
 NoDefault
 None
 Ok
 Reset
 Try
 User1
 User2
 User3
 Yes
- Protected Slots inherited from KDialog
virtual void slotButtonClicked (int button)
void updateGeometry ()
- Protected Member Functions inherited from KDialog
 KDialog (KDialogPrivate &dd, QWidget *parent, Qt::WindowFlags flags=0)
virtual void closeEvent (QCloseEvent *e)
virtual void hideEvent (QHideEvent *)
virtual void keyPressEvent (QKeyEvent *)
- Protected Attributes inherited from KDialog
KDialogPrivate *const d_ptr

Detailed Description

KNewStuff file upload dialog.

Using this dialog, data can easily be uploaded to the Hotstuff servers.

Maintainer:
Jeremy Whiting (jpwhi.nosp@m.ting.nosp@m.@kde..nosp@m.org)
Since:
4.4

Definition at line 48 of file knewstuff3/uploaddialog.h.


Constructor & Destructor Documentation

UploadDialog::UploadDialog ( QWidget *  parent = 0)
explicit

Create a new upload dialog.

Parameters:
parentthe parent window

Definition at line 383 of file knewstuff3/uploaddialog.cpp.

UploadDialog::UploadDialog ( const QString &  configFile,
QWidget *  parent = 0 
)
explicit

Create a new upload dialog.

Parameters:
parentthe parent window

Definition at line 391 of file knewstuff3/uploaddialog.cpp.

UploadDialog::~UploadDialog ( )

Destructor.

Definition at line 397 of file knewstuff3/uploaddialog.cpp.


Member Function Documentation

void UploadDialog::accept ( )
virtualslot

Definition at line 546 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::selectCategory ( const QString &  category)

Set the suggested category for the upload.

The .knsrc file may contain multiple upload categories, this sets which one is pre-selected. It does not add any new category to the list of available categories.

Parameters:
categorythe suggested category for the upload

Definition at line 461 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setChangelog ( const QString &  changelog)

Set the suggested changelog displayed in the upload dialog.

The user can still change this.

Parameters:
versionversion

Definition at line 466 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setDescription ( const QString &  description)

Set the suggested description displayed in the upload dialog.

The user can still change this.

Parameters:
description

Definition at line 471 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPreviewImageFile ( uint  number,
const KUrl &  file 
)

Set one of the threee preview images displayed in the upload dialog.

The user can still change this.

Parameters:
numberThe number of the preview image to set, either 1, 2, or 3.
fileA URL to the file to be used as preview image
Since:
4.6

Definition at line 498 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPrice ( double  price)

Set the suggested price displayed in the upload dialog.

The user can still change this.

Parameters:
versionversion

Definition at line 482 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPriceEnabled ( bool  enabled)

Enable the UI to let the user to set a price for the uploaded item.

Parameters:
enabledenable the price option - it is enabled by default
Since:
4.5

Definition at line 476 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPriceReason ( const QString &  reason)

Set the suggested rationale why this item costs something to download.

The user can still change this.

Parameters:
versionversion

Definition at line 488 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setUploadFile ( const KUrl &  payloadFile)

Set the file to be uploaded.

This has to be set for the dialog to work, before displaying the dialog.

Parameters:
payloadFilethe payload data file

Definition at line 443 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setUploadName ( const QString &  name)

Set the suggested title for the upload.

The application can suggest a title which can then be edited by the user before uploading. The name field will be left empty if no title was set.

Parameters:
namethe suggested name for the upload

Definition at line 456 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setVersion ( const QString &  version)

Set the suggested version displayed in the upload dialog.

The user can still change this.

Parameters:
version

Definition at line 493 of file knewstuff3/uploaddialog.cpp.


The documentation for this class was generated from the following files:
  • knewstuff3/uploaddialog.h
  • knewstuff3/uploaddialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:41:08 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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