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

korganizer

korganizer_part.h

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2000,2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
00024 */
00025 #ifndef KORGANIZER_PART_H
00026 #define KORGANIZER_PART_H
00027 
00028 #include <kurl.h>
00029 #include <kparts/part.h>
00030 
00031 #include <korganizer/mainwindow.h>
00032 
00033 class CalendarView;
00034 class ActionManager;
00035 
00036 namespace KCal {
00037     class Calendar;
00038   class Incidence;
00039 }
00040 using namespace KCal;
00041 namespace KParts {
00042 class StatusBarExtension;
00043 }
00044 namespace KOrg {
00045 class CalendarViewBase;
00046 }
00047 
00048 class KOrganizerPart: public KParts::ReadOnlyPart,
00049                       public KOrg::MainWindow
00050 {
00051   Q_OBJECT
00052   public:
00053     KOrganizerPart( QWidget *parentWidget, QObject *parent, const QVariantList & );
00054     virtual ~KOrganizerPart();
00055 
00056     virtual KOrg::CalendarViewBase *view() const;
00057 
00067     virtual bool openURL( const KUrl &url, bool merge = false );
00068 
00070     virtual bool saveURL();
00071 
00073     virtual bool saveAsURL( const KUrl &kurl );
00074 
00076     virtual KUrl getCurrentURL() const;
00077 
00078     virtual KXMLGUIFactory *mainGuiFactory() { return factory(); }
00079     virtual KXMLGUIClient *mainGuiClient() { return this; }
00080     virtual QWidget *topLevelWidget();
00081     virtual ActionManager *actionManager();
00082     virtual KActionCollection *getActionCollection() const { return actionCollection(); }
00083     virtual void showStatusMessage( const QString &message );
00084 
00085     void setTitle();
00086 
00087   public slots:
00088     void slotChangeInfo( Incidence * );
00089 
00090   protected:
00091     virtual bool openFile();
00092 
00093   private:
00094     CalendarView *mView;
00095     ActionManager *mActionManager;
00096     KParts::StatusBarExtension *mStatusBarExtension;
00097     QWidget *mTopLevelWidget;
00098 
00099   signals:
00100     void textChanged( const QString & );
00101 };
00102 
00103 #endif

korganizer

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal