KDevelop API Documentation

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 if (diffLocalBaseRadio->isChecked())
00041         return diffLocalBASE;
00042     else
00043         return diffLocalHEAD;
00044 }
00045 
00047 
00048 QString DiffDialog::revA() const
00049 {
00050     if (requestedDiff() == diffArbitrary)
00051         return revaEdit->text();
00052     else  if (requestedDiff() == diffLocalOther)
00053         return revOtherEdit->text();
00054     else  if (requestedDiff() == diffLocalHEAD)
00055         return "HEAD";
00056     else
00057         return QString::null;
00058 }
00059 
00061 
00062 QString DiffDialog::revB() const
00063 {
00064     if (requestedDiff())
00065         return this->revbEdit->text();
00066     else
00067         return QString::null;
00068 }
00069 
00070 #include "diffdialog.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:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003