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());
176 BrowserOpenOrSaveQuestion::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"));
KGuiItem cancel()
void setButtonGuiItem(ButtonCode id, const KGuiItem &item)
ResolveAliases
QString text() const
Cancel
QString name() const
void setSuggestedFileName(const QString &suggestedFileName)
Sets the suggested filename, shown in the dialog.
Definition: browseropenorsavequestion.cpp:310
Yes
static KAction * createAppAction(const KService::Ptr &service, QObject *parent)
Definition: browseropenorsavequestion.cpp:186
virtual void slotButtonClicked(int button)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual void setCaption(const QString &caption)
ButtonCode
QString i18nc(const char *ctxt, const char *text)
QWidget * mainWidget()
void setFeatures(Features features)
Enables the given features in the dialog.
Definition: browseropenorsavequestion.cpp:305
Result askOpenOrSave()
Ask the user whether to save or open a url in another application.
Definition: browseropenorsavequestion.cpp:198
NoGlobals
KGuiItem saveAs()
static int spacingHint()
~BrowserOpenOrSaveQuestion()
Definition: browseropenorsavequestion.cpp:181
bool is(const QString &mimeTypeName) const
BrowserOpenOrSaveQuestion(QWidget *parent, const KUrl &url, const QString &mimeType)
Constructor, for all kinds of dialogs shown in this class.
Definition: browseropenorsavequestion.cpp:176
void setButtons(ButtonCodes buttonMask)
Save
void setDefaultButton(ButtonCode id)
Cancel
InstantPopup
static KNotification * event(const QString &eventId, const QString &title, const QString &text, const QPixmap &pixmap=QPixmap(), QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout, const KComponentData &componentData=KComponentData())
Result askEmbedOrSave(int flags=0)
Ask the user whether to save or open a url in another application.
Definition: browseropenorsavequestion.cpp:285
static KService::List associatedApplications(const QStringList &mimeTypeList, const QString &traderConstraint)
KService::Ptr selectedService() const
Definition: browseropenorsavequestion.cpp:254
User2
static Ptr mimeType(const QString &name, FindByNameOption options=ResolveAliases)
User1
Shows "Open With..." with the associated applications for the mimetype.
Definition: browseropenorsavequestion.h:65
QString icon() const
KPushButton * button(ButtonCode id) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Wed May 10 2017 09:32:17 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Wed May 10 2017 09:32:17 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.