• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

blogilo

  • sources
  • kde-4.14
  • kdepim
  • blogilo
  • src
toolbox.h
Go to the documentation of this file.
1 /*
2  This file is part of Blogilo, A KDE Blogging Client
3 
4  Copyright (C) 2008-2010 Mehrdad Momeny <mehrdad.momeny@gmail.com>
5  Copyright (C) 2008-2010 Golnaz Nilieh <g382nilieh@gmail.com>
6  Copyright (C) 2013-2015 Laurent Montel <montel@kde.org>
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2 of
11  the License or (at your option) version 3 or any later version
12  accepted by the membership of KDE e.V. (or its successor approved
13  by the membership of KDE e.V.), which shall act as a proxy
14  defined in Section 14 of version 3 of the license.
15 
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, see http://www.gnu.org/licenses/
24 */
25 
26 #ifndef TOOLBOX_H
27 #define TOOLBOX_H
28 
29 #include "category.h"
30 #include "ui_toolboxbase.h"
31 
32 class BilboPost;
37 class Toolbox: public QWidget, public Ui::ToolboxBase
38 {
39  Q_OBJECT
40 public:
41  explicit Toolbox( QWidget *parent );
42  ~Toolbox();
43 
48  void getFieldsValue( BilboPost* currentPost );
49  void setFieldsValue( BilboPost* post = 0 );
50  void setCurrentBlogId( int blog_id );
51  void setCurrentPage( int index );
52  void clearFields();
53 
54 public slots:
55  void slotReloadCategoryList();
56  void slotLoadCategoryListFromDB( int blog_id );
57  void slotUpdateEntries(int count = 0);
58  void slotLoadEntriesFromDB( int blog_id );
59  void slotRemoveSelectedEntryFromServer();
60  void resetFields();
61  void slotEntrySelected( QListWidgetItem *item );
62  void slotEntriesCopyUrl();
63  void slotLocalEntrySelected(QTreeWidgetItem *, int column );
64  void reloadLocalPosts();
65  void slotRemoveLocalEntry();
66  void clearEntries();
67  void setDateTimeNow();
68 
69 signals:
70  void sigEntrySelected( BilboPost &post, int blog_id );
71  void sigError( const QString& );
72  void sigBusy( bool isBusy );
73 
74 protected slots:
75  void slotPostRemoved( int blog_id, const BilboPost &post );
76  void openPostInBrowser();
77  void copyPostTitle();
78  void requestEntriesListContextMenu( const QPoint & pos );
79  void slotError(const QString& errorMessage);
80 
81 private:
82  enum LocalEntryType {
83  LocalEntryID = QTreeWidgetItem::UserType +1
84  };
85 
86  enum BlogEntryType {
87  BlogEntryID = QListWidgetItem::UserType +1
88  };
89 
90 
91  QStringList selectedCategoriesTitle() const;
92  QList<Category> selectedCategories() const;
93  void setSelectedCategories( const QStringList& );
94  QStringList currentTags();
95  void clearCatList();
96  void unCheckCatList();
97  void setButtonsIcon();
98 
99  class Private;
100  Private * const d;
101 };
102 
103 #endif
Toolbox::clearFields
void clearFields()
Definition: toolbox.cpp:235
Toolbox::setFieldsValue
void setFieldsValue(BilboPost *post=0)
Definition: toolbox.cpp:305
QWidget
Toolbox::reloadLocalPosts
void reloadLocalPosts()
Definition: toolbox.cpp:422
Toolbox::sigError
void sigError(const QString &)
Toolbox::slotRemoveLocalEntry
void slotRemoveLocalEntry()
Definition: toolbox.cpp:449
category.h
Toolbox::slotLoadEntriesFromDB
void slotLoadEntriesFromDB(int blog_id)
Definition: toolbox.cpp:156
Toolbox::slotEntriesCopyUrl
void slotEntriesCopyUrl()
Definition: toolbox.cpp:389
QListWidgetItem
Toolbox::slotUpdateEntries
void slotUpdateEntries(int count=0)
Definition: toolbox.cpp:129
QPoint
Toolbox::sigEntrySelected
void sigEntrySelected(BilboPost &post, int blog_id)
BilboPost
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
Toolbox::copyPostTitle
void copyPostTitle()
Definition: toolbox.cpp:523
Toolbox::clearEntries
void clearEntries()
Definition: toolbox.cpp:467
Toolbox
Definition: toolbox.h:37
Toolbox::openPostInBrowser
void openPostInBrowser()
Definition: toolbox.cpp:508
Toolbox::setCurrentBlogId
void setCurrentBlogId(int blog_id)
Definition: toolbox.cpp:100
Toolbox::slotPostRemoved
void slotPostRemoved(int blog_id, const BilboPost &post)
Definition: toolbox.cpp:219
Toolbox::slotReloadCategoryList
void slotReloadCategoryList()
Definition: toolbox.cpp:114
Toolbox::setCurrentPage
void setCurrentPage(int index)
Definition: toolbox.cpp:384
QWidget::pos
QPoint pos() const
QString
Toolbox::slotRemoveSelectedEntryFromServer
void slotRemoveSelectedEntryFromServer()
Definition: toolbox.cpp:203
QList< Category >
Toolbox::setDateTimeNow
void setDateTimeNow()
Definition: toolbox.cpp:480
QStringList
Toolbox::requestEntriesListContextMenu
void requestEntriesListContextMenu(const QPoint &pos)
Definition: toolbox.cpp:486
Toolbox::slotLocalEntrySelected
void slotLocalEntrySelected(QTreeWidgetItem *, int column)
Definition: toolbox.cpp:441
QTreeWidgetItem
Toolbox::getFieldsValue
void getFieldsValue(BilboPost *currentPost)
Will set current state of toolbox (Current post) properties on input pointer!
Definition: toolbox.cpp:274
Toolbox::~Toolbox
~Toolbox()
Definition: toolbox.cpp:94
Toolbox::Toolbox
Toolbox(QWidget *parent)
Definition: toolbox.cpp:56
Toolbox::slotLoadCategoryListFromDB
void slotLoadCategoryListFromDB(int blog_id)
Definition: toolbox.cpp:180
Toolbox::resetFields
void resetFields()
Definition: toolbox.cpp:251
Toolbox::slotError
void slotError(const QString &errorMessage)
Definition: toolbox.cpp:228
QObject::parent
QObject * parent() const
Toolbox::sigBusy
void sigBusy(bool isBusy)
Toolbox::slotEntrySelected
void slotEntrySelected(QListWidgetItem *item)
Definition: toolbox.cpp:377
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

KDE's Doxygen guidelines are available online.

blogilo

Skip menu "blogilo"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



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