Commit Graph

9914 Commits

Author SHA1 Message Date
Slava Zanko 054c5d6f44 x86_64: Cleanup of code for master
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 10:58:49 +02:00
Slava Zanko bff2f7303b Cleanup: avoid warnings for mc-library on x86_64
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 10:58:49 +02:00
Andrew Borodin 080d8e3be5 Avoid double check some panel values before call of select_item().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-26 10:58:49 +02:00
Slava Zanko 1b75ea27b6 Cleanup of code for master
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 10:58:49 +02:00
Slava Zanko 45c1704b9e Ticket #2055: Cleanup before 4.7.1 and 4.7.0.3 releases
Added description of 'menuinactive' colorpair into docs

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 10:58:48 +02:00
Kang Bundo e664d7549f l10n: Updates to Korean (ko) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-26 01:43:33 +00:00
Ilia Maslakov 24af414bcb Merge branch '1986_confirm_replace_fix'
* 1986_confirm_replace_fix:
  Ticket #1986 (not converted text in confirm dialog)
2010-02-25 20:05:25 +03:00
Ilia Maslakov cf16304bf6 Ticket #1986 (not converted text in confirm dialog)
fixed encoding of text in 'Confirm replace' dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-25 19:55:59 +03:00
Slava Zanko f1790672dc Merge branch '172_indent'
* 172_indent:
  Ticket #172: Use 'indent' utility
2010-02-25 16:12:56 +02:00
Andrew Borodin ff7e5d92ab Merge branch '2058_vfs_memleaks'
* 2058_vfs_memleaks:
  Ticket #2058: fixed memory leaks in _vfs_get_cwd() function.
2010-02-25 16:36:50 +00:00
Slava Zanko 133d46dcc7 Ticket #172: Use 'indent' utility
Proposed options to indent:
 * --gnu-style
 * --format-first-column-comments
 * --indent-level4
 * --brace-indent0
 * --line-length100
 * --no-tabs
 * --blank-lines-after-procedures

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-25 16:11:11 +02:00
Andrew Borodin 2cf080d18f Ticket #2058: fixed memory leaks in _vfs_get_cwd() function.
Thanks Vit Rosin to found memory leak in _vfs_memleak() function.
This function was rewritten to fix two memory leaks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 21:44:07 +03:00
Andrew Borodin ea700be2a1 Merge branch '2037_source_tree_changes'
* 2037_source_tree_changes:
  doc/HACKING: some obsoleted info was removed.
  News about version 4.6.2 and older were moved to doc/NEWS.OLD file.
  Ticket #2037: minor changes in source tree.
2010-02-24 16:36:24 +00:00
Andrew Borodin 54d625d06c doc/HACKING: some obsoleted info was removed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:36:05 +00:00
Andrew Borodin 997a6c3a84 News about version 4.6.2 and older were moved to doc/NEWS.OLD file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:36:05 +00:00
Andrew Borodin 14b61d876c Ticket #2037: minor changes in source tree.
mc.charsets was moved from contrib/ to misc/.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:36:05 +00:00
Piotr Drąg af5dce4ac7 l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 13:32:20 +00:00
Andrew Borodin eb4d447e69 Merge branch '1992_mc_startup'
* 1992_mc_startup:
  Fixed variable declarations and added missing includes.
  Ticket #1992: incorrect sturtup of MC with some special paths.
2010-02-24 16:23:25 +00:00
Andrew Borodin a78115ad8e Fixed variable declarations and added missing includes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:22:43 +00:00
Andrew Borodin 45073c35e7 Ticket #1992: incorrect sturtup of MC with some special paths.
Problem description:
  1. Run mc as
     mc /#ftp:user@server
  2. If FTP server asks password, MC shows the password dialog window.
  3. If type the first symbol in input line, MC crashes.

Bug cause:
  MC asks ftp password before initialize of input line keybindings.

Solution:
  Reimplemented MC startup sequence.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 16:22:43 +00:00
Slava Zanko 08cabe95f5 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 13:17:27 +00:00
Piotr Drąg 05ede5366e l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 12:57:58 +00:00
Slava Zanko 2282ec13d8 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-24 11:42:26 +00:00
Slava Zanko 8a7bca06e9 Refresh po-files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-24 13:17:00 +02:00
Andrew Borodin be1722e11a Merge branch '1972_ncurses_monochrom'
* 1972_ncurses_monochrom:
  Ticket #1972: fixed broken monochrom support in NCurses-based MC.
2010-02-24 13:55:01 +00:00
Andrew Borodin 9b36242128 Ticket #1972: fixed broken monochrom support in NCurses-based MC.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 13:54:32 +00:00
Andrew Borodin 26e167d249 Merge branch '2053_vfs_memleak'
* 2053_vfs_memleak:
  Ticket #2053: fixed memory leak in mc_symlink() function.
2010-02-24 12:08:20 +00:00
Vit Rosin 3770047407 Ticket #2053: fixed memory leak in mc_symlink() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 12:08:01 +00:00
Slava Zanko e2b2ea2bfa Merge branch '1443_one_dir_copy_progress'
* 1443_one_dir_copy_progress:
  Change param name from 'Layout.progressbar_always_left2right' to 'Layout.classic_progressbar'
  Change progressbar dialog.
  Added ability to show progressbars (when copy files) from right to left.
  Added indication of total BPS and ETA for file operations.
  Widget library: added new widget WHLine.
  Show Count progress bar before copy/move of 1st file,Z not after.
  copy_file_file(): create file copy buffer in stack instead of heap.
  Type accuracy in file operation routines.
  Reimplemented some gotos in panel_operate().
  Ticket #1443: show average copying velocity/ETA for whole operation.
