Slava Zanko
bbf1f4e857
Moved filemanager-related stuff to src/filemanager directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:32 +03:00
Andrew Borodin
fdb61594df
Cleanup of main.[ch].
...
All file panels related stuff was moved to midnight.[ch].
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
08e9759283
Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
...
File src/cmddef.h now merged to lib/keybind.h
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:31 +03:00
Slava Zanko
62f3c368c9
Renamed keybind-related functions:
...
* lookup_action -> keybind_lookup_action
* lookup_keymap_shortcut -> keybind_lookup_keymap_shortcut
* lookup_keymap_command -> keybind_lookup_keymap_command
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Slava Zanko
045debaa8a
Moved charsets.[ch] from src to lib directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:31 +03:00
Andrew Borodin
71364f88c3
Split lib/widget/widget.[ch] and lib/widget/wtools.[ch] files
...
...into small: one widget in one file.
Renamed most if WInput functions.
Minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Andrew Borodin
8d1708225c
Don't include lib/util.h via lib/global.h.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:51:30 +03:00
Slava Zanko
8b018db98f
Some WIDGET-related stuff moved to lib/widget directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:30 +03:00
Slava Zanko
cb4bdfa00d
Code indentation in src/editor directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:51:29 +03:00
Slava Zanko
feb733663f
Code indentation in lib directory
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-11-24 10:27:20 +03:00
Andrew Borodin
4892044e71
Remove extra check before mc_search free() call.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-24 10:27:20 +03:00
Andrew Borodin
9a8ae90a49
Reimplemented search engine in editor.
...
Now search engines of editor and viewer use the identical algorithm.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:20:26 +03:00
Andrew Borodin
a80c9edb93
Ticket #2417 : incorrect charset conversion in editor search engine.
...
Initial step: type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:20:26 +03:00
Andrew Borodin
3e7d76eb13
Ticket #2197 : added new color for status bar
...
...and added missed colors for button bar.
Updated EN and RU man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-22 16:07:17 +03:00
Andrew Borodin
e8c35970ee
Ticket #2415 : keep active state of editor before final decision about quit.
...
The same fix is applied to viewer and diffviewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-20 12:57:38 +03:00
Andrew Borodin
4c40d57508
(edit_set_filename): expand tilde while setting file name.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin
8088fe9b66
Ticket #2398 : tilde is not treated as home directory in editor "Save As" dialog.
...
(edit_get_save_file_as): return file name with expanded tilde.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-11-01 13:54:39 +03:00
Andrew Borodin
51f28528f6
Ticket #1424 : install some files into /usr/share/mc instead of /etc/mc.
...
RPMLint shows the following warnings:
mc.i586: W: conffile-without-noreplace-flag /etc/mc/Syntax
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.lib
mc.i586: W: conffile-without-noreplace-flag /etc/mc/mc.charsets
First step: install Syntax into /usr/share/mc instead of /etc/mc.
This also fixes the impossibility of editing of system-wide Syntax file
in mcedit under root (menu Options->Syntax file->System Wide).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-19 18:15:37 +04:00
Andrew Borodin
e4105c1e72
Ticket #2324 : fix of syntax highlighting lost after manual change.
...
Also some type accuracy is provided.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-18 15:10:27 +04:00
Egmont Koblinger
aa9cb6d320
Ticket #2170 : Color collisions
...
Midnight Commander's color/skin engine often reuses the same color definition for multiple elements on the UI.
This unnecessarily limits the possibilities when playing with colors.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-13 13:21:10 +03:00
Andrew Borodin
7f119ffbbc
Ticket #1785 : fix of editor default color usage.
...
(this_try_alloc_color_pair): if foreground and background editor colors
are undefined in syntax, the NORMAL_COLOR is used. This is wrong.
EDITOR_NORMAL_COLOR mut be used instead.
(edit_status): cleanup: remove useless color change.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-10-06 12:15:45 +03:00
Ilia Maslakov
3013a364b0
Merge commit 'origin/2287_persistent_bookmarks'
...
* commit 'origin/2287_persistent_bookmarks':
Fix in lib/logging.c for proper work on 64-bit platforms.
Change of bookmark drawing.
Fixed memory leak: destroy serialization bookmarks if file position is not saved.
Use GArray for bookmarks instead of raw array.
Minor optimization, type accuracy, includes fix.
Ticket #2287 (mcedit: persistent bookmarks)
2010-09-28 18:33:53 +04:00
Ilia Maslakov
0c7f4c2494
Change of bookmark drawing.
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-28 14:12:32 +04:00
Andrew Borodin
34bee19937
Fixed memory leak: destroy serialization bookmarks if file position is not saved.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-28 14:12:28 +04:00
Andrew Borodin
ec8d6f0751
Get rid of some '#ifdef ENABLE_VFS' conditions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-27 21:44:20 +04:00
Andrew Borodin
ed18e2d093
Use GArray for bookmarks instead of raw array.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-17 17:13:10 +04:00
Andrew Borodin
3af16693e2
Minor optimization, type accuracy, includes fix.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-17 17:13:09 +04:00
Filip Sefrna
a4651d8d2b
Ticket #2287 (mcedit: persistent bookmarks)
...
Save bookmarks of internal edit in filepos
Signed-off-by: Filip Sefrna <fsefrna@gmail.com>
Type accuracy.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-09-17 17:13:09 +04:00
Andrew Borodin
37b49b3920
Ticket #2324 : fix of manually changing syntax definition.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-06 13:17:52 +04:00
Andrew Borodin
6598729ce5
Ticket #2320 : fixed regexp replacement in editor.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-06 13:08:21 +04:00
Andrew Borodin
62052016a5
Ticket #2311 : reimplementation of editor 'About' window.
...
mcedit version number and button are centered now in 'About' window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-09-03 19:37:20 +04:00
Andrew Borodin
4c505ff791
Ticket #2189 : use MC version as a version of MCEdit.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-30 19:12:08 +04:00
Andrew Borodin
11e335cdba
Minor cleanup of replace conversion functions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-19 21:05:21 +04:00
Andrew Borodin
49f70b5339
Ticket #2272 : fixed segfault in replace confirmation in editor.
...
Editor segfaults after pressing Skip or Cancel button in 'Confirm
replace' dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-19 21:05:21 +04:00
Andrew Borodin
7869478668
Improvements of QuickDialog engine.
...
Added capability to modify options of QuickWidget.
Added capability to use custom callback in QuickDialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-17 15:27:21 +04:00
Andrew Borodin
c8bd032113
Ticket #2035 : added "Toggle syntax highlighting" menu item.
...
Added "Toggle syntax highlighting" menu item.
Described C-s shortcut in mcedit man page.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-11 16:22:14 +04:00
Andrew Borodin
f660c97698
Ticket #2256 : changed focused button in editor quit dialog.
...
Now the focused button in editor quit dialog is "Cancel quit" as was
before 4.7.3 release. Button order stay as in 4.7.3 release.
Likewise for hex editor.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-08 19:54:12 +04:00
Ilia Maslakov
7dec7e5083
little optimization
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-07-05 14:56:58 +00:00
Ilia Maslakov
ad3cd6ae0c
Ticket #2153 (editor wrong copy/move selected text)
...
fixed incorrect calculate position start/end marked block,
after edit text in the area ahead marked text.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-07-05 14:56:57 +00:00
Andrew Borodin
59a85303a8
Optimization: don't process the replacement string very often.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-05 16:19:33 +04:00
Andrew Borodin
3e6491dcac
Fixups of replacement algorithm.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-05 16:19:33 +04:00
Andrew Borodin
cc975c8024
Fixed memory leak.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-05 16:19:33 +04:00
Andrew Borodin
d2aad0716b
Ticket #2231 : fixup of replacement algorithm in mcedit.
...
Type accuracy. Removed unused variables. Removed double assignment.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-07-05 16:19:33 +04:00
Andrew Borodin
9dfe1ed070
Ticket #2248 : mcedit: don't try set codepage again after file load.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-25 14:39:36 +04:00
Slava Zanko
48fe4e6881
Lock file is created and destroyed with full path.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:44:53 +04:00
Andrew Borodin
b2ee413f03
Allow use file locking in various components of MC.
...
Renamed and moved src/editor/editloc.[ch] -> lib/lock.[ch].
Renamed lock handling functions.
Fixed library order in src/Makefile.am.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-06-22 21:44:22 +04:00
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