aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* added missing copyright headersMax Kellermann2008-12-061-0/+19
|
* screen_outputs: new screen to control MPD's output devicesMikael Svantesson2008-12-051-0/+4
| | | | | The "outputs" screen allows the user to enable or disable MPD's audio output devices.
* screen_song: new screen which views song informationMax Kellermann2008-11-181-0/+8
| | | | | This new screen views all information available on a song: its location, file name, and tags.
* screen: method cmd() returns boolMax Kellermann2008-11-181-1/+1
| | | | Return true/false instead of 1/0.
* command: added CMD_LOCATE to locate song in databaseMax Kellermann2008-11-181-0/+2
| | | | | Pressing 'l' switches to the file browser (screen_file) and locates the previously selected song in the server's database.
* include ncursesw/ncurses.h if availableMax Kellermann2008-10-061-1/+6
| | | | | When compiling with libncursesw, include <ncursesw/ncurses.h> instead of <ncurses.h> (if available).
* screen: export the global variable "screen"Max Kellermann2008-10-031-4/+6
| | | | | screen_t is a singleton. We do not have to pass it around everywhere. Export the one global variable.
* screen: don't pass mpdclient pointer to method paint()Max Kellermann2008-10-031-1/+1
| | | | | None of the paint() implementations acutally uses the mpdclient pointer. Remove it from the method signature.
* screen: removed "painted" flagMax Kellermann2008-10-031-3/+1
| | | | Repaint immediately instead of setting "painted=0".
* screen_lyrics: add screen_lyrics_switch()Max Kellermann2008-10-021-0/+6
| | | | | | screen_lyrics_switch() opens the lyrics screen and displays the lyrics of the specified song. This way, the user may view the lyrics of any song in the database browser.
* screen: export function screen_switch()Max Kellermann2008-10-021-0/+3
| | | | | Provide an API for switching the currently displayed screen. Rename switch_screen_mode() to screen_switch().
* screen: no typedefs for methodsMax Kellermann2008-10-021-20/+9
| | | | | Since the method types are used only once, we do not need typedefs for that. Declare the method types within struct screen_functions.
* screen: include config.h in screen.hMax Kellermann2008-10-021-0/+1
| | | | Since screen.h checks the macros from config.h, we have to include it.
* screen: removed screen.modeMax Kellermann2008-09-251-2/+0
| | | | | Everything is now managed with a pointer to the screen_functions struct.
* screen: replaced get_cur_mode_id() with screen_is_visible()Max Kellermann2008-09-251-1/+2
| | | | | | Screen code shouldn't know anything about the screen ids (which will be eliminated completely later). Instead of comparing ids, compare the screen_functions pointer.
* screen: moved code to screen_list.cMax Kellermann2008-09-251-0/+16
| | | | | Move the hard-coded screen list and everything which works with this array to screen_list.c.
* screen: don't pass screen pointer to method update()Max Kellermann2008-09-251-1/+1
| | | | | play_update() is the only update() implementation left, and it does not use the screen pointer. Remove it from the method signature.
* screen: don't pass screen pointer to method paint()Max Kellermann2008-09-251-1/+1
| | | | | None of the paint() implementations actually use the screen pointer - remove it from the method signature.
* screen: unsigned integers for screen dimensionsMax Kellermann2008-09-221-2/+2
| | | | Store screen width and height as unsigned integer.
* screen: removed window.cur_action_idMax Kellermann2008-09-221-1/+0
| | | | The variable cur_action_id is not used at all.
* screen: last_cmd should be a command_tMax Kellermann2008-09-221-1/+2
| | | | | last_cmd stores the previous command sent to the screen. It is not a timestamp, and its type should be command_t.
* screen: moved input_timestamp to screen_play.cMax Kellermann2008-09-221-1/+0
| | | | Since the input_timestamp is only used by screen_play, move it there.
* screen: moved list_window mouse code to list_window.cMax Kellermann2008-09-221-5/+1
| | | | | | Move the portion of screen_get_mouse_event() which handles list_window clicks to list_window.c. The code contained a NULL pointer dereference, which is now fixed.
* screen: moved code to ncu.cMax Kellermann2008-09-221-3/+0
| | | | | Moved basic libncurses initialization to ncu.c and ncu.h. Keep generic code out of screen.c.
* make several functions return voidMax Kellermann2008-09-171-2/+2
|
* screen: removed screen_functions.get_lw()Max Kellermann2008-09-171-2/+0
| | | | | | If it is really important to set the curser, we should think of a better way, instead of exporting one non-generic method. For now, just set the cursor to the origin.
* replaced get_screen_X() with static screen_functions variableMax Kellermann2008-09-171-21/+0
| | | | | | Compile time initialization saves resources, compared to run-time initialization. Declare all screen_function structs as global variables, and remove all get functions.
* screen: added struct namesMax Kellermann2008-09-161-22/+24
| | | | | Let us declare struct names in addition to typedef names, so we can forward-declare them.
* include cleanupMax Kellermann2008-09-151-1/+5
| | | | | | A header should include all headers which he needs. Move local includes on top, and let foo.c include foo.h in the first line, to automatically test its dependencies.
* fix function prototypesMax Kellermann2008-09-151-1/+24
| | | | | | Add missing prototypes, and fix wrong prototypes. Convert lots of functions to "static" when they are only used within the current source file.
* const pointersMax Kellermann2008-09-151-4/+4
| | | | | Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
* code style, indent with tabsMax Kellermann2008-09-151-49/+43
| | | | | | | Follow the same code style als MPD itself. This patch only fixes parts of the code which are going to be touched in the following bunch of patches, i.e. there will be more "code style" patches in the future.
* translation updates, template and german. another little build fixAndreas Obergrusberger2006-08-051-0/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4562 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* the updated sourcesAndreas Obergrusberger2006-08-041-1/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4543 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Moved definitions from screen.h to ncmpc.h Kalle Wallin2004-07-131-5/+0
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1866 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Crossfade time can now be definied in the rc file (crossfade-time)Kalle Wallin2004-07-131-16/+2
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1865 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Replaced the time_t type with glibs GTimeKalle Wallin2004-07-031-4/+5
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1785 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added basic ncurses mouse supportKalle Wallin2004-07-021-0/+4
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1770 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Major cleanup of the mpd client code (mpc->mpdclient)Kalle Wallin2004-06-141-9/+9
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Use the terminal in raw mode - ignore terminal control charactersKalle Wallin2004-06-091-1/+1
| | | | | | | Changed arguments to the get_title callback git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1420 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added an optional clock screen :)Kalle Wallin2004-06-061-0/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1360 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added wreadln.c, wreadln.h a simple line editorKalle Wallin2004-06-061-0/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1351 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* i18n - ncmpc is now bilingual (sv)Kalle Wallin2004-06-061-7/+0
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1349 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added initial i18n supportKalle Wallin2004-06-051-6/+0
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Changed directory layout (for future use of gettext)Kalle Wallin2004-06-051-0/+113
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f