diffdialog.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <qlineedit.h>
00013 #include <qradiobutton.h>
00014
00015 #include "diffdialog.h"
00016
00018
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"
This file is part of the documentation for KDevelop Version 3.1.2.