aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-11-18screen_song: new screen which views song informationMax Kellermann1-0/+8
This new screen views all information available on a song: its location, file name, and tags.
2008-11-18screen: method cmd() returns boolMax Kellermann1-1/+1
Return true/false instead of 1/0.
2008-11-18command: added CMD_LOCATE to locate song in databaseMax Kellermann1-0/+2
Pressing 'l' switches to the file browser (screen_file) and locates the previously selected song in the server's database.
2008-10-06include ncursesw/ncurses.h if availableMax Kellermann1-1/+6
When compiling with libncursesw, include <ncursesw/ncurses.h> instead of <ncurses.h> (if available).
2008-10-03screen: export the global variable "screen"Max Kellermann1-4/+6
screen_t is a singleton. We do not have to pass it around everywhere. Export the one global variable.
2008-10-03screen: don't pass mpdclient pointer to method paint()Max Kellermann1-1/+1
None of the paint() implementations acutally uses the mpdclient pointer. Remove it from the method signature.
2008-10-03screen: removed "painted" flagMax Kellermann1-3/+1
Repaint immediately instead of setting "painted=0".
2008-10-02screen_lyrics: add screen_lyrics_switch()Max Kellermann1-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.
2008-10-02screen: export function screen_switch()Max Kellermann1-0/+3
Provide an API for switching the currently displayed screen. Rename switch_screen_mode() to screen_switch().
2008-10-02screen: no typedefs for methodsMax Kellermann1-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.
2008-10-02screen: include config.h in screen.hMax Kellermann1-0/+1
Since screen.h checks the macros from config.h, we have to include it.
2008-09-25screen: removed screen.modeMax Kellermann1-2/+0
Everything is now managed with a pointer to the screen_functions struct.
2008-09-25screen: replaced get_cur_mode_id() with screen_is_visible()Max Kellermann1-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.
2008-09-25screen: moved code to screen_list.cMax Kellermann1-0/+16
Move the hard-coded screen list and everything which works with this array to screen_list.c.
2008-09-25screen: don't pass screen pointer to method update()Max Kellermann1-1/+1
play_update() is the only update() implementation left, and it does not use the screen pointer. Remove it from the method signature.
2008-09-25screen: don't pass screen pointer to method paint()Max Kellermann1-1/+1
None of the paint() implementations actually use the screen pointer - remove it from the method signature.
2008-09-22screen: unsigned integers for screen dimensionsMax Kellermann1-2/+2
Store screen width and height as unsigned integer.
2008-09-22screen: removed window.cur_action_idMax Kellermann1-1/+0
The variable cur_action_id is not used at all.
2008-09-22screen: last_cmd should be a command_tMax Kellermann1-1/+2
last_cmd stores the previous command sent to the screen. It is not a timestamp, and its type should be command_t.
2008-09-22screen: moved input_timestamp to screen_play.cMax Kellermann1-1/+0
Since the input_timestamp is only used by screen_play, move it there.
2008-09-22screen: moved list_window mouse code to list_window.cMax Kellermann1-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.
2008-09-22screen: moved code to ncu.cMax Kellermann1-3/+0
Moved basic libncurses initialization to ncu.c and ncu.h. Keep generic code out of screen.c.
2008-09-17make several functions return voidMax Kellermann1-2/+2
2008-09-17screen: removed screen_functions.get_lw()Max Kellermann1-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.
2008-09-17replaced get_screen_X() with static screen_functions variableMax Kellermann1-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.
2008-09-16screen: added struct namesMax Kellermann1-22/+24
Let us declare struct names in addition to typedef names, so we can forward-declare them.
2008-09-15include cleanupMax Kellermann1-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.
2008-09-15fix function prototypesMax Kellermann1-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.
2008-09-15const pointersMax Kellermann1-4/+4
Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
2008-09-15code style, indent with tabsMax Kellermann1-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.
2006-08-05translation updates, template and german. another little build fixAndreas Obergrusberger1-0/+1
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4562 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-08-04the updated sourcesAndreas Obergrusberger1-1/+5
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4543 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-13Moved definitions from screen.h to ncmpc.h Kalle Wallin1-5/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1866 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-13Crossfade time can now be definied in the rc file (crossfade-time)Kalle Wallin1-16/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1865 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-03Replaced the time_t type with glibs GTimeKalle Wallin1-4/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1785 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-02Added basic ncurses mouse supportKalle Wallin1-0/+4
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1770 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-14Major cleanup of the mpd client code (mpc->mpdclient)Kalle Wallin1-9/+9
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-09Use the terminal in raw mode - ignore terminal control charactersKalle Wallin1-1/+1
Changed arguments to the get_title callback git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1420 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-06Added an optional clock screen :)Kalle Wallin1-0/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1360 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-06Added wreadln.c, wreadln.h a simple line editorKalle Wallin1-0/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1351 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-06i18n - ncmpc is now bilingual (sv)Kalle Wallin1-7/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1349 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-05Added initial i18n supportKalle Wallin1-6/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-05Changed directory layout (for future use of gettext)Kalle Wallin1-0/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-07Redesigned ncmpc's color supportKalle Wallin1-8/+0
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@937 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-21Fixed resize handling (SIGWINCH).Kalle Wallin1-1/+3
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@871 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-21Added screen_idle() function.Kalle Wallin1-1/+3
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@863 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-19Major cleanup. The goal of this is to simplify addition of "screens".Kalle Wallin1-6/+28
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@832 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-06Added a welcome message (help).Kalle Wallin1-0/+4
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@609 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-05Added input_timeout.Kalle Wallin1-0/+3
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@606 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-29Changed non blocking read timeout from 100ms to 250ms.Kalle Wallin1-1/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@539 09075e82-0dd4-0310-85a5-a0d7c8717e4f