File: info_box.cpp

package info (click to toggle)
mysql-workbench 6.3.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 113,932 kB
  • ctags: 87,814
  • sloc: ansic: 955,521; cpp: 427,465; python: 59,728; yacc: 59,129; xml: 54,204; sql: 7,091; objc: 965; makefile: 638; sh: 613; java: 237; perl: 30; ruby: 6; php: 1
file content (28 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
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
#include "info_box.h"
#include "workbench/wb_context_ui.h"
#include "base/string_utilities.h"


InfoBox::InfoBox(wb::WBContextUI *wbui)
  : _wbui(wbui)
{
  set_border_width(8);

  _size_label.set_text(_("Diagram Size:"));
  _size_value.set_text("");
  
  attach(_size_label, 0, 1, 0, 1, Gtk::FILL, Gtk::FILL);
  attach(_size_value, 1, 2, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL);

  _size_open.set_label("Change Size...");
  attach(_size_open, 1, 2, 1, 2, Gtk::FILL, Gtk::FILL);

  show_all();
}


void InfoBox::refresh()
{
  _size_open.set_sensitive(!_wbui->get_active_diagram_info().empty());
  _size_value.set_text(_wbui->get_active_diagram_info());
}