KDevelop API Documentation

vcs/cvsservice/diffdialog.cpp

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Mario Scalas * 00003 * mario.scalas@libero.it * 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 <qlineedit.h> 00013 #include <qradiobutton.h> 00014 00015 #include "diffdialog.h" 00016 00018 // class DiffDialog 00020 00021 DiffDialog::DiffDialog( QWidget *parent, const char *name, WFlags f ) 00022 : DiffDialogBase( parent, name, true, f) 00023 { 00024 } 00025 00027 00028 DiffDialog::~DiffDialog() 00029 { 00030 } 00031 00033 00034 DiffDialog::DiffType DiffDialog::requestedDiff() const 00035 { 00036 if (diffArbitraryRevRadio->isChecked()) 00037 return diffArbitrary; 00038 else if (diffLocalOtherRadio->isChecked()) 00039 return diffLocalOther; 00040 else 00041 return diffLocalHEAD; 00042 } 00043 00045 00046 QString DiffDialog::revA() const 00047 { 00048 if (requestedDiff() == diffArbitrary) 00049 return revaEdit->text(); 00050 else if (requestedDiff() == diffLocalOther) 00051 return revOtherEdit->text(); 00052 else 00053 return QString::null; 00054 } 00055 00057 00058 QString DiffDialog::revB() const 00059 { 00060 if (requestedDiff()) 00061 return this->revbEdit->text(); 00062 else 00063 return QString::null; 00064 } 00065 00066 #include "diffdialog.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 Wed Oct 6 17:39:14 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003