예제 #1
0
 def __init__(self, parent, name, title, data):
     TreeNode.__init__(self, parent, name, title, data)
     self.flags = TextRectangle("\n".join(self.get_flags()))
     self.content.border_color = None
     self.flags.border_color = None
     self.flags.font_size = 10
     self.flags.padding = 0, 5, 5, 5
     self.items.append(self.flags)
     self.set_fill_color(0.92941176470588238, 0.99215686274509807,0.83137254901960789,  1)
예제 #2
0
 def __init__(self, parent, name, title, data):
     VBoxNode.__init__(self)
     self.padding = (0, 0, 0, 0)
     self.expand_to_fill = False
     self.name = name
     self.parent = parent
     self.data = data
     self.children = []
     self.content = TextRectangle(title)
     self.content.set_fill_color(0.83137254901960789, 0.92941176470588238, 0.99215686274509807, 1)
     self.items.append(self.content)
     self.extra_bottom_space = 0
예제 #3
0
 def __init__(self, parent, name, title, data):
     VBoxNode.__init__(self)
     self.padding = (0, 0, 0, 0)
     self.expand_to_fill = False
     self.name = name
     self.parent = parent
     self.data = data
     self.children = []
     self.content = TextRectangle(title)
     self.content.set_border_color(1, 1, 1, 0)
     self.content.set_fill_color(1, 1, 1, 0)
     self.items.append(self.content)
     self.extra_bottom_space = 0
예제 #4
0
 def set_body_text(self, body):
     if self.body:
         self.body.text = body
     else:
         self.body = TextRectangle(body)
         r, g, b, a = self.heading.fill_color
         self.body.set_fill_color(r, g, b, 0.7)
         self.body.set_color(*self.heading.color)
         self.body.border_color = self.border_color
         if self.flags_box:
             self.body.draw_vertices = False, False, True, False
         else:
             self.body.draw_vertices = None
         self.body.padding = 3, 5, 5, 5
         self.items.append(self.body)
예제 #5
0
    def __init__(self, parent, name, data):
        TreeNode.__init__(self, parent, name, "SUBQUERY", data)
        self.padding = (0, 10, 25, 10)
        self.expand_to_fill = True
        self.content.border_color = None
        self.content.fill_color = (0.8, 0.8, 0.8, 0.5)
        self.content.line_spacing = 0
        self.content.padding = 5, 10, 5, 10

        self.subtitle = TextRectangle("\n".join(self.get_flags()))
        self.subtitle.border_color = None
        self.subtitle.fill_color = (0.8, 0.8, 0.8, 0.3)
        self.subtitle.line_spacing = 0
        self.subtitle.padding = 2, 10, 5, 10
        self.subtitle.font_size = 10
        self.items.append(self.subtitle)
예제 #6
0
    def __init__(self, parent, name, title, data):
        TableTreeNode.__init__(self, parent, name, title, data)
        self.expand_to_fill = True
        self.padding = 0, 10, 10, 10
        self.set_body_text("SUBQUERY, materialized from")
        self.body.set_fill_color(0.8, 0.8, 0.8, 0.5)
        self.body.set_color(0, 0, 0, 1)

        flags = self.get_flags()
        self.subtitle = TextRectangle("\n".join(flags))
        self.subtitle.border_color = None
        self.subtitle.set_fill_color(0.8, 0.8, 0.8, 0.3)
        self.subtitle.line_spacing = 0
        self.subtitle.padding = 2, 10, 5, 10
        self.subtitle.font_size = 10
        self.items.append(self.subtitle)
예제 #7
0
 def __init__(self, parent, name, title, data):
     TreeNode.__init__(self, parent, name, title, data)
     self.border_color = 125.0 / 255, 125.0 / 255, 125.0 / 255, 1
     self.heading = self.content
     self.heading.border_color = None
     self.references = {}
     self.heading.set_icon("../../images/grt/structs/db.Table.16x16.png")
     self.heading.set_color(1, 1, 1, 1)
     self.body = None
     self.flags_box = None
     flags = []
     if data.has_key("using_join_buffer"):
         flags.append("join buf (%s)" % data["using_join_buffer"])
     if flags:
         self.flags_box = TextRectangle("\n".join(flags))
         self.flags_box.set_color(*self.heading.color)
         self.items.append(self.flags_box)