Commit Graph

8842 Commits

Author SHA1 Message Date
Andrew Borodin 43537b0e00 Merge branch '1564_mouse_wheel_menus_listbox'
* 1564_mouse_wheel_menus_listbox:
  Implemented mouse wheel support for WListbox widget.
  Modified mouse event handling in menu.
  Ignore mouse wheel events for inactive panel.
  Some optimization of mouse handling in editor.
  Call menu using mouse for all panel types.
  Fixed smooth scrolling of split panels.
  Modified mouse initialization.
  Mouse wheel events hack.
  Smooth scrolling in file panel.
  If menu is inactive, ignore mouse wheel events.
  Fixed mouse event boundaries in menus.
  Don't close menu by mouse wheel outside the menu area.
  Ticket #1564: mouse wheel support for menus and listboxes.
2009-09-14 15:12:26 +04:00
Andrew Borodin 1f0b05b182 Implemented mouse wheel support for WListbox widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin ae3a14ae0e Modified mouse event handling in menu.
Fixed event boundaries: menu frame is in event aria now.

Middle click is used to execute selected menu item independently
of mouse cursor position.

Minor optimization.

Indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin 64f5497b67 Ignore mouse wheel events for inactive panel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin 2ae441dde6 Some optimization of mouse handling in editor. 2009-09-14 15:11:59 +04:00
Andrew Borodin 15354fdbb4 Call menu using mouse for all panel types.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin aa601f831b Fixed smooth scrolling of split panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin c6ff13821d Modified mouse initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin 62378d71d7 Mouse wheel events hack.
Don't generate 'Button up' event after wheel events.
Need for menu evemnt handling.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
David Martin a252136766 Smooth scrolling in file panel.
If listing panels is operated with the mouse wheel, when window is
at top or bottom of the list, then selection "jumps" to first/last item.
Now it smoother: keep window and decrease/increase selection in
single steps.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin 07f237782b If menu is inactive, ignore mouse wheel events.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin a14574d037 Fixed mouse event boundaries in menus.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin c2f37224c5 Don't close menu by mouse wheel outside the menu area.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Andrew Borodin 7c5407e86e Ticket #1564: mouse wheel support for menus and listboxes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 15:11:59 +04:00
Slava Zanko c66f62045d Merge branch '1597_fix_stale_link'
* 1597_fix_stale_link:
  Ticket #1597: panel: restore red hilight for broken symlinks
2009-09-14 12:49:05 +03:00
Slava Zanko edab903a19 Ticket #1597: panel: restore red hilight for broken symlinks
Fix for restore highlighting of stale links.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-14 12:48:50 +03:00
Andrew Borodin 8c5fdee5c2 Merge branch '1575_quick_radio_i18n'
* 1575_quick_radio_i18n:
  Ticket #1575: applied i18n for radiobuttons in QuickDialog.
2009-09-14 13:26:24 +04:00
Andrew Borodin 83a0670283 Ticket #1575: applied i18n for radiobuttons in QuickDialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 13:25:28 +04:00
Andrew Borodin 3d269733b8 Merge branch '1538_overwrite_target_file_dialog'
* 1538_overwrite_target_file_dialog:
  Modified overwrite query dialog.
  Ticket #1538: redesign of overwrite query dialog.
2009-09-14 12:54:28 +04:00
Andrew Borodin 5159a50992 Modified overwrite query dialog.
Renamed function. Move rd_widgets from file scope to function one.
Fixed i18n stuff.
Updated RU translation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 12:53:16 +04:00
Andrew Borodin ae313482e6 Ticket #1538: redesign of overwrite query dialog.
Modified main text in overwrite query dialog.
Trancated the target file name less.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 12:53:16 +04:00
Andrew Borodin cb78d61a27 Merge branch '1583_ctrl_o_under_screen'
* 1583_ctrl_o_under_screen:
  Ticket #1583: fixed Ctrl-O handling under GNU Screen in altscreen mode.
2009-09-14 11:55:00 +04:00
Andrew Borodin ea73b28b45 Ticket #1583: fixed Ctrl-O handling under GNU Screen in altscreen mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-14 11:54:30 +04:00
Sergei Trofimovich 5108664ce3 syntax/sh.syntax (part2): trivial: highlight 'unset', 'read', 'export' as keywords
Synced mentioned in 9dda06f489 keywords to other contexts.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-09-11 23:06:21 +03:00
Sergei Trofimovich 9dda06f489 syntax/sh.syntax: trivial: highlight 'unset', 'read', 'export' as keywords
References:
  http://opengroup.org/onlinepubs/009695399/utilities/export.html
  http://opengroup.org/onlinepubs/009695399/utilities/unset.html
  http://opengroup.org/onlinepubs/009695399/utilities/read.html

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-09-11 22:42:16 +03:00
Stan. S. Krupoderov 956d356a01 Ticket #1580: mc segfaults when you try to use non-anonymous FTP
wtools.c: change widget text vaulue in case of INPUT_PASSWORD special value

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-09 16:12:42 +04:00
karesmakro f3663e0792 Ticket #1592: gzup error in mc.menu
mc.menu: fix command name

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-09 15:57:31 +04:00
Stan. S. Krupoderov e05778a4e4 Ticket #1580: mc segfaults when you try to use non-anonymous FTP
wtools.c: fix init of def_text for INPUT_PASSWORD special value

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-07 18:45:15 +04:00
Ilia Maslakov a59d6f6ff0 Merge branch '1556_findall'
* 1556_findall:
  Fixed i18n of editor search dialog.
  Ticket #1556 (editor search: button 'Find all')
