KParts
browseropenorsavequestion.cpp
Go to the documentation of this file.
81 iconLabel->setPixmap(icon.pixmap(style()->pixelMetric(QStyle::PM_MessageBoxIconSize, &option, this)));
109 dontAskAgainCheckBox->setText(i18nc("@label:checkbox", "Remember action for files of this type"));
125 KNotification::event("messageQuestion", // why does KMessageBox uses Information for questionYesNoCancel?
140 KGuiItem openItem(i18nc("@label:button", "&Open with %1", selectedService->name()), selectedService->icon());
176BrowserOpenOrSaveQuestion::BrowserOpenOrSaveQuestion(QWidget* parent, const KUrl& url, const QString& mimeType)
209 const KService::List apps = KFileItemActions::associatedApplications(QStringList() << d->mimeType,
241 kDebug() << "Not using new feature ServiceSelection; port the caller to BrowserOpenOrSaveQuestion::setFeature(ServiceSelection)";
291 d->setButtonGuiItem(BrowserOpenOrSaveQuestionPrivate::OpenDefault, KGuiItem(i18nc("@label:button", "&Open"), "document-open"));
318 d->fileNameLabel->setWhatsThis(i18nc("@info:whatsthis", "This is the file name suggested by the server"));
static KAction * createAppAction(const KService::Ptr &service, QObject *parent)
Definition: browseropenorsavequestion.cpp:186
NoGlobals
InstantPopup
QWidget * mainWidget()
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
KPushButton * button(ButtonCode id) const
virtual void slotButtonClicked(int button)
static int spacingHint()
void setButtons(ButtonCodes buttonMask)
ButtonCode
Yes
User1
Cancel
User2
void setDefaultButton(ButtonCode id)
virtual void setCaption(const QString &caption)
static KService::List associatedApplications(const QStringList &mimeTypeList, const QString &traderConstraint)
QString text() const
ResolveAliases
static Ptr mimeType(const QString &name, FindByNameOption options=ResolveAliases)
static KNotification * event(const QString &eventId, const QString &text=QString(), const QPixmap &pixmap=QPixmap(), QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout, const KComponentData &componentData=KComponentData())
KService::Ptr selectedService() const
Definition: browseropenorsavequestion.cpp:254
Result askOpenOrSave()
Ask the user whether to save or open a url in another application.
Definition: browseropenorsavequestion.cpp:198
Result askEmbedOrSave(int flags=0)
Ask the user whether to save or open a url in another application.
Definition: browseropenorsavequestion.cpp:285
void setFeatures(Features features)
Enables the given features in the dialog.
Definition: browseropenorsavequestion.cpp:305
void setSuggestedFileName(const QString &suggestedFileName)
Sets the suggested filename, shown in the dialog.
Definition: browseropenorsavequestion.cpp:310
@ ServiceSelection
Shows "Open With..." with the associated applications for the mimetype.
Definition: browseropenorsavequestion.h:65
BrowserOpenOrSaveQuestion(QWidget *parent, const KUrl &url, const QString &mimeType)
Constructor, for all kinds of dialogs shown in this class.
Definition: browseropenorsavequestion.cpp:176
~BrowserOpenOrSaveQuestion()
Definition: browseropenorsavequestion.cpp:181
#define kDebug
QString i18nc(const char *ctxt, const char *text)
Save
KGuiItem saveAs()
KGuiItem cancel()
Cancel
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.