Commit Graph

8868 Commits

Author SHA1 Message Date
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
Slava Zanko
c66f62045d Merge branch '1597_fix_stale_link'
* 1597_fix_stale_link:
  Ticket #1597: panel: restore red hilight for broken symlinks
2009-09-14 12:49:05 +03:00
Slava Zanko
edab903a19 Ticket #1597: panel: restore red hilight for broken symlinks
Fix for restore highlighting of stale links.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-14 12:48:50 +03:00
Andrew Borodin
8c5fdee5c2 Merge branch '1575_quick_radio_i18n'
* 1575_quick_radio_i18n:
  Ticket #1575: applied i18n for radiobuttons in QuickDialog.
2009-09-14 13:26:24 +04:00
Andrew Borodin
83a0670283 Ticket #1575: applied i18n for radiobuttons in QuickDialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 13:25:28 +04:00
Andrew Borodin
3d269733b8 Merge branch '1538_overwrite_target_file_dialog'
* 1538_overwrite_target_file_dialog:
  Modified overwrite query dialog.
  Ticket #1538: redesign of overwrite query dialog.
2009-09-14 12:54:28 +04:00
Andrew Borodin
5159a50992 Modified overwrite query dialog.
Renamed function. Move rd_widgets from file scope to function one.
Fixed i18n stuff.
Updated RU translation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 12:53:16 +04:00
Andrew Borodin
ae313482e6 Ticket #1538: redesign of overwrite query dialog.
Modified main text in overwrite query dialog.
Trancated the target file name less.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 12:53:16 +04:00
Andrew Borodin
cb78d61a27 Merge branch '1583_ctrl_o_under_screen'
* 1583_ctrl_o_under_screen:
  Ticket #1583: fixed Ctrl-O handling under GNU Screen in altscreen mode.
2009-09-14 11:55:00 +04:00
Andrew Borodin
ea73b28b45 Ticket #1583: fixed Ctrl-O handling under GNU Screen in altscreen mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 11:54:30 +04:00
Sergei Trofimovich
5108664ce3 syntax/sh.syntax (part2): trivial: highlight 'unset', 'read', 'export' as keywords
Synced mentioned in 9dda06f489 keywords to other contexts.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-09-11 23:06:21 +03:00