]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/sweeptimingwidget.hpp
Accept user-entered sample rates when external clock is enabled
[pulseview.git] / pv / widgets / sweeptimingwidget.hpp
index d760a79d8fdab3bd95b38264e2572d176f0ae6e7..46d12d8e1e47c79687e4c8796bce51c762bf6ccc 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef PULSEVIEW_PV_WIDGETS_SWEEPTIMINGWIDGET_HPP
@@ -45,7 +44,9 @@ private:
        };
 
 public:
-       SweepTimingWidget(const char *suffix, QWidget *parent = NULL);
+       SweepTimingWidget(const char *suffix, QWidget *parent = nullptr);
+
+       void allow_user_entered_values(bool value);
 
        void show_none();
        void show_min_max_step(uint64_t min, uint64_t max, uint64_t step);
@@ -69,7 +70,7 @@ private:
        ValueType value_type_;
 };
 
-} // widgets
-} // pv
+}  // namespace widgets
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_WIDGETS_SWEEPTIMINGWIDGET_HPP