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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • kig
kig.h
Go to the documentation of this file.
1 // This file is part of Kig, a KDE program for Interactive Geometry...
2 // Copyright (C) 2002 Dominique Devriese <devriese@kde.org>
3 
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (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
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 // 02110-1301, USA.
18 
19 #ifndef KIG_KIG_H
20 #define KIG_KIG_H
21 
22 #include <kparts/mainwindow.h>
23 
24 class KRecentFilesAction;
25 
30 class Kig : public KParts::MainWindow
31 {
32  Q_OBJECT
33  public:
37  Kig();
38 
42  virtual ~Kig();
43 
44  public slots:
49  void load( const KUrl& file );
50 
56  virtual void openUrl( const QString& s ) { openUrl( KUrl( s ) ); }
57  void openUrl( const KUrl& s );
58 
59  protected:
60 
66  virtual void dragEnterEvent( QDragEnterEvent* e );
67 
73  virtual void dropEvent( QDropEvent* e );
74 
80  bool queryClose();
81 
86  void saveProperties(KConfigGroup &);
87 
93  void readProperties(const KConfigGroup &);
94 
95  private slots:
96  void fileNew();
97  void fileOpen();
98  void optionsConfigureToolbars();
99 
100  void applyNewToolbarConfig();
101 
102  void tipOfDay();
103  void startupTipOfDay();
104 
105  private:
106  void setupActions();
107 
108  KParts::ReadWritePart *m_part;
109 
110  KRecentFilesAction *m_recentFilesAction;
111 
112  KConfig* config;
113 };
114 
115 #endif // KIG_KIG_H
Kig::load
void load(const KUrl &file)
Open file in this window.
Definition: kig.cpp:139
Kig::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *e)
The user started dragging something onto us...
Definition: kig.cpp:197
Kig::queryClose
bool queryClose()
this is called by the framework before closing the window, to allow the user to save his changes...
Definition: kig.cpp:192
Kig::~Kig
virtual ~Kig()
Default Destructor.
Definition: kig.cpp:97
Kig::saveProperties
void saveProperties(KConfigGroup &)
This method is called when it is time for the app to save its properties for session management purpo...
Definition: kig.cpp:122
Kig::dropEvent
virtual void dropEvent(QDropEvent *e)
The user dropped something onto us...
Definition: kig.cpp:202
Kig::Kig
Kig()
Default Constructor.
Definition: kig.cpp:46
Kig
This is the application "Shell".
Definition: kig.h:30
Kig::openUrl
virtual void openUrl(const QString &s)
this opens the file specified in s in a new window
Definition: kig.h:56
Kig::readProperties
void readProperties(const KConfigGroup &)
This method is called when this app is restored.
Definition: kig.cpp:130
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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