1
1

67 Коммитов

Автор SHA1 Сообщение Дата
Andrew Borodin
cf6098505c Close dialogs during MC shutdown.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:44:15 +04:00
Andrew Borodin
56bbdeb15f Support of multiple editors and viewers.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
dfe9bc887a MC Edit: column_highlighting flag is a member of WEdit struct.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
a87165824c Added function to get dialog title.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
74651f2e9f Added modal flag to the dialog structure.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
5c9826a897 Renamed dlg_id and parent fields of Widget structure.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
6efe7f2216 Reimplemented widget list in dialog using GList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
0e0f9c8ccd Added dialog state (active, suspended, closed).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:16:19 +04:00
Andrew Borodin
8bcc49900b Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-14 14:04:02 +04:00
Andrew Borodin
dce8010059 Declaration of option_tab_spacing variable was moved from main.h to setup.h.
Includes were fixed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-14 13:53:02 +04:00
Andrew Borodin
0485ae5026 Ticket #2196: editor hangup if editor_tab_spacing is equalt to 0.
Check and correct value of option_tab_spacing during options loading.
Check and correct value of option_word_wrap_line_length during options loading
and after editor options changing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-14 13:53:02 +04:00
Ilia Maslakov
c46e2925e1 Ticket #30 (use external clipboard utility)
added params clipbord_store, clipbord_paste into [Misc] section.
    created src/clipbord.[ch]
    added copy_file_to_ext_clip, paste_to_file_from_ext_clip for copy/paste
    text to the global X clipboard.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-06-11 13:47:46 +00:00
Andrew Borodin
044b9eca12 Fixed inaccuracy brach merging.
The e40a84f538b01515c216e8e43e91b8497a31f977 commit actually reverted
the 3209f8e61b393caec2c857b04f3bc5f1e4e4d326 one. That is wrong.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-10 11:23:30 +04:00
Vit Rosin
e40a84f538 g_string_sprintf() is deprecated.
Reimplemented error messages in src/editor/edit.c using g_strdup_printf().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:07:11 +04:00
Andrew Borodin
9dc0a54ba1 Ticket #2085: replacement of deprecated GLib functions.
g_tree_traverse() is deprecated. g_tree_foreach() is used instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-08 13:03:26 +04:00
Andrew Borodin
aa0d96bd8b Ticket #1646: removed leading and trailing spaces in i18n resources.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-07 21:42:46 +04:00
Andrew Borodin
a7cb5194c2 Removed unused defines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-04 23:34:15 +04:00
Ilia Maslakov
a4e4378861 initial step to do mark in inpun fields
added selection with mouse

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    Code cleanup: make visibility of some functions as static

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

fixed skins

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-05-27 22:26:59 +03:00
Ilia Maslakov
72bb075828 Ticket #2161 (del - clear input field)
new behavior: DEL - clear current field of dialog if text in the field is not modify and cursor not moved.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

Code cleanups: avoid compiler warnings

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-27 22:26:59 +03:00
Andrew Borodin
3209f8e61b edit_load_file_fast(): don't reset utf8 flag that was set early.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-27 14:07:22 +04:00
Andrew Borodin
72144b4895 edit_set_codeset(): new function to set codeset in MC editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-27 14:07:22 +04:00
Andrew Borodin
9a97d08c16 Ticket #2168: all hotkeys are in the lowercase now.
Hotkeys are already highlighted by the color; there is no any point
in using yet another attribute (uppercase) for emphasizing them
even more. Capitalizing a letter in the middle of a word looks ugly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-26 09:59:03 +04:00
Andrew Borodin
7eb8f4030c Ticket #2183: edit crash while opening some incorrect files.
The result of

touch 1.gz

is not a valid gzip'ed file. MCEditor crashes trying open it.

Changed initialization order of editor to init charset conversion
handler by non-zero value before open a file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-14 11:10:10 +04:00
Ilia Maslakov
823387a793 Removed hardcoded hotkeys in dialog.c Replaced keymap's initialization from main.c into setup.c
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

Collect keybind-related variables in src/keybind.[ch] files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-07 15:02:11 +04:00
Vit Rosin
1c367a41fd Removed unneeded break after return.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-05 16:24:14 +04:00
Andrew Borodin
e70db42deb Grammar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-05 16:24:13 +04:00
Andrew Borodin
4cea5be1ac Ticket #2097: clean up before 4.7.2 release.
Split assignments and conditions. Type accuracy. Minor optimization.

