Commit Graph

9078 Commits

Author SHA1 Message Date
Andrew Borodin
bc704787ff Merge branch '1604_cp866'
* 1604_cp866:
  Added IBM866 locale to the list of 8-bit locales.
  Ticket #1604: add support of CP866 locale.
2009-09-21 20:56:23 +04:00
Andrew Borodin
9aceaf6418 Added IBM866 locale to the list of 8-bit locales.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-21 16:43:08 +04:00
Andrew Borodin
4e38a3ead0 Ticket #1604: add support of CP866 locale.
Initial step: fix MC initalization.
Check codeset after initalization of TTY layer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-21 16:34:15 +04:00
Andrew Borodin
6583d74771 Merge branch '1556_find_all_i18n'
* 1556_find_all_i18n:
  Ticket #1556: full i18n support of editor 'Search' dialog.
2009-09-21 13:22:03 +04:00
Andrew Borodin
434ebd3780 Ticket #1556: full i18n support of editor 'Search' dialog.
Dialog width calcualtion is based on each dialog widget width.
Updated russian translation (for 'Find all' button).

Thanks a lot to David Martin.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-21 13:21:39 +04:00
Slava Zanko
b5c2386551 Merge branch '380_skins'
* 380_skins:
  Added new installed files into mc.spec.in
  Added Russian and English docs for skins.
  Add octets into array of lines instread of utf-8 string.
  Reidentation of code and changes for compile with CFLAGS="-pedantic -Wall -Wextra -Werror -Wno-long-long"
  Continue development of skins
  continue develop of skins.
  Add handle '-b' command line option.
  Box lines drawing. Now reading from skins. With ncurses don't work!
  Add hardcoded skins.
  Base support of skins.
2009-09-18 12:07:05 +03:00
Slava Zanko
e7fe016742 Added new installed files into mc.spec.in
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:57:45 +03:00
Slava Zanko
bf55805409 Added Russian and English docs for skins.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:57:35 +03:00
Slava Zanko
f50b7d6d15 Add octets into array of lines instread of utf-8 string.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:57:35 +03:00
Slava Zanko
84f502a2e1 Reidentation of code and changes for compile with CFLAGS="-pedantic -Wall -Wextra -Werror -Wno-long-long"
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:57:35 +03:00
Slava Zanko
bdfc9adf39 Continue development of skins
* Remove highlight of hidden filenames.
 * Fixed colors with ncurses screen library
 * Fix lines drawing with ncurses screen library.
 * Fix drawing of lines in slang with non-utf codepages.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

 * Code cleanup.
 * Code cleanup, refactoring and optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-18 11:56:12 +03:00
Slava Zanko
2216332c0c continue develop of skins.
* Compile with option --with-screen=ncurses
 * Added default init of colors (if color description is null)
 * Renamed some color pairs. All static color pairs now cached.
 * Fix cursor show in panel over selected files in b&w color scheme.
 * Fix editor highlight
 * Handle old-style colors definitions.
 * Fix showing box lines in onebyte codepages.
 * Fix segfault with:
 * mc -C 'menu=blue,white:'
 * Fix reading of color backgrounds from old-style color definition strings.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>

 * Fixed typos.
 * Added ACS_PLUS char and related stuff.
 * Changed order of colors.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

 * Fixed pseudo-graphics drawing for S-Lang library and 8-bit locale.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-18 11:54:20 +03:00
Slava Zanko
f9a7ea4c32 Add handle '-b' command line option.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:45 +03:00
Slava Zanko
da6a25afc7 Box lines drawing. Now reading from skins. With ncurses don't work!
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:44 +03:00
Slava Zanko
d0457bbe9f Add hardcoded skins.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:44 +03:00
Slava Zanko
981fe001d1 Base support of skins.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:49:44 +03:00
Slava Zanko
488266674e Merge branch '1591_disable_charset'
* 1591_disable_charset:
  Ticket #1591: Master don't build with --disable-charset oprion.
2009-09-18 11:41:03 +03:00
Slava Zanko
5c629cafda Ticket #1591: Master don't build with --disable-charset oprion.
* Fixed build on master.
 * Refactoring: avoid compiler warnings.
 * Remove unneeded code from mcviewer.c.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-18 11:40:30 +03:00
Ilia Maslakov
b44191cd02 Merge branch '1403_search_segfault'
* 1403_search_segfault:
  fix: i18n label in the search dialog
  fix: not defined cp_source after autocorrect codeset
2009-09-16 13:46:46 +00:00
Andrew Borodin
e983e9eedc fix: i18n label in the search dialog
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-16 13:45:08 +00:00
Ilia Maslakov
e9a49c83a1 fix: not defined cp_source after autocorrect codeset
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-16 13:45:08 +00:00
Andrew Borodin
1d42004818 Merge branch '276_show_total_size_accurately'
* 276_show_total_size_accurately:
  Ticket #276: display marked files size accurately.
