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
***************************************************************************/
12
#include <qlineedit.h>
13
#include <qcheckbox.h>
15
#include "tagdialog.h"
17
///////////////////////////////////////////////////////////////////////////////
19
///////////////////////////////////////////////////////////////////////////////
21
TagDialog::TagDialog( const QString &caption, QWidget *parent, const char *name )
22
: TagDialogBase( parent, name ? name : "tagdialog", true )
24
if (!caption.isEmpty())
26
setCaption( caption );
30
///////////////////////////////////////////////////////////////////////////////
32
TagDialog::~TagDialog()
36
///////////////////////////////////////////////////////////////////////////////
38
void TagDialog::accept()
40
if (tagBranchEdit->text().isEmpty())
43
TagDialogBase::accept();
46
///////////////////////////////////////////////////////////////////////////////
48
QString TagDialog::tagName() const
50
return tagBranchEdit->text();
53
///////////////////////////////////////////////////////////////////////////////
55
QString TagDialog::branchName() const
60
///////////////////////////////////////////////////////////////////////////////
62
bool TagDialog::isBranch() const
64
return tagAsBranchCheck->isChecked();
67
///////////////////////////////////////////////////////////////////////////////
69
bool TagDialog::force() const
71
return forceCheck->isChecked();
74
#include "tagdialog.moc"