1
1

1799 Коммитов

Автор SHA1 Сообщение Дата
Pavel Roskin
485bbcef9b * main.c (make_panels_dirty): Remove, it's unneded now.
(midnight_callback): Don't call make_panels_dirty().  Mark
current panel dirty if the search mode is unset.  No need to set
attibutes before calling show_console_contents().
2003-09-07 05:58:55 +00:00
Pavel Roskin
2a60f651e3 * dlg.h: Convert send_idle_msg field to a publicly visible flag
DLG_WANT_IDLE.
* main.c (midnight_callback): Move auto_menu handling to the
handler for DLG_IDLE.
(do_nc): Request idle events.
2003-09-07 05:39:51 +00:00
Pavel Roskin
80f4f3f55d * dlg.c: Fix a bug when DLG_HOTKEY_HANDLED would not be
delivered if the current widget already has focus.
2003-09-07 02:46:06 +00:00
Pavel Roskin
6349237830 * user.c (execute_menu_command): Implement %view macro. 2003-09-04 17:02:21 +00:00
Pavel Roskin
9190dcbfa8 * wtools.c (create_listbox_window): Don't repaint the dialog
before it's run.
2003-09-03 05:19:08 +00:00
Pavel Roskin
058e91c2f5 * learn.c: Don't track button hotkeys.
(learn_check_key): Consume all alphanumeric keys, regardless of
button hotkeys.
2003-09-03 04:37:35 +00:00
Pavel Roskin
f0eeffd583 Trivial simplification from Andrew V. Samoilov <sav@bcs.zp.ua> 2003-09-02 22:38:15 +00:00
Pavel Roskin
ac1fd1d878 Remove unused variable stdout_fd. 2003-09-02 22:36:58 +00:00
Pavel Roskin
198e0035e4 * listmode.c: Create all buttons in one place. Remove unneeded
low-level drawing.
(listmode_edit): Return NULL on cancel.
* main.c (listmode_cmd): Actually use the result of
listmode_edit().
2003-09-01 09:03:30 +00:00
Pavel Roskin
3632b705de * listmode.c: Use callbacks for Add and Remove buttons. Don't
run dialog in the loop, it doesn't work this way.
2003-09-01 08:18:54 +00:00
Pavel Roskin
c757bbeda1 * widget.h: Define type bcback for button callbacks. 2003-09-01 08:16:08 +00:00
Pavel Roskin
f8e00e7b6a * widget.c (listbox_new): Remove "action" argument. Listboxes
without callbacks default to closing the dialog.  Adjust all
users.  This fixes double click on completion listbox.
* widget.h: Use uppercase names for the return values of the
listbox callback.
2003-09-01 07:31:56 +00:00
Pavel Roskin
ab427784c8 * hotlist.c (update_path_name): Avoid using global variable.
(l_call): Likewise.
2003-09-01 07:00:09 +00:00
Pavel Roskin
bd4a76ebb3 * widget.h: Eliminate listbox_cback. Call listbox callback
whenever it's defined.  Adjust all users.
2003-09-01 05:58:38 +00:00
Pavel Roskin
58545e65c2 * widget.h: Use exact type in the listbox callback. Adjust all
legitimate users, remove all unused callbacks.
2003-09-01 05:43:20 +00:00
Pavel Roskin
339bd16e5e * boxes.c: Fix GUI code for some non-default configurations.
* listmode.c: Likewise.
2003-09-01 05:10:49 +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
c27ebffa28 * option.c (check_options): Remove tk field.
* widget.c: Comment fix to get rid of references to Tk.
* wtools.c (real_input_dialog_help): Rename tk_name to histname.
Remove names from non-input widgets.
2003-09-01 01:34:17 +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
10f65ac83d * dlg.h (struct Widget): Remove tkname field.
(init_widget): Remove tkname argument.
* widget.h (listbox_new): Likewise.
Adjust all dependencies.
2003-08-31 23:29:49 +00:00
Pavel Roskin
8b3b8147d7 * cmd.c (edit_symlink_cmd): Fix possible off-by-one after
readlink().
* file.c (make_symlink): Likewise.
* main.c (copy_readlink): Likewise.
* screen.c (display_mini_info): Likewise.
(chdir_to_readlink): Likewise.
* util.c (resolve_symlinks): Likewise.
2003-08-29 22:45:04 +00:00
Pavel Roskin
65b52a3c89 Add:
Alt-O should optionally show the current directory and move cursor down
(as in older versions).  Old functionality on files (go to "..") is not
needed.
2003-08-18 04:58:23 +00:00
Pavel Roskin
3f4d7934b3 * cmd.c (delete_cmd_local): New function. Remove file under the
cursor, regardless of marks.
* screen.c (panel_keymap): Bind it to F18.
2003-08-18 04:45:54 +00:00
Pavel Roskin
df6365e737 * file.c (panel_operate_generate_prompt): Remove source
calculation, it doesn't belong here.
(panel_operate): Change arguments: drop ask_user and thedefault,
introduce force_single.  force_single changes default to the
current file and ignores selection.  Adjust all dependencies.
2003-08-18 04:35:28 +00:00
Pavel Roskin
4dd13a09ba * dir.h (file_entry): Rename "buf" to "st". Adjust all
dependencies.
2003-08-18 00:47:43 +00:00
Pavel Roskin
ef2c07b7c8 * main.c: Rename PanelMenu to LeftMenu. Don't assume that
LeftMenu and RightMenu are identical.
From Pavel Tsekov <ptsekov@gmx.net>
2003-08-01 20:00:28 +00:00
Pavel Roskin
90b7cbf2ea Done:
Changing directory while in the editor shouldn't affect the path where
the editor saves its files.
2003-07-31 16:38:39 +00:00
Pavel Roskin
6867850154 Add:
Make the internal editor reentrant.  Add "edit menu file" to the editor
menu.
2003-07-31 16:27:44 +00:00
Pavel Roskin
c7456a4e5d Images on VFS - better description. 2003-07-28 18:34:35 +00:00
Pavel Roskin
a1ce20517c * main.c: Make more variables static. 2003-07-28 16:11:44 +00:00
Pavel Roskin
d388773779 * key.c (xterm_key_defines): Add more sequences for xterm-179 by
Thomas E. Dickey.
2003-07-23 05:44:25 +00:00
Pavel Roskin
c72a1ea44c Get rid of all references to NATIVE_WIN32. 2003-07-23 03:22:32 +00:00
Pavel Roskin
17a04526cf * subshell.c (pty_open_master) [HAVE_GRANTPT]: Prefer
posix_openpt() over GNU-specific getpt().  Needed for FreeBSD
5.x.  Original patch by Max Khon <fjoe@FreeBSD.org>
2003-07-21 23:33:34 +00:00
Pavel Roskin
0ec650da9a * screen.c (panel_key): Redisplay ministatus if the searching
was turned off.  Reported by gotar@poczta.onet.pl
2003-07-21 04:56:56 +00:00
Pavel Roskin
4229e4fb3d Fix description of the last commit. 2003-07-10 16:47:18 +00:00
Pavel Roskin
0564dc68ea Fixed:
Locks for compressed files are not removed.
2003-07-09 00:21:46 +00:00
Pavel Roskin
0ba153274d Update for fixed issues. 2003-07-08 22:48:07 +00:00
Pavel Roskin
40d911f728 * ext.c (regex_check_type): Handle case when there are no tabs
or spaces after the colon.
2003-07-08 22:24:46 +00:00
Pavel Roskin
452de6619d * ext.c (regex_check_type): Set content_shift to skip the
filename.
2003-07-02 16:42:36 +00:00
Pavel Roskin
43bbd6d299 * hotlist.c: Add buttons "Refresh" and "Free VFSs now" to Active
VFS dialog.
(hotlist_button_callback): Handle the buttons.
* main.c: Remove the 'Free VFS now' menu item.
2003-06-29 23:44:39 +00:00
Pavel Roskin
7e3f8b9d87 * ext.c (regex_check_type): Fix previous change. 2003-06-25 17:42:38 +00:00
Pavel Roskin
e31a950387 * ext.c (regex_check_type): Strip tab(s) after "filename:" in
file output.
2003-06-25 06:32:46 +00:00
Pavel Roskin
6f5bb55e2b * execute.c (do_execute): Make static. Print end of line after
"Press any key to continue" and user's keystroke, but before
restoring the panels.  Eliminate last_paused variable.  Don't
print fake prompt if there is no command.
2003-06-22 10:15:04 +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
e4f7714ab1 * execute.c: New file with all functions for execution and
toggling panels not specific to subshell.
* execute.h: Corresponding header.
* Makefile.am: Adjust for the above.
2003-06-22 09:17:46 +00:00
Pavel Roskin
a568db4228 * main.c (execute): Eliminate. Fix all dependencies.
(shell_execute): Constify string argument.
2003-06-22 08:12:13 +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
944d5c430b * key.c (mc_bindings): Remove. Esc-">" and Esc-"<" are not
always the same as Home and End, at least in mcedit.
(get_key_code): Never ignore Escape outside known sequences.
* screen.c (panel_keymap): Add Esc-">" and Esc-"<".
* tree.c (tree_keymap): Likewise.
* widget.c (input_map): Likewise.
(listbox_key): Likewise.
(check_movement_keys): Likewise.
Reported by Miguel de Icaza <miguel@ximian.com>
2003-06-14 05:19:19 +00:00
Pavel Roskin
bd8919e567 * key.c (correct_key_code): Treat Shift-Backspace as Backspace. 2003-06-09 05:59:00 +00:00
Pavel Roskin
f55e75b70a * util.h: Add new match_type - match_regex.
* ext.c: Use it everywhere.
(regex_command): Don't change easy_patterns - it affects the
panel filters.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2003-06-07 00:37:28 +00:00