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

Applets

clockapplet.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007-2008 by Riccardo Iaconelli <riccardo@kde.org>      *
00003  *   Copyright (C) 2007-2008 by Sebastian Kuegler <sebas@kde.org>          *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
00019  ***************************************************************************/
00020 
00021 #ifndef CLOCKAPPLET_H
00022 #define CLOCKAPPLET_H
00023 
00024 #include <QtCore/QTime>
00025 #include <QtCore/QDate>
00026 
00027 #include <plasma/applet.h>
00028 #include <plasma/dataengine.h>
00029 #include <plasma/dialog.h>
00030 #include "ui_calendar.h"
00031 
00032 #include "plasmaclock_export.h"
00033 
00034 
00035 class KDialog;
00036 
00037 namespace Plasma
00038 {
00039     class Svg;
00040 }
00041 
00042 class PLASMA_EXPORT ClockApplet : public Plasma::Applet
00043 {
00044     Q_OBJECT
00045     public:
00046         ClockApplet(QObject *parent, const QVariantList &args);
00047         ~ClockApplet();
00048 
00049         QString currentTimezone() const;
00050         bool isLocalTimezone() const;
00051 
00052         static QString localTimezone();
00053 
00054     protected:
00055         void mousePressEvent(QGraphicsSceneMouseEvent *event);
00056         void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
00057 
00058     protected Q_SLOTS:
00059         void setCurrentTimezone(const QString &tz);
00060         void showCalendar(QGraphicsSceneMouseEvent *event);
00061 
00062     private:
00063         void updateToolTipContent();
00064 
00065         class Private;
00066         Private * const d;
00067 };
00068 
00069 
00070 #endif

Applets

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference 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