id: qtgui_eye_sink_x
label: QT GUI Eye Sink

parameters:
-   id: type
    label: Type
    dtype: enum
    default: complex
    options: [complex, float, msg_complex, msg_float]
    option_labels: [Complex, Float, Complex Message, Float Message]
    option_attributes:
        fcn: [eye_sink_c, eye_sink_f, eye_sink_c, eye_sink_f]
        t: [complex, float, message, message]
    hide: part
-   id: ylabel
    label: Y Axis Label
    dtype: string
    default: Amplitude
    hide: part
-   id: yunit
    label: Y Axis Unit
    dtype: string
    default: '""'
    hide: part
-   id: size
    label: Number of Points
    dtype: int
    default: '1024'
    hide: ${ ('all' if type.startswith('msg') else 'none') }
-   id: samp_per_symbol
    label: Samples per Symbol
    dtype: int
    default: 'sps'
-   id: srate
    label: Sample Rate
    dtype: float
    default: samp_rate
-   id: grid
    label: Grid
    dtype: enum
    default: 'False'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    hide: part
-   id: autoscale
    label: Autoscale
    dtype: enum
    default: 'False'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
-   id: ymin
    label: Y min
    dtype: float
    default: '-1'
    hide: part
-   id: ymax
    label: Y max
    dtype: float
    default: '1'
    hide: part
-   id: nconnections
    label: Number of Inputs
    dtype: int
    default: '1'
    hide: ${ ('all' if type.startswith('msg') else 'part') }
-   id: update_time
    label: Update Period
    dtype: float
    default: '0.10'
    hide: part
-   id: entags
    label: Disp. Tags
    dtype: enum
    default: 'True'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    hide: ${ ('all' if type.startswith('msg') else 'part') }
-   id: gui_hint
    label: GUI Hint
    dtype: gui_hint
    hide: part
-   id: tr_mode
    label: Trigger Mode
    category: Trigger
    dtype: enum
    default: qtgui.TRIG_MODE_FREE
    options: [qtgui.TRIG_MODE_FREE, qtgui.TRIG_MODE_AUTO, qtgui.TRIG_MODE_NORM, qtgui.TRIG_MODE_TAG]
    option_labels: [Free, Auto, Normal, Tag]
    hide: part
-   id: tr_slope
    label: Trigger Slope
    category: Trigger
    dtype: enum
    default: qtgui.TRIG_MODE_POS
    options: [qtgui.TRIG_SLOPE_POS, qtgui.TRIG_SLOPE_NEG]
    option_labels: [Positive, Negative]
    hide: part
-   id: tr_level
    label: Trigger Level
    category: Trigger
    dtype: float
    default: '0.0'
    hide: part
-   id: tr_delay
    label: Trigger Delay
    category: Trigger
    dtype: float
    default: '0'
    hide: part
-   id: tr_chan
    label: Trigger Channel
    category: Trigger
    dtype: int
    default: '0'
    hide: part
-   id: tr_tag
    label: Trigger Tag Key
    category: Trigger
    dtype: string
    default: '""'
    hide: part
-   id: ctrlpanel
    label: Control Panel
    category: Config
    dtype: enum
    default: 'False'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    hide: part
-   id: legend
    label: Legend
    category: Config
    dtype: enum
    default: 'True'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    hide: part
-   id: axislabels
    label: Axis Labels
    category: Config
    dtype: enum
    default: 'True'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    hide: part
