File: transform.blp

package info (click to toggle)
graphs 1.8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,160 kB
  • sloc: python: 4,861; xml: 220; makefile: 6
file content (66 lines) | stat: -rw-r--r-- 1,569 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using Gtk 4.0;
using Adw 1;

template $GraphsTransformDialog : Adw.Dialog {
  content-width: 450;
  title: _("Transform Data");
  default-widget: confirm_button;
  focus-widget: confirm_button;

  child: Adw.ToolbarView {
    [top]
    Adw.HeaderBar {
      show-end-title-buttons: false;
      [start]
      Button {
        label: _("Cancel");
        action-name: "window.close";
      }

      [end]
      Button confirm_button {
        label: _("Transform");
        styles ["suggested-action"]
        clicked => $on_accept();
      }

      [end]
      Button help_button {
        Adw.ButtonContent {
          halign: center;
          icon-name: "info-symbolic";
          Popover help_popover {
            position: bottom;
            Label help_info {
              label: _("Additional variables:\nx_min, y_min\nx_max, y_max \n\nTrigonometric functions use radians\nby default, append d to the function\nto use degrees, e.g. sind(x) or cosd(x).");
          	}
          }
        }
        halign: end;
        tooltip-text: _("More info");
        styles ["flat"]
      }
    }
    content: Adw.Clamp {
      margin-start: 12;
      margin-end: 12;
      margin-top: 12;
      margin-bottom: 12;
      Adw.PreferencesGroup {
        Adw.EntryRow transform_x {
          title: _("X =");
          activates-default: true;
        }

        Adw.EntryRow transform_y {
          title: _("Y =");
          activates-default: true;
        }

        Adw.SwitchRow discard {
          title: _("Discard Unselected Data");
        }
      }
    };
  };
}