Exemplo n.º 1
0
  void set(const DialogLook &look, PixelRect _rc) {
    SingleWindow::set(_T("RunRenderOZ"), _T("RunRenderOZ"), _rc);

    const PixelRect rc = get_client_rect();

    WindowStyle with_border;
    with_border.Border();

    oz.set(*this, rc.right / 2, 0, rc.right - (rc.right / 2), rc.bottom,
           with_border);
    oz_window = &oz;

    const PixelRect list_rc = {
      0, 0, PixelScalar(rc.right / 2), PixelScalar(rc.bottom - 30),
    };

    type_list = new ListControl(*this, look, list_rc,
                                with_border, 25);
    type_list->SetPaintItemCallback(paint_oz_type_name);
    type_list->SetCursorCallback(oz_type_cursor_callback);
    type_list->SetLength(NUM_OZ_TYPES);

    PixelRect button_rc = rc;
    button_rc.right = (rc.left + rc.right) / 2;
    button_rc.top = button_rc.bottom - 30;
    close_button.set(*this, _T("Close"), ID_CLOSE, button_rc);

    oz.set_shape(ObservationZonePoint::LINE);

    type_list->SetFocus();
  }
Exemplo n.º 2
0
    void Create(const DialogLook &look, PixelSize size) {
        SingleWindow::Create(_T("RunRenderOZ"), size);

        const PixelRect rc = GetClientRect();

        WindowStyle with_border;
        with_border.Border();

        PixelRect oz_rc = rc;
        oz_rc.left = oz_rc.right / 2;
        oz.Create(*this, oz_rc, with_border);

        const PixelRect list_rc(0, 0, rc.right / 2, rc.bottom - 30);

        type_list = new ListControl(*this, look, list_rc,
                                    with_border, 25);

        type_list->SetItemRenderer(this);
        type_list->SetCursorHandler(this);
        type_list->SetLength(NUM_OZ_TYPES);

        PixelRect button_rc = rc;
        button_rc.right = (rc.left + rc.right) / 2;
        button_rc.top = button_rc.bottom - 30;
        close_button.Create(*this, _T("Close"), ID_CLOSE, button_rc);

        oz.set_shape(ObservationZone::Shape::LINE);

        type_list->SetFocus();
    }
Exemplo n.º 3
0
  void Create(const DialogLook &look, PixelSize size) {
    SingleWindow::Create(_T("RunChartRenderer"), size);

    const PixelRect rc = GetClientRect();

    WindowStyle with_border;
    with_border.Border();

    const PixelRect list_rc(0, 0, 250, rc.bottom - 30);

    type_list = new ListControl(*this, look, list_rc,
                                with_border, 25);

    type_list->SetItemRenderer(this);
    type_list->SetCursorHandler(this);
    type_list->SetLength(ARRAY_SIZE(chart_names));

    PixelRect chart_rc = rc;
    chart_rc.left = list_rc.right;
    chart.Create(*this, chart_rc, with_border);

    PixelRect button_rc = rc;
    button_rc.right = list_rc.right;
    button_rc.top = button_rc.bottom - 30;
    close_button.Create(*this, *button_look, _T("Close"), button_rc,
                        WindowStyle(),
                        *this, CLOSE);

    type_list->SetFocus();
  }