File: rangeinputdialog.h

package info (click to toggle)
aoflagger 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,000 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (27 lines) | stat: -rw-r--r-- 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef AOFLAGGER_RFIGUI_TWO_NUMBERS_DIALOG_H_
#define AOFLAGGER_RFIGUI_TWO_NUMBERS_DIALOG_H_

#include <string>

#include <gtkmm/box.h>
#include <gtkmm/dialog.h>
#include <gtkmm/entry.h>
#include <gtkmm/label.h>
#include <gtkmm/messagedialog.h>

class RangeInputDialog final : public Gtk::MessageDialog {
 public:
  RangeInputDialog(Gtk::Window& parent, const std::string& question,
                   double default_start, double default_end);

  double GetStart() const;
  double GetEnd() const;

 private:
  Gtk::Box box_;
  Gtk::Entry start_range_;
  Gtk::Entry end_range_;
  Gtk::Label dash_label_{"-"};
};

#endif