akregator/src

mainwindow.h
1/*
2 This file is part of Akregator.
3
4 Copyright (C) 2004 Stanislav Karchebny <Stanislav.Karchebny@kdemail.net>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24
25#ifndef _AKREGATOR_H_
26#define _AKREGATOR_H_
27
28#ifdef HAVE_CONFIG_H
29#include <config.h>
30#endif
31
32#include <tdeapplication.h>
33#include <tdeparts/mainwindow.h>
34#include <tdeparts/browserinterface.h>
35#include <tdeparts/browserextension.h>
36#include <tdeio/job.h>
37
38class TDEActionCollection;
39class TDEToggleAction;
40class KSqueezedTextLabel;
41class KProgress;
42
43namespace KPIM
44{
45 class StatusbarProgressWidget;
46}
47
48namespace Akregator
49{
50
51class Part;
52class MainWindow;
53
54class BrowserInterface : public KParts::BrowserInterface
55{
56 TQ_OBJECT
57
58
59public:
60 BrowserInterface(Akregator::MainWindow *shell, const char *name );
61
62private:
63 Akregator::MainWindow *m_shell;
64};
65
66
73class MainWindow : public KParts::MainWindow
74{
75 TQ_OBJECT
76
77public:
78
79 MainWindow();
80 virtual ~MainWindow();
81
87
88 virtual void setCaption(const TQString &);
89
94 bool loadPart();
95
96public slots:
97 void slotClearStatusText();
98 void slotSetStatusBarText(const TQString &c);
99
100protected:
105 void saveProperties(TDEConfig *);
106
112 void readProperties(TDEConfig *);
116 virtual bool queryExit();
117
121 virtual bool queryClose();
122
123protected slots:
124
125 void slotQuit();
126
127private:
128
129 void setupActions();
130 void connectActionCollection(TDEActionCollection *coll);
131
132 KParts::BrowserExtension *browserExtension(KParts::ReadOnlyPart *p);
133
134private slots:
135
136 void optionsConfigureKeys();
137 void optionsConfigureToolbars();
138
139 void applyNewToolbarConfig();
140
141private:
142 BrowserInterface *m_browserIface;
143
144 Akregator::Part *m_part;
145 KPIM::StatusbarProgressWidget *m_progressBar;
146 KSqueezedTextLabel *m_statusLabel;
147};
148
149} // namespace Akregator
150
151#endif // _AKREGATOR_H_
This is the application "Shell".
Definition: mainwindow.h:74
void saveProperties(TDEConfig *)
This method is called when it is time for the app to save its properties for session management purpo...
Definition: mainwindow.cpp:166
virtual bool queryClose()
Reimplemented to say if app will be running in system tray if necessary.
Definition: mainwindow.cpp:256
void readProperties(TDEConfig *)
This method is called when this app is restored.
Definition: mainwindow.cpp:177
bool loadPart()
Loads the part.
Definition: mainwindow.cpp:97
virtual bool queryExit()
Reimplemented to save settings.
Definition: mainwindow.cpp:235
void setupProgressWidgets()
Creates the progress widget in the status bar and the ProgressDialog and connects them.
Definition: mainwindow.cpp:134
This is a RSS Aggregator "Part".