Pavel Roskin
f0aab2028b
* view.c (view_ok_to_quit): Use the same dialog as the editor.
2002-10-17 05:33:10 +00:00
Pavel Roskin
a7dd92996c
* view.c: Move call to view_update_bytes_per_line() from
...
view_init(), where the number of columns is unknown yet, to
view_callback() where it's already known.
(view_adjust_size): Make static.
2002-10-07 18:50:27 +00:00
Pavel Roskin
a67eb057ec
* view.c (view_update_bytes_per_line): Don't use vertical bars
...
in the hex viewer is short of space. Fix missing space between
addresses and hexdump when framed.
(display): Likewise.
2002-10-07 18:09:50 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00
Pavel Roskin
c46620d1c5
* view.c (display): Fix wrapping of tabs.
...
Reported by Arpad Biro <biro_arpad@yahoo.com>
2002-09-24 04:20:16 +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
95deedcc08
* view.c (view): Set view_dlg to NULL after it's destroyed.
2002-09-23 23:49:22 +00:00
Pavel Roskin
c785d4195b
* global.h: Move fcntl.h inclusion here. Define O_BINARY.
...
* mountlist.c: Remove more includes already handled in global.h.
2002-09-23 06:43:22 +00:00
Pavel Roskin
28ee4bd6f0
* view.c (view_event): Add mouse wheel support.
2002-09-21 05:46:19 +00:00
Pavel Roskin
ec1b1f9614
Globally replace OS2_NT and _OS_NT with WIN32_NATIVE.
2002-09-10 22:04:11 +00:00
Pavel Roskin
d2c8d076f9
* view.c (init_growing_view): Avoid reporting the same error
...
twice. Reported by Moritz Barsnick <moritz@barsnick.net>
2002-09-08 15:22:28 +00:00
Pavel Roskin
cac0accb55
* view.c (view_mode_callback): Eliminate, use the default
...
callback.
2002-09-05 19:16:18 +00:00
Pavel Roskin
556f733f12
* boxes.c: Fix remaining old-style calls to create_dlg().
...
* complete.c: Likewise.
* main.c: Likewise.
* view.c: Likewise.
2002-09-03 20:19:22 +00:00
Pavel Roskin
68f0b4b8b4
* view.c (view): Avoid passing an uninitialized color array to
...
create_dlg() - pass NULL instead.
2002-08-31 04:30:57 +00:00
Pavel Roskin
f8996f5846
* view.c: Make static whatever possible.
...
* view.h: Remove internal view routines.
2002-08-27 19:10:54 +00:00
Pavel Roskin
8aa61fffa3
* dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
...
into one field "flags". Adjust all dependencies. Add new flag
DLG_COMPACT.
* wtools.c (dialog_repaint): Draw frame without spaces if
DLG_COMPACT flag is set.
* complete.c (complete_engine): Set DLG_COMPACT.
(query_callback): Use common_dialog_repaint().
2002-08-22 15:34:25 +00:00
Pavel Roskin
9e36fa257d
* global.h: Move include for rx.h and eregex.h here.
2002-08-21 07:20:39 +00:00
Pavel Roskin
05e708a791
* view.c (display): Use enum for boldflag values. Fix cursor
...
highlighting for the ASCII part of the hex editor.
2002-08-18 20:18:04 +00:00
Pavel Roskin
7ea7ec49ab
* view.c (display): Use only declared color pairs to fix hex
...
editor appearance with ncurses. Eliminate some useless defines.
2002-08-14 07:41:01 +00:00
Pavel Roskin
b8f676ec41
* cons.saver.c: Use SEEK_SET instead of 0 in lseek().
...
* view.c: Likewise.
2002-07-29 21:18:51 +00:00
Pavel Roskin
0389cbf16c
* view.c (display): Don't highlight characters as bold if the
...
character before the backspace was different.
From Roland Illig <roland.illig@gmx.de>
2002-07-26 17:17:41 +00:00
Pavel Roskin
6bdeafba4d
* dlg.c: Eliminate all useless x_* functions.
...
* dlg.h: Likewise.
* panel.h: Likewise.
* textconf.h: Likewise.
* view.c: Likewise.
* view.h: Likewise.
* widget.c: Likewise.
* main.c: Remove panel_update_marks(). Move try_to_select() ...
* screen.c: ... here. Eliminate x_* functions.
* main.h: Remove panel_update_marks().
2002-07-19 22:16:24 +00:00
Pavel Roskin
3860ff7b34
* util.h: Rename compression types, add a type for uncompressed
...
files.
* util.c (is_gunzipable): Rename to ...
(get_compression_type): this. Don't check archive length, since
it's unreliable if there is padding at the end of the file.
Eliminate prehistoric Linux workaround. All callers adjusted.
* utilunix.c (close_error_pipe): Use "%s" in message () to
prevent possible crash.
(check_error_pipe): Likewise.
2002-07-02 21:09:25 +00:00
Andrew V. Samoilov
320b3cedae
* view.c (regexp_search): Don't call save_edit_changes
...
if there are no changes.
(save_edit_changes): Use messages from ../po/mc.pot.
2002-05-30 13:12:56 +00:00
Andrew V. Samoilov
53a7967f74
* view.c (save_edit_changes): Handle errors.
...
(do_view_init): Don't open and check file type
if _command is not null or _file is empty string.
2002-05-27 16:20:35 +00:00
Andrew V. Samoilov
a876d1a17d
* view.c (do_view_init): Close fd if it is unused.
2002-05-15 14:44:54 +00:00
Pavel Roskin
7ca687c8ed
* eregex.h: Update from glibc-2.2.5.
...
* regex.c: Likewise.
* find.c: Use eregex.h, not regex.h.
* util.c: Likewise.
* view.c: Likewise.
From Alexander Varakin <avarakin00@hotmail.com>
2002-03-18 21:08:18 +00:00
Pavel Roskin
fa89635b51
Fully eliminate all references to HAVE_X and HAVE_GNOME.
2001-11-14 23:20:37 +00:00
Pavel Roskin
e50abb3f80
* view.c (do_view_init): Make sure _file is not
...
an empty string before mc_stat and mc_open.
Memory leak fixed.
2001-11-14 20:15:36 +00:00
Pavel Roskin
2503eb0342
* view.c (view_hook): Warning fix.
2001-10-18 08:42:20 +00:00
Pavel Roskin
1773a0fee0
* view.c (init_growing_view): Revert last change, it was wrong.
...
(view_hook): Don't check that the file is regular - it's now
done in do_view_init(). This fixes update problem in quick view
when moving cursor from a regular file to a directory.
2001-10-18 08:39:41 +00:00
Pavel Roskin
37e595b6ba
* view.c (do_view_init): Only accept regular files. Use stat(),
...
not fstat() because open() would hang on pipes. Avoid opening
the file twice.
(init_growing_view): Take file descriptor, not the filename.
(load_view_file): Likewise.
2001-10-18 06:23:02 +00:00
Pavel Roskin
9b00e32f64
* view.c: Cleanup of preprocessor directives.
...
* view.h: Likewise.
* widget.c: Likewise.
* widget.h: Likewise.
2001-09-16 01:22:12 +00:00
Pavel Roskin
f2e38b2c3a
* textconf.h: Get rid of all PORT_HAS_*. Adjust all users.
...
Continued eliminating GNOME code.
2001-09-16 01:10:09 +00:00
Pavel Roskin
c11389facb
* global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
...
sources not to include them and to include global.h at the right
place.
2001-09-07 17:52:19 +00:00
Pavel Roskin
a8ef641beb
* x.h: Remove. Adjust all users. Make sure that global.h is
...
included instead. Don't include sys/param.h unconditionally -
rely on global.h taking care of it.
* Makefile.in: Remove x.h.
2001-09-03 05:07:40 +00:00
Pavel Roskin
2ee372d4a8
* view.c (hex_search): Don't use sscanf() to search for quoted
...
strings - use strchr instead.
2001-09-02 20:34:44 +00:00
Pavel Roskin
19437f2557
* view.c (load_view_file) [!HAVE_MMAP]: Warning fix.
2001-08-20 07:46:04 +00:00
Pavel Roskin
cbd8053c3d
* view.c (view_handle_key) [HAVE_CHARSET]: Remove unneeded
...
statements.
2001-08-19 17:41:38 +00:00
Pavel Roskin
689c3fb9ac
Replace "Can't" with "Cannot" everywhere.
2001-08-14 00:55:34 +00:00
Pavel Roskin
2da73069b9
* view.c: Warning fixes. Include "cmd.h". Rename help_cmd()
...
to view_help_cmd().
(view_handle_key) [HAVE_X]: Disable '!' and Ctrl-O.
2001-08-07 16:53:55 +00:00
Pavel Roskin
5c428dc7a3
* main.c (do_execute): Don't show prompt if the command is empty
...
and the subshell is not running.
* view.c (view_handle_key): Add support for Ctrl-O in the viewer.
Suggested by Walery Studennikov <despair@sama.ru>
2001-08-07 16:32:22 +00:00
Andrew V. Samoilov
7b568914ec
* view.c (block_search): Return the position where the block was
...
found as declared in comment.
(hex_search): Don't increase pos, block_search returns now right
position.
2001-08-06 15:33:38 +00:00
Pavel Roskin
813cf40ac4
* view.c (view_ok_to_quit): Make global - it's needed for GMC.
...
* view.h: Declare view_ok_to_quit().
2001-07-29 02:08:40 +00:00
Pavel Roskin
3b83dc732f
* view.c (hex_search): Release buffer after use.
2001-07-10 17:42:25 +00:00
Pavel Roskin
ea68ebdeb5
* view.c (hex_search): Reimplement parser using sscanf. Add
...
support for decimal and octal numbers. Add error reporting.
Allocate buffer dynamically.
2001-07-09 23:19:23 +00:00
Andrew V. Samoilov
e92976c937
* view.c [HAVE_CHARSET]: Include selcodepage.h.
...
(view_new): Use g_new0.
(ruler): Make static.
2001-06-25 11:24:49 +00:00
Pavel Roskin
a06415a371
* xtty.h: Remove, move contents ...
...
* tty.h: ... here.
[HAVE_X]: Define attrset(), mc_refresh(), enable_interrupt_key()
and disable_interrupt_key(). Don't declare mc_refresh().
* view.c: Use braces around widget_move() since it's empty in
the GNOME edition.
* xslint.c: Eliminate attrset() and mc_refresh().
* Makefile.in: Remove xtty.h.
2001-06-15 00:24:14 +00:00
Pavel Roskin
bec643d103
* achown.c: Eliminate untyped declarations.
...
* boxes.c: Likewise.
* cons.saver.c: Likewise.
* hotlist.c: Likewise.
* panelize.c: Likewise.
* rxvt.c: Likewise.
* main.c: Likewise. Make undeclared functions static.
* treestore.c: Make undeclared functions static.
* view.c: Likewise.
* widget.c: Likewise.
2001-06-14 22:33:00 +00:00
Pavel Roskin
58d8979490
* util.c (load_mc_home_file): New function. Load file from
...
mc_home, but try localized version of that file first.
* util.h: Declare load_mc_home_file().
* help.c (interactive_display): Use load_mc_home_file(). If the
first argument is NULL assume mc.hlp.
* dlg.c (dialog_handle_key): Use interactive_display() without
specifying the help file.
* tree.c (tree_copy): Likewise.
* cmd.c (help_cmd): Likewise.
(get_random_hint): Use load_mc_home_file().
2001-06-09 07:13:46 +00:00