Commit Graph

91 Commits

Author SHA1 Message Date
Andrzej Rybczak
21947d3655 status: optimize filtering when chars are being taken from input queue 2012-09-05 22:45:13 +02:00
Andrzej Rybczak
226fbdd2c9 fix shadowing warnings 2012-09-03 15:43:59 +02:00
Andrzej Rybczak
af2cdca3d0 change naming conventions in NC namespace 2012-09-03 15:34:07 +02:00
Andrzej Rybczak
0cfe5d8f01 strbuffer: reorder headers 2012-09-02 15:53:07 +02:00
Andrzej Rybczak
b1ff896cb6 get rid of HAVE_CONFIG_H directives 2012-09-02 15:50:02 +02:00
Andrzej Rybczak
337a27c366 window: adjust indentation 2012-09-02 15:48:11 +02:00
Andrzej Rybczak
d47cad1d50 get rid of 'using namespace NCurses' directive 2012-09-02 15:37:42 +02:00
Andrzej Rybczak
4c944085d6 menu: generalize filtering, introduce interfaces 2012-08-31 23:09:56 +02:00
Andrzej Rybczak
0447b4e881 window: remove GetXY 2012-08-30 06:21:21 +02:00
Andrzej Rybczak
b06e620913 more cleanup and grouping functions logically together 2012-08-29 14:35:11 +02:00
Andrzej Rybczak
a270fc8402 rewrite MPD::Song object 2012-08-28 00:09:39 +02:00
Andrzej Rybczak
9e071b074c display: rewrite Display::Columns and Display::SongsInColumns 2012-08-26 21:35:48 +02:00
Andrzej Rybczak
f6cae753e2 implement input character queue and add PushCharacters macro utility 2012-08-25 06:50:27 +02:00
Andrzej Rybczak
6829a8e05c add support for binding actions to multibyte characters 2012-08-25 01:32:12 +02:00
Andrzej Rybczak
fbd4a0484e fix a few issues with win32 build 2012-08-16 07:48:20 +02:00
Andrzej Rybczak
181224b837 keybinding system rewrite 2012-08-14 01:44:14 +02:00
Andrzej Rybczak
7b8a286c49 window: interpret ctrl-h as backspace 2012-07-16 01:38:19 +02:00
Andrzej Rybczak
f8151904f5 update copyright dates 2012-03-17 16:46:55 +01:00
Andrzej Rybczak
ca956c3da3 update copyright dates 2011-11-01 13:43:47 +01:00
Andrzej Rybczak
087245ecda window: make new BUTTON2_PRESSED definition more clear 2010-07-31 19:22:49 +02:00
Andrzej Rybczak
08daa61907 update copyright notices 2010-01-30 16:24:24 +01:00
Andrzej Rybczak
3365b066c3 window: store strings history in list instead of deque 2009-11-13 18:28:13 +01:00
Andrzej Rybczak
495ec25a0a simplify Clear() in Window and its derivatives
it removes argument responsible for immediate refreshing.
since after all calls that were refreshing screen there was
call to Refresh() anyway, this switch doesn't make much sense.
2009-11-13 15:59:18 +01:00
Andrzej Rybczak
dd866e9337 fix visualizer 2009-10-25 23:24:12 +01:00
Andrzej Rybczak
dd04406ee5 poll both stdin and mpd using one select()
this allows for immediate reading mpd events
2009-10-25 20:44:07 +01:00
Andrzej Rybczak
70910b77ed make ncmpcpp compile with -fno-exceptions 2009-09-21 06:01:21 +02:00
Andrzej Rybczak
14a774b8a3 window: move some members from protected to private section 2009-09-21 01:44:38 +02:00
Andrzej Rybczak
1a3dcbfe17 set attributes in Menu::Refresh() by operators<<()
this also makes Window::{Bold,UnderLine,Reverse,Altcharset} private.
these should only be called by internals of Window class.
2009-09-21 01:34:37 +02:00
Andrzej Rybczak
d995b9f065 define NCURSES_MOUSE_VERSION as 1 (not 2) if pdcurses is used 2009-09-20 21:02:22 +02:00
Andrzej Rybczak
91ffdf9799 redefine BUTTON2_PRESSED if ncurses is used 2009-09-20 19:14:00 +02:00
Andrzej Rybczak
20b0bcc85e define NCURSES_MOUSE_VERSION if pdcurses is used 2009-09-20 18:56:30 +02:00
Andrzej Rybczak
0a2a7290f6 new feature: support for underlined text 2009-09-19 03:35:58 +02:00
Andrzej Rybczak
eee80427fe change prototype of Window::Recreate() and throw away almost-duplicated code 2009-09-17 02:36:40 +00:00
Andrzej Rybczak
fc6d367f75 remove Clone() and EmptyClone() methods from NCurses::Window and derives
these functions served no purpose.
2009-09-16 03:10:53 +00:00
Andrzej Rybczak
21468d9537 document class NCurses::Window and remove some unused code from it 2009-09-16 03:08:31 +00:00
Andrzej Rybczak
56be1cb753 make Window::SetColor protected as it doesn't respect stacked colors
it should only be used internally by Window and derives.
2009-09-06 12:51:48 +02:00
Andrzej Rybczak
c35deb3b94 move override wcwidth with 1 if WIN32 if defined to window.h 2009-09-06 12:00:46 +02:00
Andrzej Rybczak
101f01941d new feature: alternative user interface 2009-08-12 02:08:13 +02:00
Andrzej Rybczak
caec71134e make Window::{Bold,Reverse,AltCharset} protected
they should be called only within member funcions, because they
ignore stacked values, that are set by Window::operator<<(Format)
2009-07-13 16:16:12 +02:00
Andrzej Rybczak
26326de2c8 fix setting format flags in Window::operator<<(Format)
I though static variables are created for each class object,
but apparently they aren't, which makes the previous design
utterly broken. I'm suprised it somehow worked before.
2009-07-12 15:42:30 +02:00
Andrzej Rybczak
113e54c85c Revert "cosider different size of size_t type on 32bits and 64bits arches"
This reverts commit 9faf3acf2f
and applies correct patch (thx for Damien Leone for pointing this)

Conflicts:

	src/ncmpcpp.cpp
2009-07-06 07:43:04 +02:00
Andrzej Rybczak
9faf3acf2f cosider different size of size_t type on 32bits and 64bits arches 2009-07-03 04:34:25 +02:00
Andrzej Rybczak
d965f4e517 new feature: mouse support 2009-05-25 21:46:36 +02:00
Andrzej Rybczak
a0cbd8fc32 new feature: input text history 2009-05-09 21:57:55 +02:00
Andrzej Rybczak
84a9af2ee9 make use of gcc's __attribute__ extension 2009-05-03 15:14:31 +02:00
Andrzej Rybczak
a1376e8a4e pass small structs and POD types to Window::operator<<() by value 2009-04-03 22:33:00 +02:00
Andrzej Rybczak
c4849bf129 redefine KEY_BACKSPACE only if pdcurses is used
this is redundant in ncurses and causes display
bug while pressing backspace in some terminals.
2009-03-27 17:35:50 +01:00
Andrzej Rybczak
c634059834 put macros definition into parenthesis to avoid bugs 2009-03-26 12:27:57 +01:00
Andrzej Rybczak
a6635322a8 improve handling backspace key 2009-03-26 12:26:22 +01:00
Andrzej Rybczak
cbc452fde5 check for Xinitscr in pdcurses and define XCURSES if available 2009-03-26 12:10:04 +01:00