~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/interfaces/kdevdesignerintegrationiface.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of the KDE project
2
 
   Copyright (C) 2005 Ian Reinhart Geiser <geiseri@kde.org>
3
 
 
4
 
   This library is free software; you can redistribute it and/or
5
 
   modify it under the terms of the GNU Library General Public
6
 
   License as published by the Free Software Foundation; either
7
 
   version 2 of the License, or (at your option) any later version.
8
 
 
9
 
   This library 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 GNU
12
 
   Library General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU Library General Public License
15
 
   along with this library; see the file COPYING.LIB.  If not, write to
16
 
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
   Boston, MA 02111-1307, USA.
18
 
*/
19
 
#include "kdevdesignerintegrationiface.h"
20
 
#include <designer.h>
21
 
#include "kdevdesignerintegration.h"
22
 
 
23
 
KDevDesignerIntegrationIface::KDevDesignerIntegrationIface(KDevDesignerIntegration *p)
24
 
  : DCOPObject("GUIDesigner"), m_designer(p)
25
 
{
26
 
  //FIXME figure out what number our interface is...
27
 
}
28
 
 
29
 
 
30
 
KDevDesignerIntegrationIface::~KDevDesignerIntegrationIface()
31
 
{
32
 
}
33
 
 
34
 
void KDevDesignerIntegrationIface::addFunction( const QString & formName, QString returnType, QString function, QString specifier, QString access, uint type )
35
 
{
36
 
  KInterfaceDesigner::Function f = {returnType, function, specifier, access, (KInterfaceDesigner::FunctionType)type };
37
 
  m_designer->addFunction(formName, f);
38
 
}
39
 
 
40
 
void KDevDesignerIntegrationIface::removeFunction( const QString & formName, QString returnType, QString function, QString specifier, QString access, uint type )
41
 
{
42
 
  KInterfaceDesigner::Function f = {returnType, function, specifier, access, (KInterfaceDesigner::FunctionType)type };
43
 
  m_designer->addFunction(formName, f);
44
 
}
45
 
 
46
 
void KDevDesignerIntegrationIface::editFunction( const QString & formName, QString oldReturnType, QString oldFunction, QString oldSpecifier, QString oldAccess, uint oldType, QString returnType, QString function, QString specifier, QString access, uint type )
47
 
{
48
 
  KInterfaceDesigner::Function fold = {oldReturnType, oldFunction, oldSpecifier, oldAccess, (KInterfaceDesigner::FunctionType)oldType };
49
 
  KInterfaceDesigner::Function fnew = {returnType, function, specifier, access, (KInterfaceDesigner::FunctionType)type };
50
 
  m_designer->editFunction(formName,fold,fnew);
51
 
}
52
 
 
53
 
void KDevDesignerIntegrationIface::openFunction( const QString & formName, const QString & functionName )
54
 
{
55
 
  m_designer->openFunction(formName,functionName);
56
 
}
57
 
 
58
 
void KDevDesignerIntegrationIface::openSource( const QString & formName )
59
 
{
60
 
  m_designer->openSource(formName);
61
 
}
62
 
 
63