Slava Zanko
6771a00b4c
add in core viewer codepage selection from list
...
Author: Ilia Maslakov <il.smind@gmail.com>
2009-04-16 13:14:30 +03:00
Ilia Maslakov
7658246c35
fix: editor status bar
2009-04-16 13:14:30 +03:00
Ilia Maslakov
7bcb0b1930
fix: edit_get_prev_utf segfault, add compare str with start of buf
2009-04-16 13:14:29 +03:00
Ilia Maslakov
2fdb3689e2
fix: with status_string on utf-8 char
2009-04-16 13:14:29 +03:00
Andrew Borodin
dd6e11fa9c
Unification of widgets API.
...
widget.h: chaged paremeters order of listbox_new()
and groupbox_new() functions.
widget.c: likewise.
src/achown.c: sync with modified API of WListbox and WGroupbox widgets.
src/boxes.c: likewise.
src/chown.c: likewise.
src/complete.c: likewise.
src/find.c: likewise.
src/hotlist.c: likewise.
src/layout.c: likewise.
src/listmode.c: likewise.
src/option.c: likewise.
src/panelize.c: likewise.
src/wtools.c: likewise.
edit/editcmd.c: likewise.
2009-04-16 13:14:29 +03:00
Andrew Borodin
5141e88f70
Type accuracy.
...
dialog.h: define values for cb_ret_t enum.
widget.c: removed trailing spaces. Formatting.
(insert_char): type accuracy for cb_ret_t.
(listbox_key): likewise.
2009-04-16 13:14:29 +03:00
Andrew Borodin
12b1081c64
Unification of panel frame painting.
...
myslang.h: modified definition of ACS_LTEE symbol. Added definition
of ACS_RTEE symbol.
screen.c (show_dir): paint left and right symbols of mini infor separator
as for S-Lang library as for NCurses one.
2009-04-16 13:14:29 +03:00
Slava Zanko
6ecea97973
vfs/vfs.c: Replace str_conv_t to GIConv
2009-04-16 13:14:29 +03:00
Ilia Maslakov
83b2c8406f
fix move backward and backspace.
2009-04-16 13:14:29 +03:00
Slava Zanko
4af2c5b938
src/strutil.c: replace call of g_string_append_vprintf() with g_strdup_vprintf and g_string_append
...
Not all versions of glib2 have function g_string_append_vprintf
2009-04-16 13:14:28 +03:00
Slava Zanko
8e6a6e48b6
edit/{editcmd.c,edit.h,edit.c}: remove catstrs() and freestrs() functions
...
These functions fully replaced with g_strconcat ()
WARNING! This just stupid replace. Some parts of code need to usage
concat_dir_and_file() function instread of g_strconcat ()
2009-04-16 13:14:28 +03:00
Slava Zanko
2ac6b553c6
Rework strutils for usage GString
...
instread of self-made buffers.
2009-04-16 13:13:58 +03:00
Mikhail S. Pobolovets
1959b42fdc
Merge branch '252_doxygen_desc_src'
...
Conflicts:
src/file.h
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-16 08:26:52 +03:00
Ilia Maslakov
dbce157307
add in core viewer codepage selection from list
2009-04-15 20:23:49 +00:00
Ilia Maslakov
38c7e229d5
fix: editor status bar
2009-04-15 20:08:44 +00:00
Ilia Maslakov
4374fd4ea5
fix: edit_get_prev_utf segfault, add compare str with start of buf
2009-04-15 19:07:46 +00:00
Ilia Maslakov
a71e58bcdb
Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8
2009-04-15 18:17:26 +00:00
Ilia Maslakov
13986ea0af
fix: with status_string on utf-8 char
2009-04-15 18:14:17 +00:00
Andrew Borodin
004bc0077e
Unification of widgets API.
...
widget.h: chaged paremeters order of listbox_new()
and groupbox_new() functions.
widget.c: likewise.
src/achown.c: sync with modified API of WListbox and WGroupbox widgets.
src/boxes.c: likewise.
src/chown.c: likewise.
src/complete.c: likewise.
src/find.c: likewise.
src/hotlist.c: likewise.
src/layout.c: likewise.
src/listmode.c: likewise.
src/option.c: likewise.
src/panelize.c: likewise.
src/wtools.c: likewise.
edit/editcmd.c: likewise.
2009-04-15 20:22:26 +04:00
Andrew Borodin
e029489fb6
Type accuracy.
...
dialog.h: define values for cb_ret_t enum.
widget.c: removed trailing spaces. Formatting.
(insert_char): type accuracy for cb_ret_t.
(listbox_key): likewise.
2009-04-15 20:12:47 +04:00
Andrew Borodin
57167b7a43
Unification of panel frame painting.
...
myslang.h: modified definition of ACS_LTEE symbol. Added definition
of ACS_RTEE symbol.
screen.c (show_dir): paint left and right symbols of mini infor separator
as for S-Lang library as for NCurses one.
2009-04-15 20:04:14 +04:00
Slava Zanko
f2fd5f49e5
Added doxygen stuff.
...
doc/doxygen.cfg:
- added some options for better output
m4.include/dx_doxygen.m4:
- calculate sources top dir
2009-04-15 17:28:38 +03:00
Slava Zanko
cc309ca6cf
Merge branch 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc into m-utf-8
...
* 'm-utf-8' of ssh://www.midnight-commander.org:2222/git/mc:
fix move backward and backspace.
2009-04-15 17:11:40 +03:00
Slava Zanko
f9ab791ac8
vfs/vfs.c: Replace str_conv_t to GIConv
2009-04-15 17:11:00 +03:00
Ilia Maslakov
960b1ef89d
fix move backward and backspace.
2009-04-15 13:56:19 +00:00
Slava Zanko
cada92062a
Fix forgot calls of iconv (replace with g_iconv)
2009-04-15 12:22:34 +03:00
Ilia Maslakov
3236fe285c
fix: segfault in 'edit_save_confirm_cmd', g_free non allocated memory
2009-04-14 20:41:41 +00:00
Slava Zanko
ad2eb8877b
src/strutil.c: replace call of g_string_append_vprintf() with g_strdup_vprintf and g_string_append
...
Not all versions of glib2 have function g_string_append_vprintf
2009-04-14 15:56:46 +03:00
Slava Zanko
ca7427cd35
edit/{editcmd.c,edit.h,edit.c}: remove catstrs() and freestrs() functions
...
These functions fully replaced with g_strconcat ()
WARNING! This just stupid replace. Some parts of code need to usage
concat_dir_and_file() function instread of g_strconcat ()
2009-04-14 15:12:36 +03:00
Slava Zanko
dbf8dd1bc2
Rework strutils for usage GString instread of self-made buffers.
2009-04-14 13:29:01 +03:00
Ilia Maslakov
21c88729a4
fix edit_delete, edit_backspace now work with utf-8
2009-04-14 06:07:35 +00:00
Ilia Maslakov
4411af46bb
fix incorrect move cursor after left/right key pressed
2009-04-14 05:56:02 +00:00
Andrew Borodin
b85f92c3fe
Small redesign of status dialog of directory size calculation.
...
src/smd.c (single_dirsize_cmd): create status dialog if needed not always.
file.h: fixed typo.
file.c (compute_dir_size_create_ui): changed title of dialog.
(compute_dir_size_destroy_ui): formatting.
(compute_dir_size_update_ui): simplified text of dialog.
2009-04-13 20:36:01 +04:00
Andrew Borodin
49e72ec135
file.c (compute_dir_size): don't break the directory reading loop
...
if cannot get the stat of current entry.
2009-04-13 20:36:00 +04:00
Andrew Borodin
11bc00bea9
Interruptable computing of directory size.
...
file.h: new type and functions for status dialog
of directory computing size. Added required includes.
(compute_dir_size): changed return value. Added new parameters
to handle status dialig.
Fixed comments.
file.c: new functions for status dialog of directory
computing size.
(compute_dir_size): interruptable dir size computing.
Changed return value. Added new parameters to handle status dialig.
(panel_compute_totals): likewise.
(panel_operate): likewise.
cmd.c (single_dirsize_cmd): interruptable dir size computing.
(dirsizes_cmd): likewise.
2009-04-13 20:36:00 +04:00
Ilia Maslakov
b6ae0a2479
fix cursor in editor on utf-8 files
2009-04-13 15:33:21 +00:00
Ilia Maslakov
95edc18aa8
add char charbuf[], int charpoint for multibyte input
...
add edit_get_byte_ptr for get pointer to edit current position in buffer
add edit_get_buf_ptr pointer in start of edit buffer
fix edit_translate_key for multibyte input
add
2009-04-13 15:19:06 +00:00
Ilia Maslakov
13f13c1fb0
fix incorrect edit_draw_this_line, edit_get_utf.
...
utf-8 text now showed correct
2009-04-13 09:28:07 +00:00
Mikhail S. Pobolovets
a83de0cc46
* lib/mc.ext.in:
...
Fixes a problem with viewing manual pages that
references other pages.
Original discussion at:
https://bugzilla.novell.com/show_bug.cgi?id=489757
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-13 11:41:39 +03:00
Mikhail S. Pobolovets
f021c090f9
* lib/mc.ext.in:
...
Tar is missing a - as argument fix
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-13 10:57:43 +03:00
Mikhail S. Pobolovets
d178dffaec
* lib/mc.ext.in:
...
Now mc also tries to use antiword if aviable
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-13 10:47:23 +03:00
Ilia Maslakov
f45e7d1dc6
fix: edit_draw_this_line iterators. iterators += utf8char_width
...
fix: edit.c edit_get_utf correct calculate utf8char width
2009-04-13 06:55:43 +00:00
Mikhail S. Pobolovets
0cb9da2bd6
* lib/mc.ext.in:
...
Now mc tries to search for a installed text-webbrowser and
try to use them instead of only trying lynx.
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-13 09:46:12 +03:00
Ilia Maslakov
d29c5d6d5f
reworked: edit_get_utf return int value is utf-8 char, char_width
2009-04-12 19:16:52 +00:00
Ilia Maslakov
7d7560deea
Change print_to_widget, edit_draw_this_line to use struct line_s line[].
...
Extract color attibutes from char to lines->style.
Add definition struct line_s:
struct line_s {
unsigned int ch; <- textchar
unsigned int style; <- color attr
};
2009-04-12 08:09:00 +00:00
Ilia Maslakov
b5c4a9ddf2
add str_isutf8 return 1 if codeset_name is utf8 or utf-8
...
add unsigned int utf8:1 to struct WEdit if utf8 then file multibute codeset
2009-04-09 14:23:08 +00:00
Ilia Maslakov
36bf010af6
add function edit_get_utf_char
2009-04-09 12:04:30 +00:00
Ilia Maslakov
b617640aab
clear trailing spaces in src/strutil.c
2009-04-09 10:29:00 +00:00
Ilia Maslakov
8725fa60a8
add to status bar source codepage
2009-04-09 08:40:59 +00:00
Ilia Maslakov
eba7d3a130
Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8
2009-04-09 08:02:43 +00:00