• 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
  • new
new/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 #include "ktimetrackerconfigdialog.h"
29 
30 class KAccel;
31 class KAccelMenuWatch;
32 class KAction;
33 class TrayIcon;
34 class QPoint;
35 class QString;
36 
37 class Task;
38 class TimetrackerWidget;
39 
40 namespace Ui {
41  class MainWindow;
42 }
47 class MainWindow : public QMainWindow
48 {
49  Q_OBJECT
50 
51  private:
52  void makeMenus();
53  void setupActions();
54  Ui::MainWindow *m_ui;
55  KAccel* _accel;
56  KAccelMenuWatch* _watcher;
57  TrayIcon* _tray;
58  KAction* actionKeyBindings;
59  KAction* configureAction;
60 
61  TimetrackerWidget *mainWidget;
62 
63  friend class TrayIcon;
64  ktimetrackerpart *m_part;
65 
66  public:
67  explicit MainWindow(QWidget *parent = 0);
68  explicit MainWindow( const QString &icsfile = "" );
69  virtual ~MainWindow();
70 
71  public Q_SLOTS:
72  void setStatusBar( const QString& );
73  /* this is duplicated from timetrackerwidget */
74  void showSettingsDialog();
75  /* quit() has been offloaded to timetrackerwidget */
76  protected Q_SLOTS:
77  void keyBindings();
78  void on_actionConfigure_ktimetracker_triggered();
79  void on_actionQuit_triggered();
80  void newtask();
81 
82  protected:
83  void saveGeometry();
84  void loadGeometry();
85 };
86 
87 #endif // KTIMETRACKER_MAIN_WINDOW_H
MainWindow::on_actionConfigure_ktimetracker_triggered
void on_actionConfigure_ktimetracker_triggered()
Definition: new/mainwindow.cpp:182
TimetrackerWidget
Definition: timetrackerwidget.h:36
ktimetrackerconfigdialog.h
MainWindow::keyBindings
void keyBindings()
Definition: mainwindow.cpp:164
MainWindow::newtask
void newtask()
Definition: new/mainwindow.cpp:106
QWidget
ktimetrackerpart.h
TrayIcon
Definition: tray.h:37
MainWindow::on_actionQuit_triggered
void on_actionQuit_triggered()
Definition: new/mainwindow.cpp:187
reportcriteria.h
MainWindow::showSettingsDialog
void showSettingsDialog()
Definition: new/mainwindow.cpp:111
MainWindow::setStatusBar
void setStatusBar(const QString &)
Definition: mainwindow.cpp:153
QMainWindow
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::MainWindow
MainWindow(const QString &icsfile="")
Definition: mainwindow.cpp:55
icsfile
QString icsfile(const KCmdLineArgs *args)
Definition: main.cpp:51
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