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

ktimetracker

  • sources
  • kde-4.12
  • kdepim
  • ktimetracker
mainwindow.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003 by Scott Monachello <smonach@cox.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the
16  * Free Software Foundation, Inc.
17  * 51 Franklin Street, Fifth Floor
18  * Boston, MA 02110-1301 USA.
19  *
20  */
21 
22 #ifndef KTIMETRACKER_MAIN_WINDOW_H
23 #define KTIMETRACKER_MAIN_WINDOW_H
24 
25 #include <KParts/MainWindow>
26 #include "ktimetrackerpart.h"
27 #include "reportcriteria.h"
28 
29 class KAccel;
30 class KAccelMenuWatch;
31 class KAction;
32 class TrayIcon;
33 class QPoint;
34 class QString;
35 
36 class Task;
37 class TimetrackerWidget;
38 
43 class MainWindow : public KParts::MainWindow
44 {
45  Q_OBJECT
46 
47  private:
48  void makeMenus();
49  void setupActions();
50 
51  KAccel* _accel;
52  KAccelMenuWatch* _watcher;
53  TrayIcon* _tray;
54  KAction* actionKeyBindings;
55  KAction* configureAction;
56 
57  TimetrackerWidget *mainWidget;
58 
59  friend class TrayIcon;
60  ktimetrackerpart *m_part;
61 
62  public:
63  explicit MainWindow( const QString &icsfile = "" );
64  virtual ~MainWindow();
65 
66  public Q_SLOTS:
67  void slotSetCaption( const QString& );
68  void setStatusBar( const QString& );
69  /* quit() has been offloaded to timetrackerwidget */
70  protected Q_SLOTS:
71  void keyBindings();
72  void taskViewCustomContextMenuRequested( const QPoint& );
73 
74  protected:
75  /* reimp */ void readProperties( const KConfigGroup &config );
76  /* reimp */ void saveProperties( KConfigGroup &config );
77  void saveGeometry();
78  void loadGeometry();
79  bool queryClose();
80 };
81 
82 #endif // KTIMETRACKER_MAIN_WINDOW_H
MainWindow::readProperties
void readProperties(const KConfigGroup &config)
Definition: mainwindow.cpp:137
TimetrackerWidget
Definition: timetrackerwidget.h:36
MainWindow::keyBindings
void keyBindings()
Definition: mainwindow.cpp:164
ktimetrackerpart.h
TrayIcon
Definition: tray.h:37
reportcriteria.h
MainWindow::slotSetCaption
void slotSetCaption(const QString &)
Definition: mainwindow.cpp:148
MainWindow::queryClose
bool queryClose()
Definition: mainwindow.cpp:203
MainWindow::setStatusBar
void setStatusBar(const QString &)
Definition: mainwindow.cpp:153
MainWindow::saveGeometry
void saveGeometry()
Definition: mainwindow.cpp:195
ktimetrackerpart
This is a "Part".
Definition: ktimetrackerpart.h:41
MainWindow::~MainWindow
virtual ~MainWindow()
Definition: mainwindow.cpp:158
MainWindow::loadGeometry
void loadGeometry()
Definition: mainwindow.cpp:180
MainWindow::saveProperties
void saveProperties(KConfigGroup &config)
Definition: mainwindow.cpp:143
MainWindow::MainWindow
MainWindow(const QString &icsfile="")
Definition: mainwindow.cpp:55
icsfile
QString icsfile(const KCmdLineArgs *args)
Definition: main.cpp:51
MainWindow::taskViewCustomContextMenuRequested
void taskViewCustomContextMenuRequested(const QPoint &)
Definition: mainwindow.cpp:213
Task
A class representing a task.
Definition: task.h:54
MainWindow
Main window to tie the application together.
Definition: mainwindow.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

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

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