File indexing completed on 2024-04-28 05:42:00
0001 /*************************************************************************** 0002 * Copyright (C) 2006-2009 by Rajko Albrecht * 0003 * ral@alwins-world.de * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU General Public License * 0016 * along with this program; if not, write to the * 0017 * Free Software Foundation, Inc., * 0018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0019 ***************************************************************************/ 0020 #include "dumprepo_impl.h" 0021 0022 DumpRepo_impl::DumpRepo_impl(QWidget *parent) 0023 : QWidget(parent) 0024 { 0025 setupUi(this); 0026 slotDumpRange(m_Rangeonly->isChecked()); 0027 } 0028 0029 void DumpRepo_impl::slotDumpRange(bool how) 0030 { 0031 m_StartNumber->setEnabled(how); 0032 m_EndNumber->setEnabled(how); 0033 m_lblStart->setEnabled(how); 0034 m_lblEnd->setEnabled(how); 0035 } 0036 0037 /*! 0038 \fn DumpRepo_impl::reposPath() 0039 */ 0040 QString DumpRepo_impl::reposPath() const 0041 { 0042 return m_ReposPath->url().toLocalFile(); 0043 } 0044 0045 /*! 0046 \fn DumpRepo_impl::targetFile() 0047 */ 0048 QString DumpRepo_impl::targetFile() const 0049 { 0050 return m_OutputFile->url().toLocalFile(); 0051 } 0052 0053 /*! 0054 \fn DumpRepo_impl::incremental() 0055 */ 0056 bool DumpRepo_impl::incremental() const 0057 { 0058 return m_incrementalDump->isChecked(); 0059 } 0060 0061 /*! 0062 \fn DumpRepo_impl::use_dumps() 0063 */ 0064 bool DumpRepo_impl::use_deltas() const 0065 { 0066 return m_UseDeltas->isChecked(); 0067 } 0068 0069 /*! 0070 \fn DumpRepo_impl::useNumbers() 0071 */ 0072 bool DumpRepo_impl::useNumbers() const 0073 { 0074 return m_Rangeonly->isChecked(); 0075 } 0076 0077 /*! 0078 \fn DumpRepo_impl::startNumber() const 0079 */ 0080 int DumpRepo_impl::startNumber() const 0081 { 0082 return useNumbers() ? m_StartNumber->value() : -1; 0083 } 0084 0085 /*! 0086 \fn DumpRepo_impl::endNumber() 0087 */ 0088 int DumpRepo_impl::endNumber() const 0089 { 0090 return useNumbers() ? m_EndNumber->value() : -1; 0091 } 0092 0093 #include "moc_dumprepo_impl.cpp"