KDevelop API Documentation

fctemplateedit.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Alexander Dymo                                  *
00003  *   cloudtemple@mksat.net                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 #include <qlineedit.h>
00011 #include "fctemplateedit.h"
00012 #include <qpushbutton.h>
00013 
00014 FCTemplateEdit::FCTemplateEdit(QWidget *parent, const char *name):
00015     FCTemplateEditBase(parent, name)
00016 {
00017     connect( templatename_edit, SIGNAL(textChanged ( const QString & )),
00018              this, SLOT( slotTemplateNameChanged( )));
00019     slotTemplateNameChanged();
00020 }
00021 
00022 FCTemplateEdit::~FCTemplateEdit()
00023 {
00024 }
00025 
00026 void FCTemplateEdit::slotTemplateNameChanged( )
00027 {
00028     ok_button->setEnabled( !templatename_edit->text().isEmpty() );
00029 }
00030 
00031 void FCTemplateEdit::accept()
00032 {
00033     if ( !templatename_edit->text().isEmpty() )
00034         FCTemplateEditBase::accept();
00035 }
00036 #include "fctemplateedit.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:40 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003