Commit Graph

97 Commits

Author SHA1 Message Date
Andrzej Rybczak
7b8a286c49 window: interpret ctrl-h as backspace 2012-07-16 01:38:19 +02:00
Andrzej Rybczak
f21499ff55 fix compilation with gcc-4.7 (ticket #3478)
thanks for strcat for the patch.
2012-03-30 02:43:32 +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
9adb762036 fix compilation with mingw32 2010-05-14 18:05:14 +02:00
Andrzej Rybczak
68fa910c78 handle invalid characters properly 2010-02-17 12:38:53 +01: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
35d776dfab supress warnings about signedness if pdcurses is used 2009-09-30 23:48:12 +02: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
487b2fc1c9 reimplement Window::hasCoords if pdcurses is used 2009-09-20 16:38:04 +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
84418130fe if Colors struct contains clEnd, remove current color set from stack
previously it just did nothing, which wasn't correct behaviour at all.
2009-09-16 03:28:29 +00:00
Andrzej Rybczak
f734b43229 remove GNUC_UNUSED from Window::Clear() argument
it's not needed since the variable is used.
2009-09-16 03:27:25 +00:00
Andrzej Rybczak
da4457a6e5 update copy contructor of NCurses::Window 2009-09-16 03:27:05 +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
c35deb3b94 move override wcwidth with 1 if WIN32 if defined to window.h 2009-09-06 12:00:46 +02:00
Andrzej Rybczak
b8c9d149b1 do not allocate mem for s in ToString on heap since it has const size 2009-09-06 05:41:41 +02:00
Andrzej Rybczak
bc1a8a2d1a allow for unicode characters in progressbar_look 2009-08-26 18:13:33 +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
df051bf674 remove using declarations 2009-07-05 12:19:22 +02:00
Andrzej Rybczak
9dab25e02c use prefix ++ instead of postfix where available 2009-07-04 06:41:35 +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
ecd4c8cc17 get rid of C style casts 2009-05-21 23:51:56 +02:00
Andrzej Rybczak
c22653fc38 pretend there is no history if input string is encrypted 2009-05-13 00:29:54 +02:00
Andrzej Rybczak
a0cbd8fc32 new feature: input text history 2009-05-09 21:57:55 +02:00
Andrzej Rybczak
f92b0101aa use ctrl+u to clear text from input 2009-05-07 00:41:48 +02:00
Andrzej Rybczak
84a9af2ee9 make use of gcc's __attribute__ extension 2009-05-03 15:14:31 +02:00
Andrzej Rybczak
12fa8a9bf6 count number of applied formatting flags 2009-04-26 12:33:24 +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
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
Andrzej Rybczak
48f3361e2d improve conversions std::string <=> std::wstring 2009-03-26 12:00:11 +01:00
Andrzej Rybczak
65f52da949 make it compile under mingw32 --without-curl --without-taglib
ncmpcpp can be built for windows \o/
pdcurses and regex libraries are needed for this though.
2009-03-25 22:08:18 +01:00
Andrzej Rybczak
1b22f307ea add support for pdcurses 2009-03-25 17:47:10 +01:00
Andrzej Rybczak
bf71a01b1c ignore keycodes <10 || >10 && <32 in Window::GetString() 2009-03-22 15:14:12 +01:00
Andrzej Rybczak
d50dcac5a2 return value, not const reference, if return type is POD or ptr
returning reference to POD types can be in fact slower than returning value.
2009-03-10 22:20:09 +01:00
Andrzej Rybczak
ea973b6b4a put classes related to ncurses into NCurses namespace 2009-03-05 17:43:13 +01:00
Andrzej Rybczak
9eec588be5 refresh pad in Window::GetString() after wmove() to update cursor position 2009-02-19 17:12:59 +01:00
Andrzej Rybczak
164dec3eed unused defines cleaning / a few fixes for clock 2009-02-19 00:59:02 +01:00
Andrzej Rybczak
7246b57d48 simplify syntax a bit 2009-02-19 00:29:27 +01:00
Andrzej Rybczak
735cae628a call Window::Refresh() in Window::Clear() explicitly
call to Window::Clear() from Menu object was calling Menu::Refresh()
instead of Window::Refresh(), so make an explicit call to this method.
2009-02-19 00:20:48 +01:00