diff options
author | Darrell Anderson <[email protected]> | 2014-01-06 02:25:18 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-01-06 02:25:18 +0100 |
commit | f99c7f6c54aaf96eec1f58c2eaacb46edc6de8cd (patch) | |
tree | b3de0b458b84e88c6426cebed026d284cb03c652 /kdebugdialog/kabstractdebugdialog.cpp | |
parent | a4a54d1ee3c220a7e698c96a11500a4eba22800a (diff) | |
download | tdebase-f99c7f6c54aaf96eec1f58c2eaacb46edc6de8cd.tar.gz tdebase-f99c7f6c54aaf96eec1f58c2eaacb46edc6de8cd.zip |
Rename kdebugdialog -> tdedebugdialog
Diffstat (limited to 'kdebugdialog/kabstractdebugdialog.cpp')
-rw-r--r-- | kdebugdialog/kabstractdebugdialog.cpp | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/kdebugdialog/kabstractdebugdialog.cpp b/kdebugdialog/kabstractdebugdialog.cpp deleted file mode 100644 index 10c0c2a00..000000000 --- a/kdebugdialog/kabstractdebugdialog.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 2000 David Faure <[email protected]> - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "kabstractdebugdialog.h" -#include <tdeconfig.h> -#include <kpushbutton.h> -#include <tqlayout.h> -#include <tdeapplication.h> -#include <tdelocale.h> -#include <kstdguiitem.h> - -KAbstractDebugDialog::KAbstractDebugDialog( TQWidget *parent, const char *name, bool modal ) - : KDialog( parent, name, modal ) -{ - pConfig = new TDEConfig( "kdebugrc" ); -} - -KAbstractDebugDialog::~KAbstractDebugDialog() -{ - delete pConfig; -} - -void KAbstractDebugDialog::buildButtons( TQVBoxLayout * topLayout ) -{ - TQHBoxLayout *hbox = new TQHBoxLayout( KDialog::spacingHint() ); - topLayout->addLayout( hbox ); - pHelpButton = new KPushButton( KStdGuiItem::help(), this ); - hbox->addWidget( pHelpButton ); - hbox->addStretch(10); - TQSpacerItem *spacer = new TQSpacerItem(40, 0); - hbox->addItem(spacer); - pOKButton = new KPushButton( KStdGuiItem::ok(), this ); - hbox->addWidget( pOKButton ); - pApplyButton = new KPushButton( KStdGuiItem::apply(), this ); - hbox->addWidget( pApplyButton ); - pCancelButton = new KPushButton( KStdGuiItem::cancel(), this ); - hbox->addWidget( pCancelButton ); - - int w1 = pHelpButton->sizeHint().width(); - int w2 = pOKButton->sizeHint().width(); - int w3 = pCancelButton->sizeHint().width(); - int w4 = TQMAX( w1, TQMAX( w2, w3 ) ); - int w5 = pApplyButton->sizeHint().width(); - w4 = TQMAX(w4, w5); - - pHelpButton->setFixedWidth( w4 ); - pOKButton->setFixedWidth( w4 ); - pApplyButton->setFixedWidth( w4 ); - pCancelButton->setFixedWidth( w4 ); - - connect( pHelpButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotShowHelp() ) ); - connect( pOKButton, TQT_SIGNAL( clicked() ), TQT_SLOT( accept() ) ); - connect( pApplyButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotApply() ) ); - connect( pCancelButton, TQT_SIGNAL( clicked() ), TQT_SLOT( reject() ) ); -} - -void KAbstractDebugDialog::slotShowHelp() -{ - if (kapp) - kapp->invokeHelp(); -} - -void KAbstractDebugDialog::slotApply() -{ - save(); - pConfig->sync(); -} - -#include "kabstractdebugdialog.moc" |