• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

  • lib
  • interfaces
KDevCoreIface.cpp
1 
2 
3 /* This file is part of the KDE project
4  Copyright (C) 2001 Bernd Gehrmann <bernd@kdevelop.org>
5  Copyright (C) 2001-2002 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
6  Copyright (C) 2002 Roberto Raggi <roberto@kdevelop.org>
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22 */
23 #include <kdebug.h>
24 #include <dcopclient.h>
25 #include "KDevCoreIface.h"
26 #include "kdevcore.h"
27 
28 
29 KDevCoreIface::KDevCoreIface(KDevCore *core)
30  : TQObject(core), DCOPObject("KDevCore"), m_core(core)
31 {
32  connect( m_core, TQT_SIGNAL(projectOpened()), this, TQT_SLOT(forwardProjectOpened()) );
33  connect( m_core, TQT_SIGNAL(projectClosed()), this, TQT_SLOT(forwardProjectClosed()) );
34 }
35 
36 
37 KDevCoreIface::~KDevCoreIface()
38 {}
39 
40 
41 void KDevCoreIface::forwardProjectOpened()
42 {
43  kdDebug(9000) << "dcop emitting project opened" << endl;
44  emitDCOPSignal("projectOpened()", TQByteArray());
45 }
46 
47 
48 void KDevCoreIface::forwardProjectClosed()
49 {
50  kdDebug(9000) << "dcop emitting project closed" << endl;
51  emitDCOPSignal("projectClosed()", TQByteArray());
52 }
53 
54 void KDevCoreIface::openProject( const TQString & projectFileName )
55 {
56  m_core->openProject(projectFileName);
57 }
58 
59 #include "KDevCoreIface.moc"
KDevCore::projectOpened
void projectOpened()
A project has been opened.
kdevcore.h
The interface to the application core and context menu classes.
KDevCore::projectClosed
void projectClosed()
The project is about to be closed.
KDevCore
A KDevCore class defines an object which takes care about the cooperation between the various plug-in...
Definition: kdevcore.h:300

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.