Bryan Schumaker
0eff7df5c4
ocarina: Add a progress bar
2011-10-29 17:24:21 -04:00
Bryan Schumaker
c894815dad
ocarina: Add the library list to the ocarina namespace
2011-10-29 15:55:48 -04:00
Bryan Schumaker
0b1684620d
ocarina: Add the chooser to the ocarina namespace
...
This removes some ocarina_*() functions
2011-10-29 15:52:03 -04:00
Bryan Schumaker
7c79aab787
ocarina: Create initial namespace
...
Namespaces make code easier to follow, and remove the need to mangle the
beginning of function names by using ocarina_*() or libsaria_*(). In
other words: "namespaces are one honking good idea. Let's have more of
them!"
2011-10-29 15:47:00 -04:00
Bryan Schumaker
6b12cff613
ocarina: Clean up library.cpp a bit
...
I reordered the functions and removed the unnecessary declaration from
the top of the file.
2011-10-29 15:35:30 -04:00
Bryan Schumaker
c727aaa526
ocarina: Fill a songlist by inheriting from a SourceModel
...
The SourceModel declares an insert() function that is called when
filling the list. I have defined this function in a way that the list
will be filled in through repeated calls to insert()
2011-10-29 15:19:56 -04:00
Bryan Schumaker
e5bd2471b0
ocarina: Rearrange the now playing panel
...
I want controls to be on the same level as the artist / album / title
labels. This will be more compact, and it won't waste a lot of empty
space above the labels and next to the controls.
2011-10-29 04:46:42 -04:00
Bryan Schumaker
fc4f311971
ocarina: Added a "now playing" panel
...
This is just an initial implementation, so it's not very good right now.
It does give all the information, though. That's a plus. I also set
the artist / album / playlist whenever a SONG_LOADED callback is given.
2011-10-28 17:22:51 -04:00
Bryan Schumaker
9d22d6b278
ocarina: Split footer into multiple files
...
This should help keep things organized
2011-10-28 17:06:18 -04:00
Bryan Schumaker
66a3ca63e6
ocarina: Add a separator to the footer
...
I think the separator looks better, and helps to show where the songlist
ends and the footer begins.
2011-10-28 14:27:05 -04:00
Bryan Schumaker
1fee8e50b3
ocarina: Move some songlist functions to a new file
...
This splits out more functions, and makes the songlist more maintainable
overall.
2011-10-28 13:59:53 -04:00
Bryan Schumaker
6c5412a3d5
ocarina: Move songlist init code into a new file
...
Doing it all in one function was messy and hard to follow. I've broken
it into several smaller functions, so now I know what is going on.
2011-10-27 17:17:46 -04:00
Bryan Schumaker
236cf0fee5
ocarina: Move songlist.h
...
It really should go into the include directory. I don't want to use
relative paths to include header files in a subdirectory... I don't know
why I even did it in the first place!
2011-10-27 16:39:27 -04:00
Bryan Schumaker
ab9b76a0b4
ocarina: Switch to new idle::run_task() function
...
Part of my rewrite involved moving the run_task() function to a new
namespace. Ocarina now uses the new function.
2011-10-27 15:18:05 -04:00
Bryan Schumaker
7dce8ffedc
ocarina: Switch to new audio functions
...
These functions have been moved to a new namespace, so the front end
needs to be updated.
2011-10-27 14:31:35 -04:00
Bryan Schumaker
0425df6d63
ocarina: Rename tiny.cpp
...
I am no longer going to use the tiny / full footer scheme that I used in
Ocarina 4.x, so this file is better described as footer.cpp
2011-10-27 12:13:22 -04:00
Bryan Schumaker
d3c9301628
ocarina: Access footer through get_footer() and put_footer()
...
I combined reference counting with the get_footer() function to make
using it easier (no manual reference counting). put_footer() will
deallocate the widget if the reference count is 0 (this is already done
by the g_object_unref() function) so it should work in a sane way.
2011-10-27 12:08:21 -04:00
Bryan Schumaker
007a2e820d
ocarina: Remove unused #include
...
The footer is no longer used in ocarina.cpp
2011-10-22 08:57:22 -04:00
Bryan Schumaker
155e436259
ocarina: Set window title and icon during init()
...
I was setting these through other function calls, but it's easier (and
cleaner) to do it all in the initial init() call.
2011-10-22 08:55:32 -04:00
Bryan Schumaker
c3fd002e92
ocarina: Remove unnecessary widgets
...
I can now add the body tabs directly to the window, rather than packing
them in a box with other things.
2011-10-22 08:53:32 -04:00
Bryan Schumaker
bc6068cbda
ocarina: Move controls to the right of the window
...
They have been on the left for a while, but I like them better on the
right.
2011-10-21 17:55:27 -04:00
Bryan Schumaker
882f917c8f
ocarina: Add a reference to the footer before moving
...
Calling the remove() function will destroy the footer if it has no other
references. To prevent this, I need to call g_object_ref() add a
reference to the widget.
2011-10-21 14:51:22 -04:00
Bryan Schumaker
6467356cf6
ocarina: Cleanup path info buttons
...
I was using variables that I really didn't need to use...
2011-10-20 20:33:21 -04:00
Bryan Schumaker
3ff17e907c
ocarina: Update library path button
...
One click and the single library path will be updated
2011-10-20 20:31:35 -04:00
Bryan Schumaker
b84a19cd77
ocarina: Created a "remove path" button
...
Clicking this button removes a path from the library
2011-10-20 20:19:51 -04:00
Bryan Schumaker
2c12cb80aa
ocarina: Move tab page content into a table
...
This should make it easier to add or remove headers and footers so that
I can share one widget between all pages.
2011-10-20 19:33:05 -04:00
Bryan Schumaker
83719838aa
ocarina: Refresh path list when library is updated
...
I respond to the LIBRARY_REFRESH callback by creating new path panels to
show the updated information.
2011-10-20 18:46:54 -04:00
Bryan Schumaker
61153a0580
ocarina: Added update library button
...
This button will call the new library::update() function
2011-10-20 13:24:11 -04:00
Bryan Schumaker
60dc610195
ocarina: Display library paths
...
Right now I simply create a list during startup. I still need to clear
this list and refill it whenever the library is updated.
2011-10-20 13:24:11 -04:00
Bryan Schumaker
e8341288b3
ocarina: Songlist improvements
...
- Function pointers for specific tasks
- Change label text
- Use libsaria namespaces
2011-10-19 10:00:01 -04:00
Bryan Schumaker
1b18069b77
ocarina: remove unnecessary add_callback() function
...
It only called the register_callback() function, so there is no point in
keeping it around.
2011-10-02 11:07:36 -04:00
Bryan Schumaker
1996b54065
ocarina: Update to new libsaria namespace
...
The old functions are no longer defined, so this patch updates to the
new functions.
2011-10-01 13:27:43 -04:00
Bryan Schumaker
165a359655
ocarina: Fill library on startup
...
Once the library has been loaded we can display it to users.
2011-10-01 12:52:05 -04:00
Bryan Schumaker
250964a351
ocarina: Freeze and thaw during a clear
...
This should speed up clearing the list, too.
2011-09-21 08:21:45 -04:00
Bryan Schumaker
ce2f9f02f8
ocarina: Freeze and thaw the liststore while filling
...
This causes fewer refreshes of the liststore and speeds up filling it
in.
2011-09-21 08:12:56 -04:00
Bryan Schumaker
284176fb5c
ocarina: Play a song when a row is double-clicked
...
This is a natural way for the user to play a specific song.
2011-09-20 08:35:24 -04:00
Bryan Schumaker
309cda851f
ocarina: Insert songs in the songlist
...
I created an insert() function that will fill in the list and display
all the songs.
2011-09-19 19:48:37 -04:00
Bryan Schumaker
7bf6f48488
ocarina: Display treeview columns
...
Columns are displayed with the names of attributes that will be listed.
2011-09-18 19:19:20 -04:00
Bryan Schumaker
1c944d3156
ocarina: Get list of library tracks
...
This will be used to fill in a gtk listview sometime soon
2011-09-18 18:07:59 -04:00
Bryan Schumaker
884a0331e2
ocarina: Listen for correct callback
2011-09-18 18:07:40 -04:00
Bryan Schumaker
170e700746
ocarina: Listen for LIBRARY_REFRESH callback
...
I eventually want to add songs to the songlist, but for now it is enough
to wait for this callback.
2011-09-18 17:27:12 -04:00
Bryan Schumaker
3a5a41f53f
ocarina: Added bare songlist and a library tab
...
Eventually the songlist class will list all songs in the library. For
now, I just create an empty window and add it to the main tabs.
2011-09-18 14:43:46 -04:00
Bryan Schumaker
65c04585a3
ocarina: Print out the correct version
...
I should print out the value returned by vers_str(), rather than
hardcoding in "5.0"
2011-09-17 13:51:45 -04:00
Bryan Schumaker
0f38005bdb
ocarina: Use new print functions
...
This mostly involved switching each print() to a println()
2011-09-17 13:50:37 -04:00
Bryan Schumaker
dfdb38be27
ocarina: Don't always run the idle task
...
I register the idle task when there are events in the idle queue and I
remove the idle task once those events have been processed. This should
cut down on CPU usage when nothing is happening.
2011-09-13 17:35:21 -04:00
Bryan Schumaker
6cd4cbdba8
ocarina: Call the add_library() function
...
This function will add a new path to the library map and then scan it,
adding music files to the library.
2011-09-12 14:18:30 -04:00
Bryan Schumaker
c0a80623f5
libsaria: Created new idle.h
...
This exposes the libsaria_idle_task() function to the UI.
2011-09-12 11:31:58 -04:00
Bryan Schumaker
d3b8020bbe
libsaria: Remove libsaria class
...
I replaced the class functions with simple functions that exist in
multiple files. I think things will be easier to work with now.
2011-09-12 11:08:56 -04:00
Bryan Schumaker
33fe24fc64
Remove callbacks from libsaria class
...
These can easily exist as its own set of functions, and I want to remove
the libsaria class in the future.
2011-09-10 13:46:09 -04:00
Bryan Schumaker
a660d5a34a
ocarina: Register an idle function
...
This function will call the libsaria_idle_task() function to process the
next idle task.
2011-09-10 11:22:57 -04:00