some more changes to the Scratchpad window mockup
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
||||
<!--Generated with glade3 3.2.0 on Mon Jun 4 13:58:06 2007 by fgerlits@desktop-->
|
||||
<!--Generated with glade3 3.2.0 on Wed Jun 6 14:37:58 2007 by fgerlits@desktop-->
|
||||
<glade-interface>
|
||||
<widget class="GtkWindow" id="window1">
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
|
@ -18,11 +18,44 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label1">
|
||||
<widget class="GtkHBox" id="hbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">CuePlayer</property>
|
||||
<property name="spacing">5</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="button1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="button2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="fill">False</property>
|
||||
<property name="padding">5</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
|
@ -63,7 +96,7 @@
|
|||
<property name="spacing">5</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="button1">
|
||||
<widget class="GtkButton" id="button3">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
|
@ -86,7 +119,7 @@
|
|||
<property name="homogeneous">True</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="button2">
|
||||
<widget class="GtkButton" id="button4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
|
@ -95,7 +128,7 @@
|
|||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkButton" id="button3">
|
||||
<widget class="GtkButton" id="button5">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
|
|
|
@ -41,6 +41,21 @@ class ScratchpadWindow
|
|||
|handler| method(handler)
|
||||
}
|
||||
|
||||
@mainWindow = @glade["window1"]
|
||||
@mainWindow.signal_connect("hide") {
|
||||
Gtk.main_quit
|
||||
}
|
||||
|
||||
playButton = @glade["button1"]
|
||||
playButtonImage = Gtk::Image.new(Gtk::Stock::MEDIA_PLAY,
|
||||
Gtk::IconSize::BUTTON)
|
||||
playButton.image = playButtonImage
|
||||
|
||||
stopButton = @glade["button2"]
|
||||
stopButtonImage = Gtk::Image.new(Gtk::Stock::MEDIA_STOP,
|
||||
Gtk::IconSize::BUTTON)
|
||||
stopButton.image = stopButtonImage
|
||||
|
||||
@listStore = Gtk::ListStore.new(String)
|
||||
addrow("Song One")
|
||||
addrow("Song Two")
|
||||
|
@ -62,6 +77,8 @@ class ScratchpadWindow
|
|||
cellRenderer1,
|
||||
:text => 0)
|
||||
treeView.append_column(treeViewColumn1)
|
||||
|
||||
treeView.selection.mode = Gtk::SELECTION_MULTIPLE
|
||||
end
|
||||
|
||||
def addrow(contents)
|
||||
|
@ -70,18 +87,14 @@ class ScratchpadWindow
|
|||
end
|
||||
|
||||
def run
|
||||
mainWindow = @glade["window1"]
|
||||
mainWindow.signal_connect("hide") do
|
||||
Gtk.main_quit
|
||||
end
|
||||
mainWindow.show_all
|
||||
@mainWindow.show_all
|
||||
Gtk.main
|
||||
end
|
||||
end
|
||||
|
||||
Gtk.init
|
||||
cwd = File.dirname(__FILE__)
|
||||
Gtk::RC.parse(cwd + "/scratchpadWindow.gtkrc")
|
||||
Gtk::RC.default_files = [cwd + "/themes/MacOS-X/gtk-2.0/gtkrc"]
|
||||
Gtk.init
|
||||
scratchpadWindow = ScratchpadWindow.new(cwd + "/scratchpadWindow.glade")
|
||||
scratchpadWindow.run
|
||||
|
||||
|
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 281 B |
After Width: | Height: | Size: 276 B |
After Width: | Height: | Size: 290 B |
After Width: | Height: | Size: 250 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 71 B |
After Width: | Height: | Size: 518 B |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 518 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 707 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 126 B |
After Width: | Height: | Size: 162 B |
After Width: | Height: | Size: 523 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 144 B |
After Width: | Height: | Size: 240 B |
After Width: | Height: | Size: 152 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 958 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 958 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 758 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.6 KiB |