Commit Graph

8764 Commits

Author SHA1 Message Date
Patrick Winnertz 956f36a534 Merge branch '1533_german_date_broken'
* 1533_german_date_broken:
  Removed three unneeded variables
  Ticket #1533: Fix the date issue on german locale. Use a #define
2009-08-15 08:54:49 +02:00
Patrick Winnertz 1baf186c16 Removed three unneeded variables
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-14 19:18:08 +02:00
Patrick Winnertz 21069fb83d Ticket #1533: Fix the date issue on german locale. Use a #define
for consistent translation of the date through whole util.c

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-14 19:03:51 +02:00
Andrew Borodin 896045613b Merge branch '38_maxpathlen'
* 38_maxpathlen:
  Ticket #38: use MC_MAXPATHLEN insterd of MAXPATHLEN.
2009-08-14 12:07:51 +04:00
IMDagger a57ff08d12 Ticket #38: use MC_MAXPATHLEN insterd of MAXPATHLEN.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-14 09:40:45 +04:00
Andrew Borodin a00da670ee Merge branch '38_info_panel_return_to_wrong_dir'
* 38_info_panel_return_to_wrong_dir:
  Ticket 38: return from Info panel to wrong directory.
2009-08-13 17:01:29 +04:00
IMDagger c17ebc96ac Ticket 38: return from Info panel to wrong directory.
When viewing two file lists, if user presses C-x i for info on
a panel's directory or file, the info pops up correctly in the
other panel. However, when the user closes the info screen, the
directory of the current panel is shown -- NOT the directory
which was being viewed before the info panel appeared.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-13 17:00:58 +04:00
Slava Zanko 8b68cce757 Merge branch '186_prompt_fixups'
* 186_prompt_fixups:
  Ticket #186: prompt fixups
2009-08-13 15:38:20 +03:00
Slava Zanko 1a3e71c03c Ticket #186: prompt fixups
TestCase:
 * Have a mc running where you have two different directories in each panel.
 * Tab, so that you are in the other panel.
 * Ctrl-O to go to subshell.
 * You see two different prompts printed next to each other.

Fix issue:
In function src/main.c:do_update_prompt(): added '\r\n' before show prompt.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-13 10:01:44 +03:00
Slava Zanko a01eca0eee Merge branch '121_support_IPv6'
* 121_support_IPv6:
  Ticket #121 (support IPv6).
2009-08-13 00:33:06 +03:00
Jindrich Novy b1b3be843c Ticket #121 (support IPv6).
Implemented support of IPv6 protocol in FTP connections.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-13 00:32:26 +03:00
Ilia Maslakov 9e0316c777 Ticket #1474 (fix slang include)
fix: typo in #include <slang.h> section
2009-08-12 19:32:50 +00:00
Andrew Borodin e1cbec7be9 Ticket #1474: merge HACK_tty branch to master one.
Merge branch 'HACK_tty'

* HACK_tty: (76 commits)
  TTY: use tty_print_string() instead of printw().
  Added check for version of S-Lang. Minimal version is 2.0
  Modified the hintbar draw update.
  Fixed dialog colors definition, setup and handling.
  Revert "src/help.c: minor refactoring."
  TTY: removed slang1 related code.
  src/help.c: minor refactoring.
  src/main.c: minor refactoring
  TTY: moved SIGWINCH setup function to TTY layer.
  Panel: fixed width of second column in brief listing mode.
  Moved do_possible_cd() function from main.c to execute.c.
  Screen: moved maybe_cd() function from main.c to screen.c.
  Fix after rebase.
  VFS: removed unnedeed includes of tty/tty.h header.
  Moved panel update functions from main.c to screen.c.
  TTY: moved alternate_plus_minus variable to TTY layer.
  WListbox: some draw modifications.
  WListbox: removed widget sizes duplication.
  Listbox window: without button, listbox only.
  Listbox window: apply main menu colors to the user menu.
  ...
