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

« back to all changes in this revision

Viewing changes to parts/quickopen/quickopenfunctionchooseform.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
 
/*
2
 
 *  Copyright (C) 2004 Ahn, Duk J.(adjj22@kornet.net) (adjj1@hanmail.net)
3
 
 *
4
 
 *  This program is free software; you can redistribute it and/or
5
 
 *  modify it under the terms of the GNU 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 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 GNU
12
 
 *  Library 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; 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
 
 */
20
 
 
21
 
#include <klistbox.h>
22
 
#include <klocale.h>
23
 
#include <kurl.h>
24
 
#include <kdebug.h>
25
 
#include <ksqueezedtextlabel.h>
26
 
 
27
 
#include <codemodel.h>
28
 
 
29
 
#include "quickopenfunctionchooseform.h"
30
 
 
31
 
QuickOpenFunctionChooseForm::QuickOpenFunctionChooseForm(QWidget* parent, const char* name, bool modal, WFlags fl)
32
 
: QuickOpenFunctionChooseFormBase(parent,name, modal,fl)
33
 
{
34
 
        setCaption( i18n("Select One Argument or File of Function %1").arg( name ) );
35
 
        slotArgsChange( 0 );
36
 
        slotFileChange( 0 );
37
 
}
38
 
 
39
 
QuickOpenFunctionChooseForm::~QuickOpenFunctionChooseForm()
40
 
{
41
 
}
42
 
 
43
 
void QuickOpenFunctionChooseForm::slotArgsChange( int id )
44
 
{
45
 
        argBox->setCurrentItem( id );
46
 
}
47
 
 
48
 
void QuickOpenFunctionChooseForm::slotFileChange( int id )
49
 
{
50
 
        fileBox->setCurrentItem( id );
51
 
        filepathlabel->setText( m_relPaths[id] );
52
 
}
53
 
 
54
 
 
55
 
#include "quickopenfunctionchooseform.moc"
56