File indexing completed on 2024-05-12 05:44:24
0001 /*************************************************************************** 0002 * Copyright (C) 2005-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 #ifndef RANGEINPUT_IMPL_H 0021 #define RANGEINPUT_IMPL_H 0022 0023 #include "svnqt/revision.h" 0024 #include "ui_rangeinput.h" 0025 #include <QPair> 0026 0027 class Rangeinput_impl final : public QWidget, public Ui::RangeInput 0028 { 0029 Q_OBJECT 0030 public: 0031 explicit Rangeinput_impl(QWidget *parent = nullptr); 0032 0033 typedef QPair<svn::Revision, svn::Revision> revision_range; 0034 0035 static bool getRevisionRange(revision_range &range, 0036 bool bWithWorking = true, 0037 bool bStartOnly = false, 0038 const svn::Revision &preset = svn::Revision(), 0039 QWidget *parent = nullptr); 0040 0041 revision_range getRange() const; 0042 0043 void setStartOnly(bool theValue); 0044 void setNoWorking(bool aValue); 0045 0046 bool StartOnly() const; 0047 void setHeadDefault(); 0048 0049 protected slots: 0050 void onHelp(); 0051 void stopHeadToggled(bool); 0052 void stopBaseToggled(bool); 0053 void stopNumberToggled(bool); 0054 void startHeadToggled(bool); 0055 void startBaseToggled(bool); 0056 void startNumberToggled(bool); 0057 void stopDateToggled(bool); 0058 void startDateToggled(bool); 0059 0060 protected: 0061 bool m_StartOnly; 0062 }; 0063 0064 #endif