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
e355e25b56
* dlg.h: Use cb_ret_t and widget_msg_t in widget callbacks.
...
Massive adjustment for the above.
2003-09-10 22:48:54 +00:00
Pavel Roskin
24737eb1c1
* dlg.h: Remove restroy callback. Widgets should use
...
WIDGET_DESTROY. Adjust all dependencies.
2003-09-10 18:21:40 +00:00
Pavel Roskin
3058921b75
* view.c (view_init): Constify "_command" argument.
...
(view): Likewise.
(do_view_init): Likewise.
(init_growing_view): Constify "name" and "filename" args.
* view.h: Fix declarations and comment.
2003-09-09 04:54:59 +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
1e0850ab07
* dlg.c (find_widget_type): Take pointer to void to avoid casts
...
everywhere. Adjust all callers.
2003-09-07 07:16:12 +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
c72a1ea44c
Get rid of all references to NATIVE_WIN32.
2003-07-23 03:22:32 +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
bd9c9343eb
* view.c (get_byte): Fix off-by-one error. Found by Valgrind.
2003-06-06 23:54:20 +00:00
Andrew V. Samoilov
6851c22f74
* view.c (get_line_at): Set prev properly for reverse search.
...
Don't remove final character in the last line without newline.
(search): During regexp search: handle properly '^'
in forward search and '$' in reverse search.
Based on the patch from Adam Byrtek <alpha@debian.org>.
2003-03-24 18:52:02 +00:00
Andrew V. Samoilov
9d9dd380fb
* view.c (get_line_at): Return unreversed line for backward
...
search to restore backward regexp search feature.
(icase_search_p): Fix for the above.
Reported by Adam Byrtek <alpha@debian.org>
2003-03-21 16:01:50 +00:00
Andrew V. Samoilov
387dbac31c
* view.c (icase_search_p): Add backward search support.
...
(search): Likewise.
(block_search): Likewise.
(normal_search): Add "Backwards" button.
(get_line_at): Handle view->direction properly and return
reversed string if backward search required.
2003-03-19 13:39:48 +00:00
Pavel Roskin
c799424167
Fix for the previous patch to avoid freeing bogus pointers.
2003-02-26 19:25:13 +00:00
Pavel Roskin
c6311c4ca5
* view.c (load_view_file): Make sure view->s.st_size is not
...
truncated when passed to g_malloc().
Reported by Philipp Thomas <pthomas@suse.de>
2003-02-26 18:06:27 +00:00
Pavel Roskin
45f6d2fbec
* view.c (max_dirt_limit): Make global to match view.h.
...
* setup.c (options): Actually save max_dirt_limit, which is
documented as a "special setting".
2002-12-27 06:48:33 +00:00
Pavel Roskin
6743211748
* view.c (do_view_init): Use non-blocking open() followed by
...
fstat() to avoid race conditions. Unset O_NONBLOCK flag after
the open().
2002-12-16 03:43:49 +00:00
Pavel Roskin
46958e5630
s/Error trying to/Cannot/
2002-12-08 09:27:18 +00:00
Pavel Roskin
b246f3c7ea
s/Could not/Cannot/
2002-12-08 01:12:18 +00:00
Pavel Roskin
d508d0ef0c
* view.h: Make struct WView opaque, move non-interface parts ...
...
* view.c: ... here.
* layout.c: Use struct WView, not typedef WView.
2002-11-14 21:18:28 +00:00
Pavel Roskin
31f491b01e
* dlg.h: Remove Dlg_head argument from callback_fn - it's
...
excessive and can be trivially derived from the widget.
(default_proc): Remove Dlg_head argument. Change all callers.
* widget.c (listbox_draw): Remove Dlg_head argument.
2002-11-13 02:27:00 +00:00
Pavel Roskin
eb53b3e975
* dlg.c (widget_redraw): Remove.
...
* widget.c (find_buttonbar): Use find_widget_type(). Make
global.
(define_label): Remove paneletc argument. Change all callers.
(define_label_data): Likewise.
(redraw_labels): Likewise. Use find_buttonbar().
* view.c (view_adjust_size): Use find_buttonbar().
2002-11-12 23:33:15 +00:00
Andrew V. Samoilov
74b5eb3ac7
* view.c (get_line_at): Use g_strreverse() instead of
...
reverse_string().
* util.c (reverse_string): Remove.
(decompress_extension): Return const char *.
(strip_home_and_password): Make dir const.
* util.c (reverse_string): Fix declarations.
2002-11-12 11:20:08 +00:00
Andrew V. Samoilov
1c8f1cb327
* view.c (normal_search) [HAVE_CHARSET]: Fix segmentation fault
...
on first search. Writting to readonly "" is not good idea.
2002-10-31 11:55:35 +00:00
Pavel Roskin
2d3c157e52
* charset.h: Provide new inline functions convert_to_display_c()
...
and convert_from_input_c().
* view.c: Include charset.h unconditionally, use new conversion
functions that don't require ifdefs.
2002-10-30 23:42:21 +00:00
Pavel Roskin
a305ec68f9
Reformat.
2002-10-30 22:48:59 +00:00
Pavel Roskin
6efcfdbc68
Don't use decorative spaces in any new translatable strings.
2002-10-29 22:13:17 +00:00
Andrew V. Samoilov
b932fcb249
* view.c (init_growing_view): Mark message for translating.
...
(normal_search) [HAVE_CHARSET]: Convert saved search string to
original codeset if input_dialog() returns empty string.
2002-10-29 13:01:09 +00:00
Pavel Roskin
d3f0a2f61b
Remove spaces around "Error" and "Warning" together with their translations.
...
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
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