1
// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
2
/* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
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.
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 02110-1301 USA
19
#include "knewthemedlg.h"
26
KNewThemeDlg::KNewThemeDlg( QWidget * parent, const char * name )
29
setObjectName( name );
31
setCaption( i18n("New Theme") );
32
setButtons( Ok|Cancel );
34
m_base = new NewThemeWidget( this );
35
setMainWidget( m_base );
36
connect( m_base->leName, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotThemeNameChanged( const QString & ) ) );
37
slotThemeNameChanged( m_base->leName->text() );
40
KNewThemeDlg::~KNewThemeDlg()
45
void KNewThemeDlg::slotThemeNameChanged( const QString &_text )
47
enableButtonOk( !_text.isEmpty() );
50
QString KNewThemeDlg::getName() const
52
return m_base->leName->text();
55
QString KNewThemeDlg::getAuthor() const
57
return m_base->leAuthor->text();
60
QString KNewThemeDlg::getEmail() const
62
return m_base->leEmail->text();
65
QString KNewThemeDlg::getHomepage() const
67
return m_base->leHomepage->text();
70
QString KNewThemeDlg::getComment() const
72
return m_base->teComment->text();
75
QString KNewThemeDlg::getVersion() const
77
return m_base->leVersion->text();
80
void KNewThemeDlg::setAuthor( const QString & author )
82
m_base->leAuthor->setText( author );
85
void KNewThemeDlg::setEmail( const QString & email )
87
m_base->leEmail->setText( email );
90
void KNewThemeDlg::setVersion( const QString & version )
92
m_base->leVersion->setText( version );
95
void KNewThemeDlg::setName( const QString & name )
97
m_base->leName->setText( name );
100
#include "knewthemedlg.moc"