Commit Graph

8764 Commits

Author SHA1 Message Date
Andrew Borodin 5da55ec14e Ticket #1565 (incorrect draw menu)
fix: now used correct color for draw menu frames

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-26 09:19:44 +00:00
Ilia Maslakov b1546095ca Ticket #1530 (Tricky format in view.c not suitable for i18n)
fix: dialog label string

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-25 12:47:51 +00:00
Slava Zanko 2cc424decc Merge branch '1548_renamed_no_po_to_nb_po'
* 1548_renamed_no_po_to_nb_po:
  Ticket #1548: no.po is Norwegian Bokmål which have 'nb' lang code
2009-08-25 13:38:23 +03:00
Arkadiusz Miśkiewicz 37fcb4e18a Ticket #1548: no.po is Norwegian Bokmål which have 'nb' lang code
Rename no.po to nb.po to reflect its content.
2009-08-25 13:20:01 +03:00
Slava Zanko cb8f9bf122 Update all translate files. Alsom convert some files into UTF-8 charset 2009-08-25 12:58:42 +03:00
Patrick Winnertz fd78a720b4 updated the po files with update.sh and set team mail address to the mail addresses used in debian for translations
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-25 12:49:02 +03:00
Slava Zanko 5257a79847 Merge branch 'DEV_mcview2'
* DEV_mcview2: (27 commits)
  Implemented interruptable long-distance movements.
  fix: <no translation> behaviour
  Change prototype of mcview_get_byte() function (and al related functions)
  fix: uninitialized variables
  fix: header paths
  Added missed includes. Fixed OFFSETTYPE_MAX calculation.
  Cleanup of code. Indentation.
  Ticket #1530
  * add 'Whole words' option into the viewer 'Search' dialog
  Added functions for work with nroff'ed text. Added search across nroff'ed text
  Fixies with search in HEX mode view:
  Search in plain text (not nroff'ed) now worked.
  Cleanup of code. Reidentation.
  Ticket #1431 (Missing translation in view.c ButtonBar?)
  Avoid warning 'format not a string literal and no format arguments'.
  Fixed memory leak after geting list of search types.
  Move search dialog from actions_cmd.c into dialogs.c
  Changes for correctly work after rebase to master (master with HACK_tty).
  fix: draw nroff text
  Move inline functions from internal.h into new file inlines.h
  ...
2009-08-25 11:52:23 +03:00
Andrew Borodin 8b8f7defb7 Implemented interruptable long-distance movements.
There a lot of time required to move to the end of large
binary file. Now such movement can be interrupted by
Ctrl-C key.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-25 12:17:20 +04:00
Ilia Maslakov a799ef4329 fix: <no translation> behaviour
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-25 11:09:57 +03:00
Slava Zanko 459ef0665f Change prototype of mcview_get_byte() function (and al related functions)
from

int mcview_get_byte (mcview_t *, off_t)

into

gboolean mcview_get_byte (mcview_t, off_t, int *)

Now splitted return code(success/fail) and readed value from datasource value.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-25 11:09:42 +03:00
Ilia Maslakov dc15da9572 fix: uninitialized variables
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-25 05:33:18 +00:00
Ilia Maslakov 2a207ccabd fix: header paths
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-25 05:22:19 +00:00
Andrew Borodin a75161aed8 Added missed includes. Fixed OFFSETTYPE_MAX calculation.
Use CHAR_BIT constant instead of hardcoded 8 for char size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-25 09:01:07 +04:00
Slava Zanko ac11bedf24 Cleanup of code. Indentation.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-25 01:41:31 +03:00
David Martin d41e57a673 Ticket #1530
build format string in runtime, not preprocessor

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-24 19:44:16 +00:00
Ilia Maslakov 7ff7368c5d * add 'Whole words' option into the viewer 'Search' dialog
related  Ticket #1487
    * fix: some warnings

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-24 19:31:31 +00:00
Slava Zanko e9b1a18b96 Added functions for work with nroff'ed text. Added search across nroff'ed text
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:44 +00:00
Slava Zanko 1828ebd9a8 Fixies with search in HEX mode view:
* Fixed highlight area of searched text
 * Fixed cursor position after search

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:44 +00:00
Slava Zanko 74b94cd1f7 Search in plain text (not nroff'ed) now worked.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:43 +00:00
Slava Zanko fe399ab039 Cleanup of code. Reidentation.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:43 +00:00
Slava Zanko 1442f34838 Ticket #1431 (Missing translation in view.c ButtonBar?)
Fixed bug.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:43 +00:00
Mikhail S. Pobolovets a52ba95680 Avoid warning 'format not a string literal and no format arguments'.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:43 +00:00
Slava Zanko 682434b0db Fixed memory leak after geting list of search types.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:42 +00:00
Slava Zanko 10e5730255 Move search dialog from actions_cmd.c into dialogs.c
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:42 +00:00
Slava Zanko 0498a346b5 Changes for correctly work after rebase to master (master with HACK_tty).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:42 +00:00
Ilia Maslakov bb7cbfe0db fix: draw nroff text 2009-08-24 16:26:41 +00:00
Slava Zanko b119f489ab Move inline functions from internal.h into new file inlines.h
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:41 +00:00
Ilia Maslakov c148f8e055 fix: draw text in utf mode
fix: right movement in HEX
2009-08-24 16:26:41 +00:00
Slava Zanko b06ab0fe72 Split src/view.c into small files for better support of code
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 16:26:41 +00:00
Slava Zanko ec0c0e3050 Just refactoring. All functions in src/view.c now have mcview_ prefix 2009-08-24 16:20:53 +00:00
Ilia Maslakov 8f143bdddf fix: hex mode show 2009-08-24 16:20:52 +00:00
Ilia Maslakov eb9a251dcc add: some utf8 procedures:
* get_ptr_file (WView *view, offset_type byte_index)
    * get_ptr_string (WView *view, offset_type byte_index)
    * get_ptr_growing_buffer (WView *view, offset_type byte_index)
    * get_utf (WView *view, offset_type byte_index, int *char_width)

    add: property 'utf' in the struct Wview

    Signed-off-by: Slava Zanko <slavazanko@gmail.com>
    Added temlate for splitting src/view.c into lot of
    smalest files (for better development and supporting).
2009-08-24 16:20:52 +00:00
Andrew Borodin a83739a910 view.c: made compilable.
Search and recording don't work.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 16:20:52 +00:00
Andrew Borodin ffac3ab7a9 Viewer: version from mc-4.6.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 16:20:51 +00:00
Slava Zanko d620bf4ab6 Merge branch '1477_incorrect_detection_compressed_patchfs'
* 1477_incorrect_detection_compressed_patchfs:
  Ticket #1477: incorrect detection of compressed patchfs
2009-08-24 17:53:29 +03:00
Daniel Borca ad42905ecf Ticket #1477: incorrect detection of compressed patchfs
UseCase:
 * rename any patch file into patch_file.lzma_tar.patch.gz for example
 * try to enter into renamed file (press Enter key on a file in panel)
 * You'll see error message 'sh: lzma: command not found'

Fix issue:
 * Add -b key into call of 'file' utility (to avoid filename in output)
 * better parse 'file -b' output

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 17:41:36 +03:00
Slava Zanko d5167d0e6f Merge branch '1543_file_content_case_insensitive_regex_search'
* 1543_file_content_case_insensitive_regex_search:
  Ticket #1543: Case-insensitive regex search with [^ranges] does not work correctly
2009-08-24 15:01:46 +03:00
Slava Zanko 7dd9fdd505 Ticket #1543: Case-insensitive regex search with [^ranges] does not work correctly
Fixed Case-isentetive search with [ranges].

Reason of bug:

content_pattern was initialized via str_create_search_needle() function (from src/strutils.c)
This function convert string to lowercase if case_sentitive is off. Therefore string
'some_string[^a-zA-Z]' was transform into 'some_string[^a-za-z]'

Fix issue:

replace call of str_create_search_needle() function to g_strdup()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-24 15:00:53 +03:00
Ilia Maslakov b819359535 Ticket #1558 (Search backwards behaves erratically)
fix: backward search. When the cursor set on the begin of the word,
         search found this word, but should not.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-24 07:04:52 +00:00
Ilia Maslakov 7e13f0a5c1 edit/editdraw.c: removed unused variable
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-24 09:31:26 +04:00
Sergei Trofimovich 67d5824320 src/widget.c: sanitized sprinkled 'const' qualifiers
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-24 09:31:26 +04:00
Sergei Trofimovich 5f5d3b8caf src/tty/: sanitized sprinkled 'const' qualifiers
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-24 09:31:26 +04:00
Sergei Trofimovich b933da347e vfs/fish.c: removed unused variable
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-24 09:31:26 +04:00
Andrew Borodin 179e516c2a VFS: moved vfs_translate_url() declaration to the public scope.
Fixed missed includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 09:31:26 +04:00
Andrew Borodin 510265b41c Fixed compiling warnings.
src/tty/key.c (get_modifier): comparison between pointer and integer
src/tty/win.c: missed #include <stdlib.h>
src/dialog.c (add_widget): control reaches end of non-void function
src/widget.c: missed #include "layout.h"

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 09:31:26 +04:00
Andrew Borodin 6ff684c8ce Merge branch '1555_help_buttonbar_draw'
* 1555_help_buttonbar_draw:
  Ticket #1555: draw buttonbar of help dialog.
2009-08-24 09:21:55 +04:00
Andrew Borodin 25ab169f45 Ticket #1555: draw buttonbar of help dialog.
Fixed Help window to be resizable.
Fixed draw of Help button bar.
Moved WButtonBar widget from dialog.c to dialog.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-24 09:21:37 +04:00
Ilia Maslakov 9b86ff4530 Merge branch '1487_whole_words'
* 1487_whole_words:
  add "Whole words" into man page.
  Ticket #1487 (Whole words search)
2009-08-23 14:43:05 +00:00
Ilia Maslakov 358871ef0c add "Whole words" into man page.
add "Whole words" into the russian man.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-23 14:40:04 +00:00
Ilia Maslakov 156b79609c Ticket #1487 (Whole words search)
thanx Daniel Borca <dborca@yahoo.com> for the patch

    * fix special_chars in regex.c
    * add whole_words into mc_search_struct
    * add 'Whole words' into 'Search', 'Replace' 'File find' dialogs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-22 11:24:00 +00:00