~ubuntu-branches/ubuntu/karmic/kdevelop/karmic

« back to all changes in this revision

Viewing changes to vcs/cvsservice/releaseinputdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-05-25 19:34:26 UTC
  • mfrom: (1.1.11 upstream) (2.3.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090525193426-hdntv90rvflyew8g
Tags: 4:3.9.93-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - Conflict/replace -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2003 by Mario Scalas                                    *
3
 
 *   mario.scalas@libero.it                                                *
4
 
 *                                                                         *
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.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#include <qlabel.h>
13
 
#include <klineedit.h>
14
 
#include <qcheckbox.h>
15
 
#include <qradiobutton.h>
16
 
 
17
 
#include "releaseinputdialog.h"
18
 
 
19
 
///////////////////////////////////////////////////////////////////////////////
20
 
// class ReleaseInputDialog
21
 
///////////////////////////////////////////////////////////////////////////////
22
 
 
23
 
ReleaseInputDialog::ReleaseInputDialog( QWidget* parent)
24
 
    : ReleaseInputDialogBase( parent, "releaseinputdialog", true, 0 )
25
 
{
26
 
}
27
 
 
28
 
///////////////////////////////////////////////////////////////////////////////
29
 
 
30
 
ReleaseInputDialog::~ReleaseInputDialog()
31
 
{
32
 
}
33
 
 
34
 
///////////////////////////////////////////////////////////////////////////////
35
 
 
36
 
bool ReleaseInputDialog::isRevert() const
37
 
{
38
 
    return revertCheck->isChecked();
39
 
}
40
 
 
41
 
///////////////////////////////////////////////////////////////////////////////
42
 
 
43
 
QString ReleaseInputDialog::release() const
44
 
{
45
 
    if (type() == byRevision)
46
 
        return " -r " + revisionEdit->text();
47
 
    else if (type() == byDate)
48
 
        return " -D " + dateEdit->text();
49
 
    else
50
 
        return QString::null;
51
 
}
52
 
 
53
 
///////////////////////////////////////////////////////////////////////////////
54
 
 
55
 
ReleaseInputDialog::ReleaseType ReleaseInputDialog::type() const
56
 
{
57
 
    if (revisionRadio->isChecked())
58
 
        return byRevision;
59
 
    else if (dateRadio->isChecked())
60
 
        return byDate;
61
 
    else
62
 
        return byHead;
63
 
}
64
 
 
65
 
#include "releaseinputdialog.moc"
66