KDevelop API Documentation

vcs/cvsservice/releaseinputdialog.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 <qlabel.h> 00013 #include <qlineedit.h> 00014 #include <qcheckbox.h> 00015 #include <qradiobutton.h> 00016 00017 #include "releaseinputdialog.h" 00018 00020 // class ReleaseInputDialog 00022 00023 ReleaseInputDialog::ReleaseInputDialog( QWidget* parent) 00024 : ReleaseInputDialogBase( parent, "releaseinputdialog", true, 0 ) 00025 { 00026 } 00027 00029 00030 ReleaseInputDialog::~ReleaseInputDialog() 00031 { 00032 } 00033 00035 00036 bool ReleaseInputDialog::isRevert() const 00037 { 00038 return revertCheck->isChecked(); 00039 } 00040 00042 00043 QString ReleaseInputDialog::release() const 00044 { 00045 if (type() == byRevision) 00046 return " -r " + revisionEdit->text(); 00047 else if (type() == byDate) 00048 return " -D " + dateEdit->text(); 00049 else 00050 return QString::null; 00051 } 00052 00054 00055 ReleaseInputDialog::ReleaseType ReleaseInputDialog::type() const 00056 { 00057 if (revisionRadio->isChecked()) 00058 return byRevision; 00059 else if (dateRadio->isChecked()) 00060 return byDate; 00061 else 00062 return byHead; 00063 } 00064 00065 #include "releaseinputdialog.moc" 00066
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