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"));
void setText(const QString &text)
KGuiItem cancel()
QVariant data() const
void setPixmap(const QPixmap &)
void setIcon(const QIcon &icon)
QString host() const
void setSuggestedFileName(const QString &suggestedFileName)
Sets the suggested filename, shown in the dialog.
Definition: browseropenorsavequestion.cpp:310
T value() const
static KAction * createAppAction(const KService::Ptr &service, QObject *parent)
Definition: browseropenorsavequestion.cpp:186
void addSpacing(int size)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString i18nc(const char *ctxt, const char *text)
void initFrom(const QWidget *widget)
void setFeatures(Features features)
Enables the given features in the dialog.
Definition: browseropenorsavequestion.cpp:305
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
Result askOpenOrSave()
Ask the user whether to save or open a url in another application.
Definition: browseropenorsavequestion.cpp:198
KGuiItem saveAs()
~BrowserOpenOrSaveQuestion()
Definition: browseropenorsavequestion.cpp:181
bool isEmpty() const
bool isEmpty() const
BrowserOpenOrSaveQuestion(QWidget *parent, const KUrl &url, const QString &mimeType)
Constructor, for all kinds of dialogs shown in this class.
Definition: browseropenorsavequestion.cpp:176
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
T & first()
void setText(const QString &)
void setMargin(int margin)
void setData(const QVariant &userData)
iterator end()
QString toLower() const
QString icon() const
QVariant fromValue(const T &value)
void setTextInteractionFlags(QFlags< Qt::TextInteractionFlag > flags)
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)
void addStretch(int stretch)
KService::Ptr selectedService() const
Definition: browseropenorsavequestion.cpp:254
QString text() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Shows "Open With..." with the associated applications for the mimetype.
Definition: browseropenorsavequestion.h:65
iterator begin()
void setSpacing(int spacing)
void addLayout(QLayout *layout, int stretch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.