KDevelop API Documentation

parts/diff/diffdlg.cpp

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2001 by Harald Fernengel * 00003 * harry@kdevelop.org * 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 ***************************************************************************/ 00011 00012 #include <qlayout.h> 00013 00014 #include <klocale.h> 00015 00016 #include "diffdlg.h" 00017 #include "diffwidget.h" 00018 00019 DiffDlg::DiffDlg( QWidget *parent, const char *name ): 00020 KDialogBase( parent, name, true, i18n("Difference Viewer"), Ok ) 00021 { 00022 diffWidget = new DiffWidget( this, "Main Diff Widget" ); 00023 setMainWidget( diffWidget ); 00024 00025 QVBoxLayout* layout = new QVBoxLayout( this, 0, spacingHint() ); 00026 layout->addWidget( diffWidget ); 00027 } 00028 00029 DiffDlg::~DiffDlg() 00030 { 00031 } 00032 00033 void DiffDlg::slotClear() 00034 { 00035 diffWidget->slotClear(); 00036 } 00037 00038 void DiffDlg::setDiff( const QString& diff ) 00039 { 00040 diffWidget->setDiff( diff ); 00041 } 00042 00043 void DiffDlg::openURL( const KURL& url ) 00044 { 00045 diffWidget->openURL( url ); 00046 } 00047 00048 #include "diffdlg.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:50 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003