Esempio n. 1
0
    def __init__(self, app, presenter):

        gtk.VBox.__init__(self)
        self.app = app
        self.presenter = presenter

        self.nb = gtk.Notebook()
        self.nb.set_property('scrollable', True)

        self.introspect = ObjectIntrospectionWidget(app, presenter)
        self.nb.append_page(self.introspect, gtk.Label('Object Browser'))

        self.visualizer = ObjectVisualizerWidget(app, presenter)
        self.nb.append_page(self.visualizer, gtk.Label('Data Visualizer'))

        self.viewer = ObjectViewerWidget(app, presenter)
        self.nb.append_page(self.viewer, gtk.Label('Viewer'))

        self.nb.connect('switch-page', self.change_tab)

        self.pack_start(self.nb, True, True, 2)

        self.show_all()

        self.nb.set_current_page(0)
Esempio n. 2
0
class ObjectBrowser(gtk.VBox):
    def __init__(self, app, presenter):

        gtk.VBox.__init__(self)
        self.app = app
        self.presenter = presenter

        self.nb = gtk.Notebook()
        self.nb.set_property('scrollable', True)

        self.introspect = ObjectIntrospectionWidget(app, presenter)
        self.nb.append_page(self.introspect, gtk.Label('Object Browser'))

        self.visualizer = ObjectVisualizerWidget(app, presenter)
        self.nb.append_page(self.visualizer, gtk.Label('Data Visualizer'))

        self.viewer = ObjectViewerWidget(app, presenter)
        self.nb.append_page(self.viewer, gtk.Label('Viewer'))

        self.nb.connect('switch-page', self.change_tab)

        self.pack_start(self.nb, True, True, 2)

        self.show_all()

        self.nb.set_current_page(0)

    def change_tab(self, *args):
        tab = args[2]
        if tab == 1:
            self.visualizer.active = True
            self.visualizer.update_view()
        else:
            self.visualizer.active = False
Esempio n. 3
0
    def __init__(self, app, presenter):
        gtk.VBox.__init__(self)
        self.app = app
        self.presenter = presenter
        self.caption = presenter.doc_name

        self.tab_caption = TabDocCaption(self, self.caption)

        self.tb = DocToolbar(app, self)
        self.pack_start(self.tb, False, True, 0)

        self.hpaned = gtk.HPaned()
        self.hpaned.set_border_width(0)
        self.hpaned.set_position(250)

        self.modelbrowser = ModelViewWidget(app, presenter)
        self.hpaned.pack1(self.modelbrowser, True, False)
        self.modelbrowser.set_size_request(250, -1)

        self.inspect = ObjectIntrospectionWidget(app, presenter)
        self.hexview = ObjectVisualizerWidget(app, presenter)
        self.hpaned.pack2(self.hexview if config.bin_view else self.inspect,
                          True, False)
        self.view = config.bin_view

        self.pack_start(self.hpaned, True, True, 0)

        self.show_all()
Esempio n. 4
0
	def __init__(self, app, presenter):

		gtk.VBox.__init__(self)
		self.app = app
		self.presenter = presenter

		self.nb = gtk.Notebook()
		self.nb.set_property('scrollable', True)

		self.introspect = ObjectIntrospectionWidget(app, presenter)
		self.nb.append_page(self.introspect, gtk.Label('Object Browser'))

		self.visualizer = ObjectVisualizerWidget(app, presenter)
		self.nb.append_page(self.visualizer, gtk.Label('Data Visualizer'))

		self.viewer = ObjectViewerWidget(app, presenter)
		self.nb.append_page(self.viewer, gtk.Label('Viewer'))

		self.nb.connect('switch-page', self.change_tab)

		self.pack_start(self.nb, True, True, 2)

		self.show_all()

		self.nb.set_current_page(0)
Esempio n. 5
0
class ObjectBrowser(gtk.VBox):


	def __init__(self, app, presenter):

		gtk.VBox.__init__(self)
		self.app = app
		self.presenter = presenter

		self.nb = gtk.Notebook()
		self.nb.set_property('scrollable', True)

		self.introspect = ObjectIntrospectionWidget(app, presenter)
		self.nb.append_page(self.introspect, gtk.Label('Object Browser'))

		self.visualizer = ObjectVisualizerWidget(app, presenter)
		self.nb.append_page(self.visualizer, gtk.Label('Data Visualizer'))

		self.viewer = ObjectViewerWidget(app, presenter)
		self.nb.append_page(self.viewer, gtk.Label('Viewer'))

		self.nb.connect('switch-page', self.change_tab)

		self.pack_start(self.nb, True, True, 2)

		self.show_all()

		self.nb.set_current_page(0)

	def change_tab(self, *args):
		tab = args[2]
		if tab == 1:
			self.visualizer.active = True
			self.visualizer.update_view()
		else:
			self.visualizer.active = False