2009-09-16 09:27:51 +04:00
Andrew Borodin
8f5ae1983a Ticket #276: display marked files size accurately.
Centered horizontally. Removed rubbish symbols at the end
of displayed text.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-16 09:27:10 +04:00
Slava Zanko
3e4c7775e5 Merge branch '1540_tarfs_for_xz'
* 1540_tarfs_for_xz:
  Some little bugfixies for xz and lzma archives:
  Ticket #1540: tarfs for xz archives
2009-09-16 02:05:43 +03:00
Slava Zanko
bd95f71a6b Some little bugfixies for xz and lzma archives:
* Increase number of reading butes by one for better analyzation of compression type.
* Add recognize lzma archive by extention.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-16 02:05:06 +03:00
nixtrian
f5d01be72a Ticket #1540: tarfs for xz archives
Since ~beginning of August mc does not enter .tar.xz archives,
it just prints the error message:
"Hmm,... aaa.tar.xz doesn't look like a tar archive."

The version of Jul 28 works with .tar.xz archives.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-16 02:05:06 +03:00
Slava Zanko
6b8d0cdc43 Merge branch '1591_viewer_segfault'
* 1591_viewer_segfault:
  Ticket #1591 (mcview segfault)
2009-09-15 13:03:28 +03:00
Ilia Maslakov
0ce25dce74 Ticket #1591 (mcview segfault)
fix: segfault mcviev in case when the source_codepage is not equal to the display_codepage.
    refactoring: some code optimization.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-15 12:24:33 +03:00
Andrew Borodin
3f5968604b Merge branch '1552_nonstd_button_location'
* 1552_nonstd_button_location:
  Changes for lines length less than 100.
  Fixed button locations in 'Sort order' dialog.
  Refactoring of src/boxes.c.
  Fixed button locations in 'Listing mode' dialog.
  Ticked #1552: fixed non-standard button location in dialogs.
2009-09-15 11:36:37 +04:00
Slava Zanko
f3916f085f Changes for lines length less than 100.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-15 11:36:09 +04:00
Andrew Borodin
41dc87ee1f Fixed button locations in 'Sort order' dialog.
Reimplemented 'Sort order' dialog using QuickDialog engine.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-15 11:36:09 +04:00
Andrew Borodin
6fc9cf7a88 Refactoring of src/boxes.c.
Reduce of file scope variables count.
Other those variables have been renamed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-15 11:36:09 +04:00
Andrew Borodin
a4fad45319 Fixed button locations in 'Listing mode' dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-15 11:36:09 +04:00
Andrew Borodin
dad66d278b Ticked #1552: fixed non-standard button location in dialogs.
First step: refactoring of WButton widget API.
(button_len): renamed to button_get_len and made global.
(button_get_text): const argument.
Removed trailing spaces.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-15 11:36:09 +04:00
Stan. S. Krupoderov
edddd5f5d3 Ticket #1596: hidden file higlighing
remove highlight for hidden, extend templates for higlight by ext

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-14 22:47:13 +04:00
Slava Zanko
32aa4c98c1 Update Spanish translation. Also, refresh all translates for web-statistic
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-14 16:36:19 +03:00
Andrew Borodin
43537b0e00 Merge branch '1564_mouse_wheel_menus_listbox'
* 1564_mouse_wheel_menus_listbox:
  Implemented mouse wheel support for WListbox widget.
  Modified mouse event handling in menu.
  Ignore mouse wheel events for inactive panel.
  Some optimization of mouse handling in editor.
  Call menu using mouse for all panel types.
  Fixed smooth scrolling of split panels.
  Modified mouse initialization.
  Mouse wheel events hack.
  Smooth scrolling in file panel.
  If menu is inactive, ignore mouse wheel events.
  Fixed mouse event boundaries in menus.
  Don't close menu by mouse wheel outside the menu area.
  Ticket #1564: mouse wheel support for menus and listboxes.
2009-09-14 15:12:26 +04:00
Andrew Borodin
1f0b05b182 Implemented mouse wheel support for WListbox widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
ae3a14ae0e Modified mouse event handling in menu.
Fixed event boundaries: menu frame is in event aria now.

Middle click is used to execute selected menu item independently
of mouse cursor position.

Minor optimization.

Indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
64f5497b67 Ignore mouse wheel events for inactive panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
2ae441dde6 Some optimization of mouse handling in editor. 2009-09-14 15:11:59 +04:00
Andrew Borodin
15354fdbb4 Call menu using mouse for all panel types.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
aa601f831b Fixed smooth scrolling of split panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
c6ff13821d Modified mouse initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
62378d71d7 Mouse wheel events hack.
Don't generate 'Button up' event after wheel events.
Need for menu evemnt handling.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
David Martin
a252136766 Smooth scrolling in file panel.
If listing panels is operated with the mouse wheel, when window is
at top or bottom of the list, then selection "jumps" to first/last item.
Now it smoother: keep window and decrease/increase selection in
single steps.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
07f237782b If menu is inactive, ignore mouse wheel events.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
a14574d037 Fixed mouse event boundaries in menus.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
c2f37224c5 Don't close menu by mouse wheel outside the menu area.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin
7c5407e86e Ticket #1564: mouse wheel support for menus and listboxes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00