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

blogilo

  • sources
  • kde-4.12
  • kdepim
  • blogilo
  • src
mainwindow.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 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License or (at your option) version 3 or any later version
11  accepted by the membership of KDE e.V. (or its successor approved
12  by the membership of KDE e.V.), which shall act as a proxy
13  defined in Section 14 of version 3 of the license.
14 
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, see http://www.gnu.org/licenses/
23 */
24 
25 #ifndef MAINWINDOW_H
26 #define MAINWINDOW_H
27 
28 #include "bilbopost.h"
29 #include "bilboblog.h"
30 
31 #include <kxmlguiwindow.h>
32 
33 #include <QPointer>
34 
35 class KStatusNotifierItem;
36 class QProgressBar;
37 class QToolButton;
38 class Toolbox;
39 class KSelectAction;
40 class PostEntry;
41 class PostsTabWidget;
42 
49 class MainWindow : public KXmlGuiWindow
50 {
51  Q_OBJECT
52 public:
53  MainWindow();
54 
55  ~MainWindow();
56 
57 signals:
58  void mediaFilesUploaded( int count );
59  void settingsChanged();
60 
61 protected slots:
62  void slotOpenCurrentBlogInBrowser();
63  void slotSettingsChanged();
64  void slotCreateNewPost();
65  void addBlog();
66  void slotPostTitleChanged( const QString& title );
67  void slotToggleToolboxVisible( bool isVisible );
68  void slotToolboxVisibilityChanged( bool isVisible );
69  void slotActivePostChanged( int tabIndex );
70  void slotNewPostOpened( BilboPost &newPost, int blog_id );
71 
72  void slotPublishPost();
73 
77  void slotRemovePostEntry( int post );
78 
79  void slotSavePostLocally();
80 
81  void slotError( const QString &errorMessage );
82 
86  void loadTempPosts();
87  void uploadMediaObject();
88 
89 private slots:
90  void optionsPreferences();
91  void postManipulationDone( bool isError, const QString &customMessage );
92  void slotBusy( bool isBusy );
93  void slotShowStatusMessage(const QString &message, bool isPermanent);
94  void currentBlogChanged( QAction* );
95 
96  void slotBlogAdded( const BilboBlog &blog );
97  void slotBlogEdited( const BilboBlog &blog );
98  void slotBlogRemoved( int blog_id );
99 
100  void slotDialogDestroyed( QObject *win );
101 
102  void slotCloseTabClicked();
103  void slotRemoveAllExclude(int);
104 
105 protected:
106  void keyPressEvent( QKeyEvent * event );
107  virtual bool queryExit();
108 
109 private:
110  void setCurrentBlog( int blog_id );
111  void setupActions();
112  void setupSystemTray();
113  void writeConfigs();
118  QWidget* createPostEntry(int blog_id, const BilboPost& post);
119 
120  Toolbox *toolbox;
121  QDockWidget *toolboxDock;
122  QPointer<PostEntry> activePost;
123  KStatusNotifierItem *systemTray;
124  PostsTabWidget *tabPosts;
125 
126  int previousActivePostIndex;
127 
128  int busyNumber;
129  QProgressBar *progress;
130 
131  KSelectAction *blogs;
132  int &mCurrentBlogId;
133  QToolButton *mCloseTabButton;
134  QToolButton *mNewTabButton;
135 };
136 #endif
MainWindow::slotError
void slotError(const QString &errorMessage)
Definition: mainwindow.cpp:528
MainWindow::slotCreateNewPost
void slotCreateNewPost()
Definition: mainwindow.cpp:266
MainWindow::slotSettingsChanged
void slotSettingsChanged()
Definition: mainwindow.cpp:325
MainWindow::slotPostTitleChanged
void slotPostTitleChanged(const QString &title)
Definition: mainwindow.cpp:406
PostsTabWidget
Definition: poststabwidget.h:24
MainWindow::slotNewPostOpened
void slotNewPostOpened(BilboPost &newPost, int blog_id)
Definition: mainwindow.cpp:511
MainWindow::uploadMediaObject
void uploadMediaObject()
Definition: mainwindow.cpp:651
MainWindow::addBlog
void addBlog()
Definition: mainwindow.cpp:339
QWidget
MainWindow::slotToolboxVisibilityChanged
void slotToolboxVisibilityChanged(bool isVisible)
Definition: mainwindow.cpp:417
BilboPost
Definition of a blog post! it's implemented to decrease dependency to KBlog :)
Definition: bilbopost.h:41
QObject
MainWindow::queryExit
virtual bool queryExit()
Definition: mainwindow.cpp:143
bilbopost.h
BilboBlog
Blog definition class!
Definition: bilboblog.h:40
KXmlGuiWindow
Toolbox
Definition: toolbox.h:37
MainWindow::slotPublishPost
void slotPublishPost()
Definition: mainwindow.cpp:449
PostEntry
Post Entry Widget contains Editor, and Title box.
Definition: postentry.h:40
MainWindow::slotActivePostChanged
void slotActivePostChanged(int tabIndex)
Definition: mainwindow.cpp:422
bilboblog.h
MainWindow::settingsChanged
void settingsChanged()
MainWindow::mediaFilesUploaded
void mediaFilesUploaded(int count)
MainWindow::slotRemovePostEntry
void slotRemovePostEntry(int post)
Remove widget at position pos from main tab wigdet.
Definition: mainwindow.cpp:488
MainWindow::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition: mainwindow.cpp:545
MainWindow::MainWindow
MainWindow()
Definition: mainwindow.cpp:67
MainWindow::slotOpenCurrentBlogInBrowser
void slotOpenCurrentBlogInBrowser()
Definition: mainwindow.cpp:661
MainWindow::slotToggleToolboxVisible
void slotToggleToolboxVisible(bool isVisible)
Definition: mainwindow.cpp:412
MainWindow::~MainWindow
~MainWindow()
Definition: mainwindow.cpp:131
MainWindow::loadTempPosts
void loadTempPosts()
To open temporary posts and that posts are open at previous quit.
Definition: mainwindow.cpp:205
MainWindow
Main window of blogilo...
Definition: mainwindow.h:49
MainWindow::slotSavePostLocally
void slotSavePostLocally()
Definition: mainwindow.cpp:518
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:44 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

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