2009-08-12 21:27:26 +04:00
Andrew Borodin c5490f8a13 TTY: use tty_print_string() instead of printw().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:26:02 +04:00
Slava Zanko 5b0218337f Added check for version of S-Lang. Minimal version is 2.0
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 21:23:55 +04:00
Andrew Borodin e7ac83b48a Modified the hintbar draw update.
Since midnight_dlg can be invisible during screen resize,
don't update the hintbar in SIGWING signal handling function.
Now the hintbar is updated during DLG_DRAW message handling
in mignight_dlg callback.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 5feea4aead Fixed dialog colors definition, setup and handling.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 791404055b Revert "src/help.c: minor refactoring."
This reverts commit f070d94275c0e41bed4878caf60f8254473f3486.
Help is displayed incorrectly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin d7d3267594 TTY: removed slang1 related code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin e6e97f8cd9 src/help.c: minor refactoring.
Used TTY wrapper. Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 0c278498d5 src/main.c: minor refactoring
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin d1122efe92 TTY: moved SIGWINCH setup function to TTY layer.
Also renamed SIGWINCH signal handler.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 16ceccc6df Panel: fixed width of second column in brief listing mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin cf2ecb4491 Moved do_possible_cd() function from main.c to execute.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin d21c8dc448 Screen: moved maybe_cd() function from main.c to screen.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 2c4beaafba Fix after rebase.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 05b89b3bab VFS: removed unnedeed includes of tty/tty.h header.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 5cd4a8ad83 Moved panel update functions from main.c to screen.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin c43bb6f576 TTY: moved alternate_plus_minus variable to TTY layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin d6dc828c0c WListbox: some draw modifications.
Draw scrollbar if widget vertical size is less than item count.
Add leading space.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 1b343c7609 WListbox: removed widget sizes duplication.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin 32a52f9fb5 Listbox window: without button, listbox only.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin ac37863688 Listbox window: apply main menu colors to the user menu.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin e7b35b6ef0 Dialog: create own copy of colors.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin a55cf8ae53 TTY: minor optimization of button bar draw.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin bd0d344802 TTY: moved repaint_screen() from src/main.[ch] to src/layout.[ch].
Fixed includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin 509f4d5c4f TTY: fixes after rebase.
Code clean up.
Modification of tty_refresh for NCurses: call doupdate() after refresh()
every time.
tty_draw_box_slow() is not private function of TTY now.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin 7eb4f84dbd TTY: reorganization of mouse handling.
Also small optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin ef282af7ae TTY: draw box for slow terminal was moved to TTY layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin 05f3ee1f6c TTY: modifed initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin a691a99278 Fix after rebasing.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin 3c902477cb TTY: use direct cast instead of str_unconst() funcion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin 508c20c92d TTY: modified color initialization.
Set color mode via tty_init_colors() function.
Made disable_colors and force_colors variables static in main.h.
Removed tty_disable_colors() function.
Some code optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin aadc438c20 TTY: code reorganization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Andrew Borodin 6b07af2fc4 Some modification of initialization.
home_dir variable intialization is moved from main() to OS_setup().
Fixed memory leak ('shell' variable).
2009-08-12 21:23:54 +04:00
Andrew Borodin 7de080e123 Fixes after rebase to master. 2009-08-12 21:23:54 +04:00
Andrew Borodin 46559fd764 TTY: renamed functions.
getch have been renamed to tty_lowlevel_getch.
mi_getch have been renamed to tty_getch.
get_event have been renamed to tty_get_event.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00
Slava Zanko 7b74e49bd2 Added Copyringt information. Corrected 'Written by' field.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 21:23:13 +04:00
Slava Zanko ce54d07561 Fix include paths in some source files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 21:23:13 +04:00
Andrew Borodin 0827144b5f TTY: renamed functions.
init_curses have been renamed to tty_init_curses.
init_lang have been renamed to tty_init_slang.
2009-08-12 21:23:13 +04:00