Commit Graph

22 Commits

Author SHA1 Message Date
Bryan Schumaker 128415f009 ocarina: Use album art as window icon
This is an experimental feature for now, since I don't know how well
it'll work yet.  The user should always have the option to disable this
feature, even when it works its way out of experimental.
2011-06-27 23:18:39 -04:00
Bryan Schumaker 6cb857d988 ocarina: Switch over to new preferences methods
I removed the old methods, so I need to use the new methods for ocarina
to start up.  This patch switches everything over.

NOTE: As of this patch, ocarina should work again.
2011-05-01 12:46:16 -04:00
Bryan Schumaker 34f2ffe227 ocarina: enable window drag-n-drop
This calls universal_open() to open whatever file is dropped onto the
window
2011-05-01 12:28:09 -04:00
Bryan Schumaker b2e7054458 ocarina: Remove old window init code
Everything is covered now
2011-05-01 12:24:37 -04:00
Bryan Schumaker dc418df572 ocarina: Window grabs focus on escape
Pressing the escape key will cause the window to grab focus
2011-05-01 12:23:43 -04:00
Bryan Schumaker 72e59c9263 ocarina: Added shortcut famework
Now to add more shortcuts...
2011-05-01 12:23:22 -04:00
Bryan Schumaker b2db7d3327 Began gui rewrite
Cleaning up the code was proving to be more difficult than I initially
thought.  I have decided to rewrite the gui to make it less intimidating
and more easily modified.
2011-05-01 12:05:31 -04:00
Bryan Schumaker 7caeddf615 More window cleanups
This is looking like a less intimidating file now.  It should be more
usable going forward.
2011-05-01 12:00:23 -04:00
Bryan Schumaker ef78427954 Clean up window creation
I do as much as I can outside of the init() function to make the code
more readable.  Doing everything in init() can make things more
complicated and annoying.
2011-05-01 12:00:09 -04:00
Bryan Schumaker d45ea464ef Use a better shortcut system
The gtk.Entry() approach wasn't working.  My new way allows me to catch
keypresses directly from the window, rather than waiting for an entry to
change.
2010-12-16 22:02:34 -05:00
Bryan Schumaker 243eb63f8a Don't keep saving window size
If the window size hasn't changed, we should not keep setting it.
2010-12-16 11:03:09 -05:00
Bryan Schumaker b3add42ed4 Optimize a little bit 2010-12-03 08:31:03 -05:00
Bryan Schumaker 7efbe9b76c Window standalone module
The window is now a standalone module, and no longer accessed through
ocarina.__init__.py
2010-12-03 08:31:03 -05:00
Bryan Schumaker 487e8c39be Move generic saving / loading functions
These belong under path/
2010-12-03 08:31:03 -05:00
Bryan Schumaker c80dfcdf27 Finish new prefrences moveover
I have renamed libsaria.prefs2 to libsaria.prefs
2010-12-03 08:30:13 -05:00
Bryan Schumaker 7f82a08a3a Ocarina window new preferences tree
The main window will set its size based on the new preferences tree,
instead of the old preferences map.
2010-12-03 08:30:12 -05:00
Bryan Schumaker 3de6e94db1 Generic window icon function
I made a function to set the window icon, rather than doing it only when
the window is constructed.
2010-10-30 13:09:15 -04:00
Bryan Schumaker 2861e3d3b9 Window icon
The main window sets the image images/ocarina.png as the window manager
icon on startup.
2010-10-30 12:17:54 -04:00
Bryan Schumaker 8674fd8f17 Declassify Window()
We should only ever have one instance of the main window, so there is no
reason for it to be a class.  I have turned it into a set of functions
that do the same thing.
2010-08-22 09:20:27 -04:00
Bryan Schumaker 853dde3ea7 Plugins Install
I can now install plugins through drag and drop / universal open.  For
now, installing plugins involves copying the file to ~/.saria/plugins/.
2010-08-15 01:05:37 -04:00
Bryan Schumaker a87653f056 Main Tabs Implemented
I can now add pages to the main tab widget that is attached to the
window.  My next step is to work on libsaria plugins for Pandora and
Last.fm
2010-08-15 00:25:24 -04:00
Bryan Schumaker 7ce3da1a2a Ocarina GUI
I have begun creating the Ocarina 4.1 gui.  So far, I can create and
resize a window.  After a resize, the new size is saved and used again
when Ocarina is next started.  I am also investigating drag and drop for
use with plugin loading.
2010-08-13 23:58:19 -04:00