Andrew Borodin
8024889126
Added type for MC viewer exit codes. Changed MC viewer run interface.
...
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
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
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
d37af446b7
Some optimization of viewer initialization.
...
Most of viewer initialization was moved to mcview_init() function
to rid of double initialization of mcview members.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-27 14:07:22 +04:00
Andrew Borodin
cc8a675ebb
Ticket #1838 : fix of broken charset autodetection.
...
First step: refactoring: unification of WTree and WInfo widget
constructions. Type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-27 14:07:22 +04:00
Slava Zanko
e3f7a0544b
Code cleanup for compile with -Werror option
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-26 10:17:04 +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
Slava Zanko
da26aa561f
Ticket #2195 : Crash on search in viewed file after Parsed/Raw switching
...
View (F3) some file.
Switch Raw->Parse or Parse->Raw (F8).
Search any text, contained in the file.
Crash!
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-21 21:50:46 +04:00
Andrew Borodin
2b167cbef0
Configuration dialogs reorganization.
...
Panel options are moved to new dialog.
Panel setup options are collected in a special structure.
Includes clean up.
Code indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-14 18:46:15 +04:00
Slava Zanko
cc1dbc7908
Fixed behavior after pressing PageDown at end of file
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-05-05 21:33:16 +03:00
Andrew Borodin
5b26c97961
Ticket #2135 : fix of jump to end of file in viewer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-05-05 21:33:16 +03: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
Ilia Maslakov
c8bfd2d992
Ticket #1734 (viewer: EOL, BOL movement not work in plain mode)
...
fixed EOL, BOL movement in plain mode.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-30 11:45:57 +04:00
Ilia Maslakov
86758ed198
Ticket #2005 (viewer: Text area is not updated in hex mode)
...
fixed: Text area is not updated in hex mode (in utf-8).
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-04-30 08:57:05 +04:00
Andrew Borodin
b0be11acd5
Merged tty_draw_double_box() function into tty_draw_box() one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Andrew Borodin
9a145a88ce
Added capability to draw single or double lines.
...
Fixed tty_print_alt_char() to draw single or double vertical
or horizintal lines.
Added argument to tty_print_one_hline() and tty_print_one_vline()
functions to draw single or double lines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Andrew Borodin
cc2f5670ec
Created new function: tty_draw_double_box().
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Sergei E. Ovsyannikov
d8fb069e85
Ticket #1648 : implemented single-line boxes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-04-06 10:30:58 +04:00
Andrew Borodin
69988b0395
Fixed memory leaks in viewer.
...
Free viewer resources before quit from viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 16:21:21 +04:00
Ilia Maslakov
7d0fb092a4
Ticket #2086 (viewer: incorrect scroll down/up in wrap mode)
...
fixed: scroll down/scroll up in wrap mode.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
fixed: scroll up in wrap mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-30 15:32:28 +04:00
Andrew Borodin
c5d2662f55
Applied MC indentation policy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-29 11:59:01 +04:00
Andrew Borodin
e30b37f522
Optimization of mcview_hexedit_save_changes() function.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 11:00:33 +03:00
Andrew Borodin
37f9ab495a
Type accuracy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 10:44:01 +03:00
Andrew Borodin
ce259bf65c
Optimization: removed superfluous actions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 10:38:47 +03:00
Andrew Borodin
79a91164c3
Ticket #2107 : viewer: enable left/right scrolling in wrap mode.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-03-25 10:30:57 +03:00
Slava Zanko
5610bfbb6c
Ticket #2091 : Superfluous "Search done, Continue from begining?" dialog
...
When searching from the top of the file for something that's not there we get
"Search done, Continue from begining?" dialog before "Search string not found"
(and only if we choose "Yes" in the first one).
This should happen only if the last position>0 (either the place when search
began, or some match before).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-03-19 11:13:57 +02:00
Andrew Borodin
0607f23691
Ticket #2067 : fixed toggle of ruler state.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-28 20:33:37 +03: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
Andrew Borodin
2eec76f8c5
Retain search options in viewer across viewing session.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-02-22 14:59:47 +03:00
Slava Zanko
9e2768be46
Ticket #1917 : again search in viewer
...
Added new confirm box for repeat search from begining of file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-15 17:17:27 +02:00
Slava Zanko
f9b956b483
Ticket #1996 : ViewContinueSearch segfault on empty search
...
Steps to reproduce:
1. F7,
2. set empty search string,
3. enter
4. n
5. enter
6. n
Fix issue: set view->last_search_string to NULL after call g_free()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-02-12 13:02:26 +02:00
Slava Zanko
9104ad78e1
src/viewer/display.c: added forgotten #include "src/charsets.h"
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00
Slava Zanko
25155c311a
Move all interface includes from subdirs lib/*/*.h into lib/*.h
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:25 +02:00
Slava Zanko
cd4dbf3a09
Changes for build after moving strutil into lib
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:24 +02:00
Slava Zanko
c764f3b84c
Changes for build after moving util.[ch]
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:24 +02:00
Slava Zanko
93dbc46e9c
Reorganization of sources. Part 1.
...
* moved src/global.h into lib/global.h
* moved glibcompat.[ch] from ./src/ into ./lib/
* moved fs.h from ./src/ into ./lib/
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:23 +02:00
Slava Zanko
39d5b94cac
Reorganized pathes to files in '#include' directives
2010-01-26 10:30:22 +02:00
Slava Zanko
ddb9ada2e8
Changes in sources matched with mass movement of $(srcdir)/src/*/ into $(srcdir)/lib/*/
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:22 +02:00
Slava Zanko
43805741aa
Changes in sources matched with movement of $(srcdir)/vfs into $(srcdir)/lib/vfs/mc-vfs
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:21 +02:00
Ilia Maslakov
1eeffc2803
added new parameter mcview_eof into ini-file
...
if mcview_eof defined show mcview_eof as EOF
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:30 +00:00
Ilia Maslakov
8e68c5614a
added procedure mcview_update_filesize,
...
now mcview reread the file size before goto bottom the file.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:30 +00:00
Andrew Borodin
4197af0048
Optimization of viewer screen content update.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-19 19:15:29 +00:00
Nikita Ofitserov
efb28521f5
Fixed left/right movement in hex mode
...
Signed-off-by: Nikita Ofitserov <himikof@gmail.com>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-19 19:15:29 +00:00
Andrew Borodin
a617e68090
Fixed viewer button bar.
...
Set F5 button label ("Goto") the same for plain and hex modes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-01-19 19:15:29 +00:00