Commit Graph

1028 Commits

Author SHA1 Message Date
Bryan Schumaker fb4e863b64 Move Source() class to ocarina/sources/__init__.py
This finishes my initial attempt at cleaning up this portion of the gui.
2011-05-01 12:03:12 -04:00
Bryan Schumaker 965ff4dc18 Move listview to new file
Continuing my source gui cleanup
2011-05-01 12:02:26 -04:00
Bryan Schumaker f194444895 Move ListStore creation code to new file
This continues my sources cleanup.
2011-05-01 12:02:15 -04:00
Bryan Schumaker 74545558a7 Move source column code to new file
This patch also moves the column into a new file.  This is the beginning
of my attempt to clean up the code used to display the song list.
2011-05-01 12:01:40 -04:00
Bryan Schumaker 2c1865d257 Measure startup time in ocarina/__init__.py
I was doing some of the calculation in ocarina.py, but it can be done
easier (and more accurately) in ocarina/__init__.py
2011-05-01 12:01:25 -04:00
Bryan Schumaker 08fa12d76d Don't create menu items in ocarina.py
I was creating the "Pause after current track" menu item in ocarina.py,
but it can easily be done in menu.py.
2011-05-01 12:00:55 -04:00
Bryan Schumaker c62ffd7e1f Initialize body in ocarina/__init__.py
This helps clean up ocarina.py a bit more.
2011-05-01 12:00:40 -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 5e051b523d images: Flip thumbs down button
I think it looks better flipped horizontally.
2011-05-01 11:59:50 -04:00
Bryan Schumaker 212a846d8c libsaria: Cache removes path if it exists
I wasn't checking if the path exists before removing it, and this caused
an error.  Checking before removing is simple enough, though...
2011-05-01 11:59:29 -04:00
Bryan Schumaker 6d08dedba5 ocarina: Single add_to_queue() function
This function is similar to the add_to_playlist() function I recently
added.  The idea is to have the queue add things to itself, rather than
having the playlist and library implement this function independently.
2011-05-01 11:59:07 -04:00
Bryan Schumaker f8ed280ba1 ocarina: Playlist adds selected to playlist
It was silly to have the library control adding songs to the playlist.
The playlist should provide an easy function that takes the selected
songs and adds them.
2011-05-01 11:58:47 -04:00
Bryan Schumaker 15664ec79f Tell git to ignore .swp files from vim 2011-05-01 11:57:50 -04:00
Bryan Schumaker 6863318d5b plugins: Web radio drop down selector
The drop down selector provides a way of changing stations while on
another station.  It's much more convenient.
2011-05-01 11:54:40 -04:00
Bryan Schumaker 377c1a496d ocarina: Set header / footer visibility when adding page
This allows me to store the visible settings in the Page() class, rather
than having to store it with the rest of the content.
2011-05-01 11:54:23 -04:00
Bryan Schumaker c185524d62 ocarina: Selectively add header and footer to tab pages
If I don't want the header or footer on a tab page, I shouldn't have to
draw it.  This patch gives me a way to do that.
2011-05-01 11:54:06 -04:00
Bryan Schumaker 94f428e615 ocarina: sources.cur_lib_id doesn't exist anymore
I should use sources.get_attrs("id") to find the current id instead.
2011-05-01 11:53:42 -04:00
Bryan Schumaker c78f806244 plugins: All plugins have a __NAME__ value 2011-05-01 11:43:50 -04:00
Bryan Schumaker d28ca013f3 ocarina: Added initial plugin configuration page
This page will eventually be used to stop, start, and uninstall plugins.
2011-05-01 11:43:32 -04:00
Bryan Schumaker 8c2e7605ef ocarina: Create settings window every time
Trying to save the window each time wasn't working well.  I found that
clicking the preferences button a second time would display an empty
window, rather than what was saved.  The user probably won't notice the
time it takes to create the window again.
2011-05-01 11:43:14 -04:00
Bryan Schumaker 1e52558279 ocarina: Horizontal like / dislike buttons
This patch changes the like and dislike buttons to be arranged
horizontally, rather than vertically.
2011-05-01 11:42:53 -04:00
Bryan Schumaker 847b51908a ocarina: General settings page
The settings will be shown in a notebook, with a tabbed interface.  This
patch adds a "general" page for basic settings.
2011-05-01 11:42:32 -04:00
Bryan Schumaker 471db697e9 ocarina: Selectively create settings window
We should only do this if the window doesn't already exist.
2011-05-01 11:42:12 -04:00
Bryan Schumaker 93dcfe5f8e ocarina: New window for settings
Clicking the settings button will now create a new window for
configuring settings.
2011-05-01 11:41:58 -04:00
Bryan Schumaker fd1514202f ocarina: Create settings module
This module is for controlling various settings.  It will create a new
window and respond to any events.
2011-05-01 11:40:52 -04:00
Bryan Schumaker f5d6990bc0 ocarina: Create preferences button
This button will open a window for configuring Ocarina when clicked.
For now, clicking it will print out a message.
2011-05-01 11:40:30 -04:00
Bryan Schumaker 23cd4da304 Track version in libsaria
Tracking two different versions for Ocarina and libsaria was too much
work.  From now on, Ocarina and libsaria will have the same version.
Ocarina's version string will be set based on libsaria.
2011-05-01 11:40:09 -04:00
Bryan Schumaker e537f6d1c6 Added check_deps.py
This script will attempt to import required and optional dependencies to
see if they are installed and available to the python interpreter.
2011-05-01 11:39:57 -04:00
Bryan Schumaker cd914936f3 Bump minor version and mark development as True 2011-05-01 11:39:41 -04:00
Bryan Schumaker 5903d085b2 Current version is 4.3.3 2011-05-01 11:05:55 -04:00
Bryan Schumaker 8ff437a682 web server: Load songs from the library browser
This patch will load a song clicked on in the original library browser.
This is a better action than trying to play the song through html5!
2011-05-01 11:05:55 -04:00
Bryan Schumaker 7c4f32c30b ocarina: User cancels manual album art
This used to cause the album art to change to the Ocarina icon.  When
the user cancels setting album art, None is returned from the selector
function.  We should check for this before trying to set the image and
return early if path is None.
2011-05-01 11:05:55 -04:00
Bryan Schumaker 50cded315e bump bug version 2011-05-01 11:05:55 -04:00
Bryan Schumaker 44fee8c8b3 web_server: Remove print statements
These have been commented out in case I need them later.
2011-05-01 11:05:55 -04:00
Bryan Schumaker 47f33a3f8f libsaria: Don't save on preference initialization
When a preference is initially created, it should be set to a default
value.  If it is set to a default value, then we don't need to save it
immediately.  Let's wait until it changes before actually doing a
save...
2011-05-01 11:05:55 -04:00
Bryan Schumaker 802513c726 libsaria: Don't immediately enable preference saving
We shouldn't need to save preferences during startup because at this
point only the initial values have been set.  If nothing is changed,
then nothing needs to be saved and we can save some time.  This should
also prevent any problems caused by crashing during a save.
2011-05-01 11:05:55 -04:00
Bryan Schumaker e812fbaee0 Don't filter when there are no terms
If there are no terms to filter on, we should return a set of all items.
This will show all songs when a space has been entered into the filter
bar.
2011-05-01 11:05:54 -04:00
Bryan Schumaker 5f10a01bcb Always clear pause_after
Always clearing this ensures that we don't keep pausing after playback
is resumed.
2011-05-01 11:05:54 -04:00
Bryan Schumaker fc6397dc43 Added Ocarina 4.3 Screenshots 2010-12-30 12:38:43 -05:00
Bryan Schumaker 6201f707cb Mark __dev__ as False
4.3 is almost done!
2010-12-30 11:26:20 -05:00
Bryan Schumaker f6b20e345a Use slash key to grab filter focus
This may be more natural to people familiar with vim.
2010-12-29 13:29:27 -05:00
Bryan Schumaker c17126553f web seeking
This patch adds the ability to seek forwards or backwards in a song
through the web controls.
2010-12-27 22:07:24 -05:00
Bryan Schumaker 2eb16793ca Clean up controls.html
This makes everything easier to read
2010-12-27 22:06:25 -05:00
Bryan Schumaker 6fc6bb60f6 Set play button status correctly when stopped
The stop function needs to return True if it is successful.
2010-12-27 19:09:07 -05:00
Bryan Schumaker ef5be29197 web: better controls
I split out the web controls to a new file, and can set the status of
the play button correctly when the page is loaded.  Finally, the
set_play_button() function is called on a timer so changes on the
application will be reflected on the web page eventually.
2010-12-27 19:00:27 -05:00
Bryan Schumaker 6fd7ea77a2 web: remove return value from send_request 2010-12-27 13:02:07 -05:00
Bryan Schumaker 3c2f4ac147 web: rename do_request to send_request 2010-12-27 13:01:48 -05:00
Bryan Schumaker f90c387652 web: controls use external utils.js
Using external javascript makes things easier to read and work with.
2010-12-27 13:01:00 -05:00
Bryan Schumaker 7455b408e6 web: set_attr_once()
The set_attr_once() function is the same as set_attr(), only it will
only set the value once.  Attributes like "version" should use this,
since the ocarina version shouldn't change often.
2010-12-27 12:49:19 -05:00