Thanks Vit Rosin for original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-05 16:23:51 +04:00
Slava Zanko
3a1e0966ae Final Indentation of all touched files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:21 +03:00
Slava Zanko
5d79a90737 Changes into src/editor directory:
* edit/editcmd.c:
  * ignore fscanf() result in edit_delete_macro()
  * ignore fscanf() result in edit_load_macro_cmd()
  * ignoring mc_chown() errors in edit_save_file()
  * handling system() call errors in edit_block_process_cmd()
 * edit/edit.c: handling read errors in edit_load_file_fast()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-04 17:34:20 +03:00
Andrew Borodin
12d3ef7171 Applied MC indentation policy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:25:32 +04:00
Andrew Borodin
d391813325 Optimization: rid of edit_menubar global variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:48 +04:00
Andrew Borodin
962bd6fc15 Optimization: rid of wedit and option_syntax_type global variables.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:48 +04:00
Andrew Borodin
1480937b17 Type accuracy. Minor optimization.
GLib function are used to manadge array of strings.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:48 +04:00
Andrew Borodin
469d119e12 Ticket #1754: show current syntax in 'Choose syntax highlighting' dialog.
Now current syntax scheme is highlighted in 'Choose syntax highlighting'
dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-30 18:11:47 +04:00
Ilia Maslakov
946715e971 Ticket #2155 (remove selected text before input)
Remove selected text before input or paste from clipboard.
    Thanks to nikk9 <dev.nul@mail.ru> for the original patch.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-28 19:12:43 +00:00
Ilia Maslakov
51401d441f Ticket #2081 (editor: incorrect overwrite text after input utf-8 chars)
fixed input multibyte chars in overwrite editor mode (remove character only when the first byte is inserted).
    thanx to Egmont Koblinger <egmont@gmail.com> for original patch and ticket.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-06 15:08:30 +04:00
Andrew Borodin
5b68413e62 Applied MC indentation policy.
Applied MC indentation policy to all files modified in this branch
with some simple manual modifications.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:22 +04:00
Andrew Borodin
63a4966a70 Destroy converter before quit from editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:21 +04:00
Andrew Borodin
d03a7e236b Fixed memory leaks in edit_search_cmd().
Thanks Vit Rosin for the original patch.

Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:21 +04:00
Ilia Maslakov
4b0b9878ac Ticket #2094 (after option "Cursor beyond end of line" switch off cursor still beyond end of line)
fixed position of cursor after disable option "Cursor beyond end of line" in editor options dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-03-16 14:04:35 +03:00
Ilia Maslakov
bbb9b8bafc Ticket #1770 (compilation error)
fixed compilation error with tcc.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-03-10 11:21:45 +03:00
Mikhail S. Pobolovets
93494a6d27 edit-widget.h, syntax.c: MC indenation policy has been applied
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-04 18:55:28 +02:00
Mikhail S. Pobolovets
9537ff6fe0 Ticket #1770: added switch 'caseinsensitive' for syntax highlighting
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2010-03-04 18:42:58 +02:00
Slava Zanko
5354d59337 Identation of some source files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 11:26:00 +02:00
Slava Zanko
054c5d6f44 x86_64: Cleanup of code for master
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 10:58:49 +02:00
Slava Zanko
1b75ea27b6 Cleanup of code for master
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-26 10:58:49 +02:00
Ilia Maslakov
cf16304bf6 Ticket #1986 (not converted text in confirm dialog)
fixed encoding of text in 'Confirm replace' dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-25 19:55:59 +03:00
Andrew Borodin
63aa191e7a Ticket #1572: retain search/replace options in editor.
Retain search/replace options in editor across editing session.
Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 14:59:46 +03:00
Ilia Maslakov
b0236c3e10 Ticket #1998 (EditColumnMark can't go up through newline)
fixed trouble with vertical selection

more detail description:

In block selection mode (shift-F3) it's impossible to go beyond empty line with
up or left arrow (i.e. in top direction).
In general: it's impossible to pass any line shorter than finishing column,
until left arrow is pressed at column 0 (which won't work on empty line), e.g.

xxxCxxx
yyyyy
zzzzzDz

- put cursor in C position,
- press shift-F3,
- go to D position,
- press up arrow twice,
- press left arrow - you're unlocked now and free to go up.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-02-19 12:59:10 +03:00
Andrew Borodin
1947d842a5 Added deletable member to WListbox structure.
Added deletable member to WListbox structure to enable
delete some list entries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-04 13:42:44 +00:00