~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to vcs/cvsservice/tagdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

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 <qlineedit.h>
 
13
#include <qcheckbox.h>
 
14
 
 
15
#include "tagdialog.h"
 
16
 
 
17
///////////////////////////////////////////////////////////////////////////////
 
18
// class TagDialog
 
19
///////////////////////////////////////////////////////////////////////////////
 
20
 
 
21
TagDialog::TagDialog( const QString &caption, QWidget *parent, const char *name )
 
22
    : TagDialogBase( parent, name ? name : "tagdialog", true )
 
23
{
 
24
    if (!caption.isEmpty())
 
25
    {
 
26
        setCaption( caption );
 
27
    }
 
28
}
 
29
 
 
30
///////////////////////////////////////////////////////////////////////////////
 
31
 
 
32
TagDialog::~TagDialog()
 
33
{
 
34
}
 
35
 
 
36
///////////////////////////////////////////////////////////////////////////////
 
37
 
 
38
void TagDialog::accept()
 
39
{
 
40
    if (tagBranchEdit->text().isEmpty())
 
41
        return;
 
42
 
 
43
    TagDialogBase::accept();
 
44
}
 
45
 
 
46
///////////////////////////////////////////////////////////////////////////////
 
47
 
 
48
QString TagDialog::tagName() const
 
49
{
 
50
    return tagBranchEdit->text();
 
51
}
 
52
 
 
53
///////////////////////////////////////////////////////////////////////////////
 
54
 
 
55
QString TagDialog::branchName() const
 
56
{
 
57
    return tagName();
 
58
}
 
59
 
 
60
///////////////////////////////////////////////////////////////////////////////
 
61
 
 
62
bool TagDialog::isBranch() const
 
63
{
 
64
    return tagAsBranchCheck->isChecked();
 
65
}
 
66
 
 
67
///////////////////////////////////////////////////////////////////////////////
 
68
 
 
69
bool TagDialog::force() const
 
70
{
 
71
    return forceCheck->isChecked();
 
72
}
 
73
 
 
74
#include "tagdialog.moc"