2009-09-07 13:12:38 +00:00
Andrew Borodin c00900472e Fixed i18n of editor search dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-07 13:06:11 +00:00
Ilia Maslakov 9e5fb208a9 Ticket #1556 (editor search: button 'Find all')
* add new button 'Find all' into Search dialog. Bookmarks all founded entries.
    * fix: search dialog (buttons are positioned dynamically)
    * some optimisation of usability.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-07 13:06:04 +00:00
Andrew Borodin ebb5d71e4f Merge branch '1589_verilog'
* 1589_verilog:
  Ticket #1589: syntax highlighting for VerilogHDL.
2009-09-07 15:50:45 +04:00
Andrew Borodin d3174044bd Ticket #1589: syntax highlighting for VerilogHDL.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-07 15:50:21 +04:00
Andrew Borodin 47bc01dea1 Merge branch '59_filesize_full_precision'
* 59_filesize_full_precision:
  Ticket #59: display file size in full precision.
2009-09-07 15:34:55 +04:00
Andrew Borodin f559aeb6b9 Ticket #59: display file size in full precision.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-07 15:34:41 +04:00
Ilia Maslakov a301a7c8a5 Merge branch '1497_stickchars'
* 1497_stickchars:
  add info into mc.1 the man page.
  refatoring: move init of tty lines drawing onto separate function
  Ticket #1497 (stickchars)
2009-09-07 10:18:31 +00:00
Ilia Maslakov 1b9eafdb62 add info into mc.1 the man page.
Update man file, describe -s option.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-07 10:17:28 +00:00
Slava Zanko c1c8671370 refatoring: move init of tty lines drawing onto separate function
Refactoring: transform integer variables into list of integers.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-07 10:17:27 +00:00
Ilia Maslakov 465d4d2cc5 Ticket #1497 (stickchars)
add frm_* vars
    read frame lines from ini
[Lines]
lefttop
righttop
centertop
centerbottom
leftbottom
rightbottom
leftmiddle
rightmiddle
centermiddle
horiz
vert
thinhoriz
thinvert

    fix draw frames in stickchar mode

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-07 10:17:27 +00:00
Slava Zanko 5a8923e44d Merge branch '418_post_fixies'
* 418_post_fixies:
  Update mc.man for describe filenames highlighting.
  Remove description related to filenames highlight from command-line help
  Ticket #418. Post-fixies
2009-09-05 13:07:14 +03:00
Slava Zanko b079cae46f Update mc.man for describe filenames highlighting.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-05 13:06:55 +03:00
Slava Zanko 462cb0bf27 Remove description related to filenames highlight from command-line help
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-05 13:06:54 +03:00
Slava Zanko 1c07f8bc9b Ticket #418. Post-fixies
Added filehighlight.ini into RPM spec-file.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-05 13:06:54 +03:00
Andrew Borodin 927a5318c3 Merge branch '1582_repaint_screen'
* 1582_repaint_screen:
  Ticket #1582: fixed screen flickering on updates.
2009-09-05 12:31:51 +04:00
Andrew Borodin e3684f3379 Ticket #1582: fixed screen flickering on updates.
Partial revert of 4e40f6e98f.
Don't call tty_touch_screen() for each screen repaint.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-04 11:35:54 +04:00
Stan. S. Krupoderov ee10da919d Ticket #1479: Copy/Move dialogs steal Kill Word shortcut
filegui.c: change dive into subdir shortcut, a-d - kill word

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-03 14:47:27 +04:00
Slava Zanko dff795cc77 Merge branch '418_file_coloring'
* 418_file_coloring:
  Add menu entry for editing filehighlight.ini (Rules for filenames highlighting)
  Ticket #418: File coloring
2009-09-03 13:14:26 +03:00
Ilia Maslakov 86d8c89f6a Add menu entry for editing filehighlight.ini (Rules for filenames highlighting)
Signed-off-by: Ilia Maslakov <il.smind@google.com>

Some fixies after patch of Ilia Maslakov.
* Fixed pathes to rules-highlight files.
* Added on-fly refresh of rules after editing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-03 13:12:48 +03:00
Slava Zanko 4afc04eedc Ticket #418: File coloring
Added support of filenames highlighting in panels.

Now rules of highlighting described into external file filehighlight.ini
Number of highlight rules is unlimited (in opposite to X-Stranger patch).

Highlight will made by:
 * file type (directory, regular, symlink, special device etc.)
 * extensions of filenames (ends of filenames)
 * regular expressions

Big thanks to X-Stranger <x@linux.by> for idea
and to Alexey Kaminsky <alexeykaminsky@gmail.com> for testing.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-03 13:12:17 +03:00
Andrew Borodin bf7b330f34 Merge branch 'DEV_quick_widget'
* DEV_quick_widget:
  Fixed segfault in editor options dialog.
  Fixed radiobutton label for Macintosh line break.
  Ticket #1562: simplfication API of QuickDialog.
2009-09-03 11:41:16 +04:00