-   id: label1
    label: Line 1 Label
    dtype: string
    default: 'Signal 1'
    hide: ${ ('part' if (
            int(nconnections) >= 1
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width1
    label: Line 1 Width
    default: 1
    hide: ${ ('part' if (
            int(nconnections) >= 1
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color1
    label: Line 1 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    hide: ${ ('part' if (
            int(nconnections) >= 1
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style1
    label: Line 1 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    hide: ${ ('part' if (
            int(nconnections) >= 1
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker1
    label: Line 1 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    hide: ${ ('part' if (
            int(nconnections) >= 1
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha1
    label: Line 1 Alpha
    dtype: real
    default: 1.0
    hide: ${ ('part' if (
            int(nconnections) >= 1
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label2
    label: Line 2 Label
    dtype: string
    default: 'Signal 2'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 2
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width2
    label: Line 2 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 2
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color2
    label: Line 2 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 2
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style2
    label: Line 2 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 2
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker2
    label: Line 2 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 2
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha2
    label: Line 2 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 2
            or (type == "complex" and int(nconnections) >= 1)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label3
    label: Line 3 Label
    dtype: string
    default: 'Signal 3'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 3
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width3
    label: Line 3 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 3
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color3
    label: Line 3 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 3
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style3
    label: Line 3 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 3
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker3
    label: Line 3 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 3
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha3
    label: Line 3 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 3
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label4
    label: Line 4 Label
    dtype: string
    default: 'Signal 4'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 4
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width4
    label: Line 4 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 4
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color4
    label: Line 4 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 4
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style4
    label: Line 4 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 4
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker4
    label: Line 4 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 4
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha4
    label: Line 4 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 4
            or (type == "complex" and int(nconnections) >= 2)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label5
    label: Line 5 Label
    dtype: string
    default: 'Signal 5'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 5
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width5
    label: Line 5 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 5
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color5
    label: Line 5 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 5
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style5
    label: Line 5 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 5
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker5
    label: Line 5 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 5
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha5
    label: Line 5 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 5
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label6
    label: Line 6 Label
    dtype: string
    default: 'Signal 6'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 6
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width6
    label: Line 6 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 6
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color6
    label: Line 6 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 6
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style6
    label: Line 6 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 6
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker6
    label: Line 6 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 6
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha6
    label: Line 6 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 6
            or (type == "complex" and int(nconnections) >= 3)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label7
    label: Line 7 Label
    dtype: string
    default: 'Signal 7'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 7
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width7
    label: Line 7 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 7
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color7
    label: Line 7 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 7
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style7
    label: Line 7 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 7
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker7
    label: Line 7 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 7
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha7
    label: Line 7 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 7
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label8
    label: Line 8 Label
    dtype: string
    default: 'Signal 8'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 8
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width8
    label: Line 8 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 8
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color8
    label: Line 8 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 8
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style8
    label: Line 8 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 8
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker8
    label: Line 8 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 8
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha8
    label: Line 8 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 8
            or (type == "complex" and int(nconnections) >= 4)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label9
    label: Line 9 Label
    dtype: string
    default: 'Signal 9'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 9
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width9
    label: Line 9 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 9
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color9
    label: Line 9 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 9
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style9
    label: Line 9 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 9
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker9
    label: Line 9 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 9
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha9
    label: Line 9 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 9
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

-   id: label10
    label: Line 10 Label
    dtype: string
    default: 'Signal 10'
    base_key: label1
    hide: ${ ('part' if (
            int(nconnections) >= 10
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: width10
    label: Line 10 Width
    default: 1
    base_key: width1
    hide: ${ ('part' if (
            int(nconnections) >= 10
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: color10
    label: Line 10 Color
    dtype: enum
    options: ['blue', 'red', 'green', 'black', 'cyan', 'magenta', 'yellow', 'dark red', 'dark green', 'dark blue']
    option_labels: ['Blue', 'Red', 'Green', 'Black', 'Cyan', 'Magenta', 'Yellow', 'Dark Red', 'Dark Green', 'Dark Blue']
    default: 'blue'
    base_key: color1
    hide: ${ ('part' if (
            int(nconnections) >= 10
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: style10
    label: Line 10 Style
    dtype: enum
    options: ['1','2','3','4','5','0']
    option_labels: ['Solid','Dash','Dots','Dash-Dot','Dash-Dot-Dot']
    default: 1
    base_key: style1
    hide: ${ ('part' if (
            int(nconnections) >= 10
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: marker10
    label: Line 10 Marker
    dtype: enum
    options: ['-1','0','1','2','3','4','5','6','7','8','9']
    option_labels: ['None','Circle','Rectangle','Diamond','Triangle','Down Triangle','Left Triangle','Right Triangle','Cross','X-Cross']
    default: -1
    base_key: marker1
    hide: ${ ('part' if (
            int(nconnections) >= 10
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config
-   id: alpha10
    label: Line 10 Alpha
    dtype: real
    default: 1.0
    base_key: alpha1
    hide: ${ ('part' if (
            int(nconnections) >= 10
            or (type == "complex" and int(nconnections) >= 5)
            or (type == "msg_complex")) and (not type == "msg_float")
        else 'all')
        }
    category: Config

asserts:
- ${nconnections <= (5 if type == 'complex' else 10)}

inputs:
-   domain: stream
    dtype: ${ type.t }
    multiplicity: ${ (0 if type.startswith('msg') else nconnections) }
    optional: ${ (True if type.startswith('msg') else False) }

templates:
    imports: |-
        import sip

    callbacks:
    - set_time_domain_axis(${min}, ${max})
    - set_update_time(${update_time})
    - set_y_axis(${ymin}, ${ymax})
    - set_samp_rate(${srate})
    - set_samp_per_symbol(${samp_per_symbol})
    - self.${id}.set_trigger_mode(${tr_mode}, ${tr_slope}, ${tr_level}, ${tr_delay},
        ${tr_chan}, ${tr_tag})
    make: |-
        <%
            win = 'self._%s_win'%id
        %>\
        qtgui.${type.fcn}(
            ${size}, #size
            ${srate}, #samp_rate
            ${0 if type.startswith('msg') else nconnections}, #number of inputs
            None
        )
        self.${id}.set_update_time(${update_time})
        self.${id}.set_samp_per_symbol(${samp_per_symbol})
        self.${id}.set_y_axis(${ymin}, ${ymax})

        self.${id}.set_y_label(${ylabel}, ${yunit})

        self.${id}.enable_tags(${entags})
        self.${id}.set_trigger_mode(${tr_mode}, ${tr_slope}, ${tr_level}, ${tr_delay}, ${tr_chan}, ${tr_tag})
        self.${id}.enable_autoscale(${autoscale})
        self.${id}.enable_grid(${grid})
        self.${id}.enable_axis_labels(${axislabels})
        self.${id}.enable_control_panel(${ctrlpanel})

        % if legend == "False":
        self.${id}.disable_legend()
        % endif

        labels = [${label1}, ${label2}, ${label3}, ${label4}, ${label5},
            ${label6}, ${label7}, ${label8}, ${label9}, ${label10}]
        widths = [${width1}, ${width2}, ${width3}, ${width4}, ${width5},
            ${width6}, ${width7}, ${width8}, ${width9}, ${width10}]
        colors = ['${color1}', '${color2}', '${color3}', '${color4}', '${color5}',
            '${color6}', '${color7}', '${color8}', '${color9}', '${color10}']
        alphas = [${alpha1}, ${alpha2}, ${alpha3}, ${alpha4}, ${alpha5},
            ${alpha6}, ${alpha7}, ${alpha8}, ${alpha9}, ${alpha10}]
        styles = [${style1}, ${style2}, ${style3}, ${style4}, ${style5},
            ${style6}, ${style7}, ${style8}, ${style9}, ${style10}]
        markers = [${marker1}, ${marker2}, ${marker3}, ${marker4}, ${marker5},
            ${marker6}, ${marker7}, ${marker8}, ${marker9}, ${marker10}]


        % if type.endswith('complex'):
        for i in range(${2 if type.startswith('msg') else 2*int(nconnections)}):
            if len(labels[i]) == 0:
                if (i % 2 == 0):
                    self.${id}.set_line_label(i, "Eye [Re{{Data {0}}}]".format(round(i/2)))
                else:
                    self.${id}.set_line_label(i, "Eye [Im{{Data {0}}}]".format(round((i-1)/2)))
            else:
                self.${id}.set_line_label(i, labels[i])
            self.${id}.set_line_width(i, widths[i])
            self.${id}.set_line_color(i, colors[i])
            self.${id}.set_line_style(i, styles[i])
            self.${id}.set_line_marker(i, markers[i])
            self.${id}.set_line_alpha(i, alphas[i])
        % else:
        for i in range(${1 if type.startswith('msg') else int(nconnections)}):
            if len(labels[i]) == 0:
                self.${id}.set_line_label(i, "Eye[Data {0}]".format(i))
            else:
                self.${id}.set_line_label(i, labels[i])
            self.${id}.set_line_width(i, widths[i])
            self.${id}.set_line_color(i, colors[i])
            self.${id}.set_line_style(i, styles[i])
            self.${id}.set_line_marker(i, markers[i])
            self.${id}.set_line_alpha(i, alphas[i])
        % endif

        ${win} = sip.wrapinstance(self.${id}.qwidget(), Qt.QWidget)
        ${gui_hint() % win}

documentation: |-
    The GUI hint can be used to position the widget within the application. The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. Both the tab specification and the grid position are optional.

file_format: 1
