ocarina: Remove settings directory
I can add in a settings tab later. Cleaning up code is a higher priority
This commit is contained in:
parent
19f2597936
commit
2c5d873cd0
|
@ -1,19 +0,0 @@
|
|||
# Bryan Schumaker (1 / 22 / 2011)
|
||||
|
||||
import ocarina
|
||||
gtk = ocarina.gtk
|
||||
|
||||
def configure():
|
||||
import general
|
||||
import plugin
|
||||
|
||||
window = gtk.Window()
|
||||
pages = gtk.Notebook()
|
||||
window.set_title("Settings")
|
||||
window.add(pages)
|
||||
window.resize(400, 300)
|
||||
pages.show()
|
||||
|
||||
pages.append_page(general.get_page(), gtk.Label("General"))
|
||||
pages.append_page(plugin.get_page(), gtk.Label("Plugins"))
|
||||
window.show()
|
|
@ -1,9 +0,0 @@
|
|||
# Bryan Schumaker (1 / 22 / 2011)
|
||||
|
||||
import ocarina
|
||||
gtk = ocarina.gtk
|
||||
|
||||
def get_page():
|
||||
page = gtk.Label("General settings")
|
||||
page.show()
|
||||
return page
|
|
@ -1,39 +0,0 @@
|
|||
# Bryan Schumaker (1 / 24 / 2010)
|
||||
|
||||
import ocarina
|
||||
gtk = ocarina.gtk
|
||||
libsaria = ocarina.libsaria
|
||||
plugin = libsaria.plugin
|
||||
|
||||
cell = gtk.CellRendererText()
|
||||
cell.set_fixed_height_from_font(1)
|
||||
|
||||
class PluginColumn(gtk.TreeViewColumn):
|
||||
def __init__(self):
|
||||
gtk.TreeViewColumn.__init__(self, "Plugin", cell)
|
||||
self.add_attribute(cell, 'text', 0)
|
||||
|
||||
class PluginList(gtk.ListStore):
|
||||
def __init__(self):
|
||||
gtk.ListStore.__init__(self, str)
|
||||
|
||||
class PluginView(gtk.TreeView):
|
||||
def __init__(self):
|
||||
gtk.TreeView.__init__(self)
|
||||
self.list = PluginList()
|
||||
self.col = PluginColumn()
|
||||
|
||||
self.append_column(self.col)
|
||||
names = []
|
||||
for mod in plugin.loaded.values():
|
||||
names.append(mod.__NAME__)
|
||||
names.sort()
|
||||
for name in names:
|
||||
self.list.append([name])
|
||||
|
||||
self.set_model(self.list)
|
||||
self.show_all()
|
||||
|
||||
|
||||
def get_page():
|
||||
return PluginView()
|
Loading…
Reference in New Issue