Changeset 3010d4f0be78945081ab902fdf2fbe336d1d7098
- Timestamp:
- 06/06/09 21:18:34 (3 years ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- 47c4611885f7db6fa6f5a7b9160603c2cb0ae53b
- Parents:
- 4a9e3e0e1071493950e5583f5f14bf136388ea28
- git-author:
- Nedko Arnaudov <nedko@arnaudov.name> / 2009-06-06T21:18:08Z+0300
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2009-06-06T21:18:34Z+0300
- Message:
-
About box and frame for master section
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rf39d91d
|
r3010d4f
|
|
| 870 | 870 | return |
| 871 | 871 | |
| | 872 | self.bundle_path = "." |
| | 873 | self.lv2logo = gtk.gdk.pixbuf_new_from_file(self.bundle_path + "/lv2logo.png") |
| | 874 | |
| 872 | 875 | self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) |
| 873 | 876 | #self.window.set_size_request(600, 400) |
| … |
… |
|
| 902 | 905 | self.ports = [] |
| 903 | 906 | |
| | 907 | first_box = gtk.VBox() |
| | 908 | first_box.set_spacing(5) |
| | 909 | |
| | 910 | master_frame = gtk.Frame("Master") |
| | 911 | master_frame.set_label_align(0.5, 0.5) |
| | 912 | |
| 904 | 913 | master_box = gtk.VBox() |
| 905 | 914 | master_box.set_spacing(5) |
| … |
… |
|
| 913 | 922 | self.add_param_box(master_box, self.create_knob_box(port)) |
| 914 | 923 | |
| 915 | | self.param_hbox.pack_start(master_box, True, True) |
| | 924 | master_frame.add(master_box) |
| | 925 | first_box.pack_start(master_frame, False, False) |
| | 926 | |
| | 927 | #logo = gtk.Image() |
| | 928 | #logo.set_from_pixbuf(self.lv2logo) |
| | 929 | #first_box.pack_start(logo, True) |
| | 930 | |
| | 931 | about_button = gtk.Button("About") |
| | 932 | about_button.connect("clicked", self.on_about) |
| | 933 | align = gtk.Alignment(1.0, 1.0, 1.0, 1.0) |
| | 934 | align.add(about_button) |
| | 935 | first_box.pack_start(align, True, False) |
| | 936 | |
| | 937 | self.param_hbox.pack_start(first_box, True, True) |
| 916 | 938 | |
| 917 | 939 | band_parameters = [ |
| … |
… |
|
| 962 | 984 | |
| 963 | 985 | self.initator = True |
| | 986 | |
| | 987 | def on_about(self, widget): |
| | 988 | about = gtk.AboutDialog() |
| | 989 | about.set_transient_for(self.window) |
| | 990 | about.set_name("4-band parametric filter") |
| | 991 | #about.set_website(program_data['website']) |
| | 992 | about.set_authors(["Nedko Arnaudov - LV2 plugin and GUI", 'Fons Adriaensen - DSP code']) |
| | 993 | about.set_artists(["LV2 logo has been designed by Thorsten Wilms, based on a concept from Peter Shorthose."]) |
| | 994 | about.set_logo(self.lv2logo) |
| | 995 | about.show() |
| | 996 | about.run() |
| | 997 | about.hide() |
| 964 | 998 | |
| 965 | 999 | def create_knob_box(self, port): |
-
|
r32f2456
|
r3010d4f
|
|
| 30 | 30 | filter.uselib = 'LV2CORE LIBLO' |
| 31 | 31 | filter.target = 'filter' |
| 32 | | filter.ttl = ['filter.ttl', 'manifest.ttl', 'ui'] |
| | 32 | filter.ttl = ['filter.ttl', 'manifest.ttl', 'ui', 'lv2logo.png'] |
| 33 | 33 | filter.source = ['filter.c', 'lv2filter.c', 'lv2plugin.c', 'log.c', 'lv2_ui.c'] |