2010-02-24 10:41:27 +02:00
Slava Zanko 02ae5b904e Change param name from 'Layout.progressbar_always_left2right' to 'Layout.classic_progressbar'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-24 10:40:40 +02:00
Slava Zanko e1d1e9254d Change progressbar dialog.
* Minimizing dialog;
 * Optimizations of Copy/move progress dialog creation;
 * Added enum for specify dialog type (for copy/move or for delete)
 * Little optimization.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-24 10:40:11 +02:00
Slava Zanko 88a374a432 Added ability to show progressbars (when copy files) from right to left.
For activate this, need to add into ini-file:

[Layout]
progressbar_always_left2right=0

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-24 10:37:43 +02:00
Slava Zanko 804ca8e7b0 Added indication of total BPS and ETA for file operations.
* Optimized functions calls (changed return type of all file_progress_show*() functions)
 * Reworked for use global structure FileOpTotalContext
 * Moved declarations of file_progress_show*() functions from fileopctx.h to filegui.h
 * Code for calculate progressbar's variables was moved into function copy_file_file_display_progress()
 * Progressbar for little files now shows always 100% (for visible effect)
 * Added i18n string '< 1 sec'
 * Rework of progress copy dialog

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:43 +02:00
Slava Zanko c40c5014b9 Widget library: added new widget WHLine.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin 334560adac Show Count progress bar before copy/move of 1st file,Z not after.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin 47abf9282f copy_file_file(): create file copy buffer in stack instead of heap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin 159f5fdff1 Type accuracy in file operation routines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin a18c13d0c9 Reimplemented some gotos in panel_operate().
Also some type accuracy and minor optimization were made.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin f5beb5b2c6 Ticket #1443: show average copying velocity/ETA for whole operation.
Problem description:
  Let's consider large directory (~4GB) with relatively small files:
  each 1-2MB.
  When I try to copy whole directory I would like to see average
  copying velocity (and ETA) not only per-file (I just don't see
  stats for small files), but for the whole progress.

This commit fixes the issue. Thanks Sergey <sergemp at mail dot ru>
for the initial patch.

Additionally, the minor type accuracy was provided.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-24 10:37:42 +02:00
Andrew Borodin 48b71733b0 Merge branch '1999_inactive_menu_colors'
* 1999_inactive_menu_colors:
  Ticket #1999: changed color of inactive visible main menu.
2010-02-23 19:02:21 +03:00
Andrew Borodin 492ccbe0ee Ticket #1999: changed color of inactive visible main menu.
Added 'menuinactive' skin item to draw incative visible
main menu.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-23 19:01:56 +03:00
Andrew Borodin 7e0302cd3a Merge branch '2028_hex_search_memleak'
* 2028_hex_search_memleak:
  Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function.
2010-02-23 14:36:15 +03:00
Andrew Borodin 4451e07fab Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function.
Thanks Vit Rosin for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-23 14:35:43 +03:00
Emmanuel Trillaud b22dd97f7c l10n: Updates to French (fr) translation
Transmitted-via: Transifex (www.transifex.net)
2010-02-22 22:53:24 +00:00
Andrew Borodin 476ede51b9 Merge branch '1572_editor_retain_search_options'
* 1572_editor_retain_search_options:
  Retain search options in viewer across viewing session.
  Ticket #1572: retain search/replace options in editor.
2010-02-22 14:59:59 +03:00
Andrew Borodin 2eec76f8c5 Retain search options in viewer across viewing session.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 14:59:47 +03:00
Andrew Borodin 63aa191e7a Ticket #1572: retain search/replace options in editor.
Retain search/replace options in editor across editing session.
Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 14:59:46 +03:00
Andrew Borodin ddf67d8601 Merge branch '1940_verbose_switch_off'
* 1940_verbose_switch_off:
  Ticket #1940: verbose option cannot be switched off.
2010-02-22 12:31:05 +03:00
Andrew Borodin 08b708c5bb Ticket #1940: verbose option cannot be switched off.
How to reproduce:
  1) run mc
  2) press F9
  3) select 'Options' -> 'Configuration...'
  4) switch off '[ ] Verbose operation' option
  5) select '[ Save ]' button and press Enter
  6) in additional, select 'F9' -> 'Options' -> 'Save setup'
  7) exit from mc
  8) run mc again
  9) select 'F9' -> 'Options' -> 'Configuration...'

'Verbose operation' option always switched on.

This commit fixes this behaviour. But in slow terminals,
the value read form ini is forced set to 0.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 12:25:08 +03:00
Slava Zanko a73bfffe40 Merge branch '1994_sort_files_by_version'
* 1994_sort_files_by_version:
  Use system function strverscmp() if exists.
  Height of 'Sort order' dialog window now calculated automatically
  Ticket #1994: Sort files by version (like strverscmp(3) does)
2010-02-22 11:09:59 +02:00