blogilo
toolbox.cpp
Go to the documentation of this file.
76 connect( btnEntriesRemove, SIGNAL(clicked(bool)), this, SLOT(slotRemoveSelectedEntryFromServer()) );
117 KMessageBox::sorry( this, i18n( "No blog has been selected: you have to select a blog from the Blogs page before asking for the list of categories." ) );
132 KMessageBox::sorry( this, i18n( "No blog has been selected: you have to select a blog from the Blogs page before asking for the list of entries." ) );
166 QListWidgetItem *lstItem = new QListWidgetItem( listEntries[i].value(QLatin1String("title")).toString() );
207 if ( KMessageBox::warningYesNoCancel(this, i18n( "Removing a post from your blog cannot be undone.\nAre you sure you want to remove the post with title \"%1\" from your blog?", lstEntriesList->currentItem()->text() ))
221 KMessageBox::information( this, i18nc( "Post removed from Blog", "Post with title \"%1\" removed from \"%2\".",
230 KMessageBox::detailedError( this, i18n( "An error occurred in the latest transaction." ), errorMessage );
295 currentPost->setModificationDateTime( KDateTime( currentPost->modificationDateTime().dateTime(),
327 post->setCreationDateTime(KDateTime(post->creationDateTime().dateTime(), KDateTime::LocalZone));
328 post->setModificationDateTime(KDateTime(post->modificationDateTime().dateTime(), KDateTime::LocalZone));
370 QStringList t = txtCatTags->text().split( QRegExp( QString::fromUtf8(",|،") ), QString::SkipEmptyParts );
394 BilboPost post = DBMan::self()->getPostInfo( lstEntriesList->currentItem()->data( BlogEntryID ).toInt() );
400 KMessageBox::sorry(this, i18n( "No link field is available in the database for this entry." ) );
435 QTreeWidgetItem *item = new QTreeWidgetItem( localEntries, QStringList()<<postTitle<<blogTitle );
452 if ( KMessageBox::warningYesNo(this, i18n("Are you sure you want to remove the selected local entry?"))
471 if ( KMessageBox::warningContinueCancel(this, i18n("Are you sure you want to clear the list of entries?")) ==
477 KMessageBox::detailedSorry(this, i18n( "Cannot clear the list of entries." ) , DBMan::self()->lastErrorText());
512 BilboPost post = DBMan::self()->getPostInfo( lstEntriesList->currentItem()->data( BlogEntryID ).toInt() );
void customContextMenuRequested(const QPoint &pos)
void setupUi(QWidget *widget)
void sigError(const QString &)
void setCursor(const QCursor &)
QObject * sender() const
const T & at(int i) const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
virtual void setData(int column, int role, const QVariant &value)
void sigEntrySelected(BilboPost &post, int blog_id)
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
virtual QVariant data(int column, int role) const
QList< QVariantMap > listLocalPosts()
Returns list of locally saved posts.
Definition: dbman.cpp:1363
QString toolTip() const
int count(const T &value) const
void append(const T &value)
QString fromUtf8(const char *str, int size)
int toInt(bool *ok) const
QClipboard * clipboard()
void setToolTip(const QString &toolTip)
void slotPostRemoved(int blog_id, const BilboPost &post)
Definition: toolbox.cpp:219
virtual QVariant data(int role) const
Extend QCheckBox to add property needed for Category checkboxes.
Definition: catcheckbox.h:37
void deleteLater()
void slotRemoveSelectedEntryFromServer()
Definition: toolbox.cpp:203
void setForeground(const QBrush &brush)
Definition: entriescountdialog.h:36
void requestEntriesListContextMenu(const QPoint &pos)
Definition: toolbox.cpp:486
void slotLocalEntrySelected(QTreeWidgetItem *, int column)
Definition: toolbox.cpp:441
void getEntriesListFromServer(int count)
retrieve latest posts from server
Definition: backend.cpp:133
virtual void setData(int role, const QVariant &value)
QTime currentTime()
QDateTime currentDateTime()
QPoint pos()
void getFieldsValue(BilboPost *currentPost)
Will set current state of toolbox (Current post) properties on input pointer!
Definition: toolbox.cpp:274
QDate currentDate()
QList< QVariantMap > listPostsInfo(int blog_id)
QString as Title, and int as post_id.
Definition: dbman.cpp:1215
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
void getCategoryListFromServer()
Request to Fetch categories list from server.
Definition: backend.cpp:92
void slotLoadCategoryListFromDB(int blog_id)
Definition: toolbox.cpp:180
void setText(const QString &text, Mode mode)
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void sigBusy(bool isBusy)
const T value(const Key &key) const
singleShot
void setCategoryList(const QList< Category > &list)
Definition: bilbopost.cpp:141
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:16 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:32:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.