Slava Zanko
6f390f5cf3
src/Makefile.am: add some header files to Make-tracking
2009-05-04 11:23:40 +03:00
Andrew Borodin
3c477cbdfd
Fixed editor menu reloading.
...
edit/edit.h: moved N_menus 5 macro to editmenu.c. Renamed edit_init_menu()
to edit_create_menu().
edit/editmenu.c: added static variable EditMenuBar to store editor menus.
Reimplemented menu creation. Added new edit_create_menu() function.
edit/editwidget.c (edit_file): used edit_create_menu() instead of
edit_init_menu().
2009-05-01 21:10:52 +04:00
Andrew Borodin
aadcca8048
src/edit.c (create_menu): small fix of i18n for menu entry text.
2009-05-01 21:08:21 +04:00
Slava Zanko
009e53198e
Added autopoint to maint subdir (and modified autogen.sh) for successfull build on
...
all cool OSes :)
2009-04-30 20:46:01 +03:00
Slava Zanko
e12b9e50db
edit/editcmd.c, edit/editcmd_dialigs.c: added 'search in all charsets' feature
...
src/search/search.c: fixed error with multicharset search
2009-04-30 16:58:28 +03:00
Slava Zanko
dce5909154
Search engine: added forgotten file. Sorry :)
2009-04-30 16:57:46 +03:00
Slava Zanko
dcf90bf6ec
Search engine: added Wildcard search (glob matching)
2009-04-30 16:06:24 +03:00
Slava Zanko
ebd271feca
Search engine: change some text constants.
...
* change names of search types
* change error message about unimplemented search type
2009-04-30 14:25:42 +03:00
Slava Zanko
15b2d19428
Search engine: fix errors with backward regex-search
2009-04-30 14:21:39 +03:00
Slava Zanko
5e08dbbe76
edit/editcmd_dialogs.c: types of search now show as radiobuttons
2009-04-30 13:46:33 +03:00
Slava Zanko
3e2c3ebb5e
Move replace confirm dialog into editcmd_dialogs.c
2009-04-30 12:45:02 +03:00
Slava Zanko
602f3c5796
Search engine: backward search now works
2009-04-30 12:35:24 +03:00
Slava Zanko
a802e51566
Search engine: regex replace now works correct
2009-04-30 10:32:45 +03:00
Andrew Borodin
4c5c8d4247
src/strutil.c (_str_convert): fixed memory leak: don't get error of valid
...
byte sequence conversion. Small optimization. Removed redundant code.
2009-04-29 20:35:42 +04:00
Andrew Borodin
a93716386c
src/search/regex.c (mc_search__regex_found_cond_one): convert GError message
...
to terminal charset.
(mc_search__cond_struct_new_init_regex): likewise.
2009-04-29 20:17:09 +04:00
Andrew Borodin
15e1db5157
Added functions to convert GError messages (which are in UTF-8 charset)
...
to terminal charset.
src/strutil.h: added conv_gerror_message member to str_class structure.
Added str_conv_gerror_message function declaration.
src/strutil.c (str_conv_gerror_message): new function to convert GError
message to terminal charset.
src/strutil8bit.c (str_8bit_conv_gerror_message): new function to convert GError
message to terminal charset for 8-bit locales.
src/strutilascii.c (str_ascii_conv_gerror_message): new function to convert GError
message to terminal charset for 7-bit locales.
src/strutilutf8.c (str_utf8_conv_gerror_message): new function to convert GError
message to terminal charset for utf-8 locales.
2009-04-29 20:08:33 +04:00
Andrew Borodin
45210ad625
src/util.c (_str_convert): don't drop valid byte sequence before first
...
invalid one.
2009-04-29 20:05:01 +04:00
Slava Zanko
def581b24d
Search engine:
...
* add function for prepare replacement string
edit/editcmd.c:
* changes for correct replace
WARNING! replace don't fully works!
2009-04-29 18:45:21 +03:00
Slava Zanko
74c8c748b3
internal editor: change search/replace dialogs:
...
replace dialog:
* removed 'replace order' field
* removed 'scanf' and 'regex' chackboxes
* added selectbox element for choise type of search
* confirm replace and 'replace all' now radiobuttons
search dialog:
* removed 'replace order' field
* removed 'scanf' and 'regex' chackboxes
* added selectbox element for choise type of search
2009-04-29 16:13:12 +03:00
Slava Zanko
d2e62a5c87
src/wtools: add callback functions for buttons to QuickWidget structure
2009-04-29 14:07:09 +03:00
Slava Zanko
4eec009295
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: vertical insetrion UNDO on UTF-8 text.
fix UNDO:
2009-04-29 13:49:00 +03:00
Slava Zanko
2137d0037f
src/wtools: add (Widget *) widget member to QuickWidget structure
2009-04-29 13:43:18 +03:00
Ilia Maslakov
5e5df48951
fix: vertical insetrion UNDO on UTF-8 text.
2009-04-29 07:35:00 +00:00
Ilia Maslakov
a18df0f0d5
Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8
2009-04-29 07:14:08 +00:00
Slava Zanko
d7f85d90d3
Search engine: fix core dump with invalid regex
2009-04-29 10:08:55 +03:00
Ilia Maslakov
3020c5573d
fix UNDO:
...
revert void edit_cursor_move to original.
add void edit_right_char_move_cmd (WEdit * edit)
add void edit_left_char_move_cmd (WEdit * edit)
replace edit_cursor_move call to edit_left_char_move_cmd/edit_right_char_move_cmd in edit_execute_cmd (on key press LEFT/RIGHT)
2009-04-29 07:06:27 +00:00
Ilia Maslakov
2a52039fae
fix: edit UNDO after delete, backspace on UTF-8 chars
2009-04-28 18:58:57 +00:00
Ilia Maslakov
a023d66b86
fix: incorrect UNDO in core editor on UTF-8 files.
2009-04-28 12:47:23 +00:00
Ilia Maslakov
6fd08cc199
replace iconv* to g_iconv*, drop iconv.h
2009-04-28 10:03:02 +00:00
Ilia Maslakov
52a2f5379e
fix: draw cursor on non-utf-8 console if a character is typically rendered in a double-width cell.
2009-04-27 12:16:53 +00:00
Ilia Maslakov
093d4c7e7a
fix: incorrect draw cursor if a character is typically rendered in a double-width cell.
...
(East Asian utf-8 chars)
2009-04-27 12:08:36 +00:00
Ilia Maslakov
687ab30f74
fix: g_string_free show asserts if str_nconvert_to_display return NULL.
...
now str_nconvert_to_display return empty GString.
2009-04-27 10:30:18 +00:00
Ilia Maslakov
d99c1def10
fix: broken building on glib < 2.14
2009-04-27 06:34:10 +00:00
Andrew Borodin
931f0d073d
src/menu.c: nice menu view: added LTEE and RTEE symbols to menu separators.
...
Small optimization. Removed some trailing spaces. Some formatting.
2009-04-26 18:22:53 +04:00
Andrew Borodin
f08aee0ad0
widget.c (draw_hotkey): new function to draw widget text with hotkey.
...
(button_callback): use draw_hotkey function to draw button text.
(radio_callback): use draw_hotkey function to draw radiobutton text.
(check_callback): use draw_hotkey function to draw checkbutton text.
2009-04-26 11:21:42 +04:00
Andrew Borodin
7ef779dcbc
src/search/lib.c (mc_search__recode_str): use symbolic constant
...
for invalid convertion descriptor.
2009-04-26 09:17:48 +04:00
Andrew Borodin
a20b472807
Merge branch 'm-utf-8' of git://midnight-commander.org/git/mc into m-utf-8
2009-04-26 09:04:58 +04:00
Andrew Borodin
9bb92b02ff
src/strutil.h: fixed function descriptions.
...
src/strutil.c: removed unneeded #include's.
2009-04-26 09:01:34 +04:00
Slava Zanko
94bb61742b
Search engine: move string constants from code of normal search to common code area (lib.c)
2009-04-25 16:53:05 +03:00
Slava Zanko
f8deaf63bc
Search engine: regex search now worked in any charset
2009-04-25 16:51:37 +03:00
Andrew Borodin
8e43cdbfce
Fixed i18n for search error messages.
...
src/search/internal.h: declare search error messages as global variables.
src/search/normal.c: define search error messages.
2009-04-25 13:44:33 +04:00
Slava Zanko
95ecd0ce54
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:
Fixed coredump in editor after help call.
src/menu.c (create_menu): don't translate menu entry text if ENABLE_NLS isn't defined.
src/strutil.h: created align_crt_t type for string alignment on terminal.
fix: uninitialized variable "p" in str_8bit_fit_to_term
2009-04-25 11:10:52 +03:00
Slava Zanko
c2455b246c
Make search module more independ (and prepare for future mclib :) )
2009-04-25 11:09:47 +03:00
Slava Zanko
b2442d1b1e
Reorganize source structure: move search engine files into src/search subdir
2009-04-25 10:25:13 +03:00
Slava Zanko
a1f0d9429c
Search engine: regexp search now worked
2009-04-25 10:15:56 +03:00
Andrew Borodin
9bd0607048
Fixed coredump in editor after help call.
...
src/help.c:
Intialize `data' static variable.
(translate_file): fixed memory leak.
(interactive_display): check correct variable to display error message.
2009-04-24 20:40:18 +04:00
Andrew Borodin
95b622f0db
src/menu.c (create_menu): don't translate menu entry text if ENABLE_NLS isn't defined.
2009-04-24 20:11:45 +04:00
Andrew Borodin
d716433399
src/strutil.h: created align_crt_t type for string alignment on terminal.
...
Changed type of related function arguments.
src/strutil.c (str_fit_to_term): changed type of 3rd argument
from int to align_crt_t.
src/strutil8bit.c (str_8bit_fit_to_term): likewise.
src/strutilascii.c (str_ascii_fit_to_term): likewise.
src/strutilutf8.c (str_utf8_fit_to_term): likewise.
src/screen.c: changed type of alignment variables and structure fields
2009-04-24 20:01:06 +04:00
Ilia Maslakov
16dd0ad073
fix: uninitialized variable "p" in str_8bit_fit_to_term
2009-04-24 08:40:00 +00:00
Slava Zanko
10b7bdb361
Project now build with:
...
make CFLAGS="-ansi -pedantic -Wall -Wextra -Werror"
WARNING! Builds wuthout samba.
2009-04-24 01:47:22 +03:00