1
/***************************************************************************
2
* Copyright (C) 2003 by Mario Scalas *
3
* mario.scalas@libero.it *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
13
#include <klineedit.h>
14
#include <qcheckbox.h>
15
#include <qradiobutton.h>
17
#include "releaseinputdialog.h"
19
///////////////////////////////////////////////////////////////////////////////
20
// class ReleaseInputDialog
21
///////////////////////////////////////////////////////////////////////////////
23
ReleaseInputDialog::ReleaseInputDialog( QWidget* parent)
24
: ReleaseInputDialogBase( parent, "releaseinputdialog", true, 0 )
28
///////////////////////////////////////////////////////////////////////////////
30
ReleaseInputDialog::~ReleaseInputDialog()
34
///////////////////////////////////////////////////////////////////////////////
36
bool ReleaseInputDialog::isRevert() const
38
return revertCheck->isChecked();
41
///////////////////////////////////////////////////////////////////////////////
43
QString ReleaseInputDialog::release() const
45
if (type() == byRevision)
46
return " -r " + revisionEdit->text();
47
else if (type() == byDate)
48
return " -D " + dateEdit->text();
53
///////////////////////////////////////////////////////////////////////////////
55
ReleaseInputDialog::ReleaseType ReleaseInputDialog::type() const
57
if (revisionRadio->isChecked())
59
else if (dateRadio->isChecked())
65
#include "releaseinputdialog.moc"