vcs/cvsservice/tagdialog.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 <qlineedit.h> 00013 #include <qcheckbox.h> 00014 00015 #include "tagdialog.h" 00016 00018 // class TagDialog 00020 00021 TagDialog::TagDialog( const QString &caption, QWidget *parent, const char *name ) 00022 : TagDialogBase( parent, name ? name : "tagdialog", true ) 00023 { 00024 if (!caption.isEmpty()) 00025 { 00026 setCaption( caption ); 00027 } 00028 } 00029 00031 00032 TagDialog::~TagDialog() 00033 { 00034 } 00035 00037 00038 void TagDialog::accept() 00039 { 00040 if (tagBranchEdit->text().isEmpty()) 00041 return; 00042 00043 TagDialogBase::accept(); 00044 } 00045 00047 00048 QString TagDialog::tagName() const 00049 { 00050 return tagBranchEdit->text(); 00051 } 00052 00054 00055 QString TagDialog::branchName() const 00056 { 00057 return tagName(); 00058 } 00059 00061 00062 bool TagDialog::isBranch() const 00063 { 00064 return tagAsBranchCheck->isChecked(); 00065 } 00066 00068 00069 bool TagDialog::force() const 00070 { 00071 return forceCheck->isChecked(); 00072 } 00073 00074 #include "tagdialog.moc"