Commit Graph

83 Commits

Author SHA1 Message Date
Roland Illig
8458240147 * Code cleanup: Added const qualifier for variables and
function declarations where possible. No functional changes.
2004-08-29 16:42:40 +00:00
Roland Illig
207f7d126c Even more const-ification. 2004-08-17 00:00:32 +00:00
Roland Illig
9d41314d09 Added more const-ness to print_vfs_message. 2004-08-16 18:31:30 +00:00
Roland Illig
6cefb6d3bb Made the data type of some variables more appropriate. 2004-08-16 03:12:05 +00:00
Dmitry Alexeyev
95a681cd24 * layout.c (rotate_dash): Set color before printing the dash. 2003-12-24 06:43:26 +00:00
Pavel Roskin
b151ce4419 Constify rotating_dash. 2003-12-06 04:04:27 +00:00
Pavel Roskin
04b4194371 * dialog.h (dlg_widget_active): New function - check if the
widget is active.
* boxes.c (display_callback): Use it.
* layout.c (swap_panels): Likewise.
* screen.c (do_panel_event): Likewise.
2003-11-27 00:46:39 +00:00
Pavel Roskin
24384e9a89 * panel.h: Fix duplication between cpanel and current_panel in
favor of current_panel.  Ditto opanel and other_panel.
2003-10-26 06:45:59 +00:00
Pavel Roskin
bb13ad8db4 * main.c (get_current_panel): Remove.
(get_other_panel): Move ...
* layout.c: ... here.
2003-10-26 06:32:42 +00:00
Pavel Roskin
52d81f57d7 * tree.h: Fix unneeded dependency on dialog.h.
* layout.h: Likewise.
2003-10-24 23:27:54 +00:00
Pavel Roskin
98950838b4 * dlg.h: Merge with ...
* dialog.h: ... this.  Adjust all dependencies.
* dlg.c: Merge with ...
* dialog.c: ... this.
* Makefile.am (SRCS): Remove dlg.h and dlg.c.
2003-10-24 23:20:30 +00:00
Pavel Roskin
714f3ee8a7 * color.c (dealloc_color_pairs): Rename to ...
(done_colors): ... this.
* layout.c (done_screen): Call done_colors() here ...
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
specific.
2003-10-24 20:55:23 +00:00
Pavel Roskin
0837ed2b49 * cmd.c: Cleanup of unneeded global functions and data.
* color.c: Likewise.
* dir.c: Likewise.
* file.c: Likewise.
* filegui.c: Likewise.
* hotlist.c: Likewise.
* layout.c: Likewise.
* main.c: Likewise.
* panelize.c: Likewise.
* wtools.c: Likewise.
2003-10-14 21:58:56 +00:00
Pavel Roskin
c0b34498dd * dlg.h: Merge Widget_Item into Widget. Massive adjustment. 2003-09-12 23:38:42 +00:00
Pavel Roskin
e14f56d71b * dlg.h: Replace DLG_BACKWARD to DLG_REVERSE with a better
defined meaning.  Make it default to populate dialogs from the
top.  Change all calls to create_dlg().
2003-09-12 21:22:01 +00:00
Pavel Roskin
0c794a4e95 Fix unsafe defines. 2003-09-10 21:33:12 +00:00
Pavel Roskin
e51f170ad9 * dlg.c: Don't supply ID of the current widget with any
callbacks.  It's mostly useless and can be found by the
callback.
* layout.c: Likewise.
* widget.c: Likewise.
* chmod.c (chmod_callback): Adjust for the above.
2003-09-10 16:16:34 +00:00
Pavel Roskin
f462c5a77d * layout.c (layout_change): Make static.
* screen.c (paint_panel): Likewise.
* cmd.c (dirsizes_cmd): Use dirty flag.
* tree.c (chdir_sel): Don't call paint_panel().
2003-09-10 06:15:53 +00:00
Pavel Roskin
16a2b83754 * layout.c (init_layout): Use groupboxes. 2003-09-07 22:54:36 +00:00
Pavel Roskin
86c2a91184 * layout.c: Fix remaining callback calls.
* widget.c: Likewise.
2003-09-07 21:30:36 +00:00
Pavel Roskin
13a02ef978 * dlg.h: Use new types for dialog callbacks.
(dlg_cb_fn): Swap msg and parm arguments for consistency with
widget callbacks.  Adjust all dependencies.
2003-09-07 21:24:01 +00:00
Pavel Roskin
2b9b18150e * widget.h (button_new): Remove unused extra argument. Adjust
all dependencies.
2003-09-01 02:07:02 +00:00
Pavel Roskin
fab6e8a493 * widget.h: Completely get rid of tkname. Rename it to histname
for the input widget.  Adjust all dependencies.
2003-09-01 00:18:37 +00:00
Pavel Roskin
c36bf430bf * text.c: Eliminate. Move colors to color.c and clr_scr() to
layout.c.
* main.c (restore_console): Eliminate, use handle_console().
* Makefile.am: Remove text.c.
2003-06-22 09:32:52 +00:00
Pavel Roskin
5b2bd08768 * configure.in: Remove test for SCO UNIX. Remove all references
to SCO_FLAVOR everywhere.  SCO flavor is rather unsavory now.
2003-06-18 04:47:17 +00:00
Pavel Roskin
d032c68db1 Typos. 2003-06-02 19:26:55 +00:00
Pavel Roskin
0f865bcf8f * cmd.c (get_random_hint): Add "force" argument to ignore
timeout.  Adjust all dependencies.
* main.c (load_hint): Likewise.
* layout.c (setup_panels): Force updating the hint bar.
Original patch by Adam Byrtek <alpha@debian.org>
2003-02-05 08:37:21 +00:00
Pavel Roskin
a47c40eaac * layout.c (setup_panels): Revert unnecessary part of the
previous patch.  Call load_hint regardless of message_visible.
Reported by Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2002-12-27 17:52:24 +00:00
Pavel Roskin
89804295bd * layout.c (setup_panels): Clean the hint bar if it's enabled.
Bug reported by Adam Byrtek <alpha@debian.org>
2002-12-26 16:36:07 +00:00
Pavel Roskin
da0c9299ad * main.c (update_xterm_title_path): New function, display
current path in the xterm window title.
(_do_panel_cd): Call update_xterm_title_path().
(done_mc): Remove final message for the titlebar.
* layout.c: Replace "Xterm hintbar" option with more generic
"Xterm window title".  Update all dependencies.
(setup_panels): Call update_xterm_title_path().
2002-12-26 16:10:45 +00:00
Pavel Roskin
f6bb0e1c2c Formatting change. 2002-12-26 15:16:04 +00:00
Pavel Roskin
47e32ea5a5 * layout.c (init_curses) [HAVE_SLANG]: Don't call
SLtt_get_terminfo(), it's already called in slang_init().
* main.c (init_xterm_support): Free term_entry.
2002-12-24 03:37:34 +00:00
Pavel Roskin
bec62b69f1 * layout.c (init_curses) [!HAVE_SLANG]: Set ESCDELAY to 200ms.
If ESCDELAY is 0, ncurses 5.2 may stop recognizing escape
sequences under heavy CPU load.
2002-12-21 02:09:00 +00:00
Pavel Roskin
9234b4d8ad Remove some unneeded includes. 2002-12-08 04:16:30 +00:00
Pavel Roskin
b246f3c7ea s/Could not/Cannot/ 2002-12-08 01:12:18 +00:00
Pavel Roskin
f8267eb2a0 * myslang.h: Define getyx() macro.
* layout.c (print_vfs_message): Preserve cursor position.
2002-11-15 01:35:12 +00:00
Pavel Roskin
a84b0fc9cd Fix some of the most ugly abuses of mixed caps in English texts,
especially in button captions.
2002-10-21 22:26:39 +00:00
Pavel Roskin
da7e82d253 Global removal of RCS Id: flags. 2002-09-26 23:13:45 +00:00
Pavel Roskin
7b42d6c5cd * dlg.h: New message DLG_RESIZE.
* layout.c: Call DLG_RESIZE instead of resizing viewer and
editor individually.
* view.c (view): Install handler for DLG_RESIZE.  Make view_dlg
a local variable.
2002-09-24 03:56:08 +00:00
Pavel Roskin
f6f02a0295 * command.c: Make `command' a standard WInput widget, just
change its callback.  Eliminate input_w().  Adjust all
dependencies.
* widget.c (input_callback): Remove static attribute.
2002-09-20 19:36:55 +00:00
Pavel Roskin
5d2757fb8d * key.c (get_event): Check gpm_fd only if gpm is actually used.
* layout.c (done_screen): Move disable_mouse() call ...
* main.c (done_mc): ... here.
2002-09-08 15:50:02 +00:00
Pavel Roskin
6c2eb32b70 * dlg.c (x_set_dialog_title): Completely eliminate. Adjust all
dependencies.
2002-09-03 07:42:36 +00:00
Pavel Roskin
6f0c076c65 * chmod.c: Use common_dialog_repaint().
* chown.c: Likewise.
* layout.c: Likewise.
* option.c: Likewise.
2002-09-02 18:03:15 +00:00
Pavel Roskin
9feb2ffdf5 * layout.c (print_vfs_message): Set normal color, don't use
random current attributes.
2002-08-22 23:59:20 +00:00
Pavel Roskin
9803d2ea90 * dlg.h: Remove unused fields in struct Widget.
* dlg.c: Adjust for the above.
* layout.c: Likewise.
2002-08-22 00:50:24 +00:00
Pavel Roskin
564dc4264b * layout.c (setup_panels): Make the button bar 0 lines high if
it's invisible, so that mouse click on the history button works
with invisible button bar.
2002-08-21 22:27:52 +00:00
Pavel Roskin
047a7f906e * dlg.h: Remove all unused flags for create_dlg(). Adjust all
dependencies.
2002-08-19 06:22:32 +00:00
Pavel Roskin
69f67049fa * layout.c (init_curses) [!HAVE_SLANG]: Add support for
stickchars - fill acs_map[] with ASCII approximations.
* main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
2002-08-18 16:34:29 +00:00
Pavel Roskin
5257da5f83 * key.c [USE_NCURSES] (get_key_code): Ignore KEY_RESIZE.
* layout.c [USE_NCURSES] (flag_winch): Don't call
low_level_change_screen_size() from signal handler.
From Thomas Dickey <dickey@herndon4.his.com>
2002-02-06 05:23:50 +00:00
Pavel Roskin
905b9ac8f8 * layout.c: Make more variables static. 2001-11-29 20:30:50 +00:00