This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CudaLister (source code viewer)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Thu Oct 19, 2017 1:11 am    Post subject: CudaLister (source code viewer) Reply with quote

Plugin to view source codes with syntax highlight.
http://totalcmd.net/plugring/CudaLister.html

In readme.txt you'll find some help.
Based on CudaText editor.
_________________
UniViewer - Log Viewer - CudaLister


Last edited by Alextp on Fri Oct 20, 2017 4:51 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Thu Oct 19, 2017 2:53 am    Post subject: Reply with quote

2017.10.19
+ context menu item "Options dialog"
+ context menu item "Go to"
+ context menu item "Read-only" and ask to save if file modified
+ statusbar field "encoding" and encoding menu
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34622
Location: Switzerland

PostPosted: Thu Oct 19, 2017 4:36 am    Post subject: Reply with quote

The reported crash isn't in TC itself, it's in Lazarus class library:

---------------------------
$0000000000404B6D
$0000000000431308 GETLONGHINT, line 2012 of forms.pp
$000000000043E721 TAPPLICATION__UPDATEMOUSEHINT, line 484 of ./include/application.inc
$000000000043E436 TAPPLICATION__IDLE, line 404 of ./include/application.inc
$000000000044040C TAPPLICATION__HANDLEMESSAGE, line 1285 of ./include/application.inc
$0000000000440881 TAPPLICATION__RUNLOOP, line 1417 of ./include/application.inc
$000000000078CDCC TWIDGETSET__APPRUN, line 60 of ./include/interfacebase.inc
$0000000000440827 TAPPLICATION__RUN, line 1405 of ./include/application.inc
$0000000000404895 main, line 305 of TOTALCMD.lpr

---------------------------

line 2012 of forms.pp is:

function GetLongHint(const Hint: string): string;
var
I: Integer;
begin
I := Pos('|', Hint);
if I = 0 then
Result := Hint else
here==> Result := Copy(Hint, I + 1, Maxint);
end;
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Thu Oct 19, 2017 8:04 am    Post subject: Reply with quote

Thanks. i may try workaround it. About 2nd crash: pls see, why TC crashes in x64 CudaLister, if I do context menu-> Options.
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Thu Oct 19, 2017 10:34 am    Post subject: Reply with quote

Maybe idea how to fix it:
disable any hint accesing for controls in all plugins.
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Fri Oct 20, 2017 4:50 am    Post subject: Reply with quote

Update
- Esc closes window
- react to lister's "wrap text", "copy", "select all"
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
iana
Senior Member
Senior Member


Joined: 27 Jul 2010
Posts: 309

PostPosted: Fri Oct 20, 2017 11:35 pm    Post subject: Reply with quote

this might be the bug you wore discussing above I get a crash accessing the "Options dialog" in 64bit TC works fine in 32bit using CudaLister 1.0.2 from
http://totalcmd.net/plugring/CudaLister.html

ps. tanks a lot for a 64bit lister plugin it was really needed
Back to top
View user's profile Send private message
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Sat Oct 21, 2017 2:14 am    Post subject: Reply with quote

@ghisler,
About report above (OPtions dlg crash): can you see it, please? I don't see crash report window.
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Mon Oct 23, 2017 3:31 am    Post subject: Reply with quote

Update

+ reaction to keys 1..7 N P (W don't work, dunno why)
+ reaction to search in Lister: F7/F5/F3
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34622
Location: Switzerland

PostPosted: Mon Oct 23, 2017 3:47 am    Post subject: Reply with quote

2Alextp
The error seems to occur in ComboBoxWindowProc in Win32WSStdCtrls.

Apparently Lazarus assumes that this dialog is its own, and tries to subclass the Combobox.

Can you try to create a settings dialog without a Combobox control, just for testing?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Mon Oct 23, 2017 4:20 am    Post subject: Reply with quote

W/out combobox: no crash here.
I need combobox for n options for future. Can you fix it in your Lazarus?
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34622
Location: Switzerland

PostPosted: Mon Oct 23, 2017 4:28 am    Post subject: Reply with quote

No I can't. Why not use an edit box combined with a popup menu?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Mon Oct 23, 2017 5:09 am    Post subject: Reply with quote

Changed combobox to radiobtn.
crash fixed. Update on totalcmd.net.

Other crash remains:
on dragging selection by mouse to bottom.
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
hi5
Member
Member


Joined: 03 Nov 2012
Posts: 139

PostPosted: Tue Oct 24, 2017 10:19 am    Post subject: Reply with quote

Nice plugin.

One comment:
Ctrl+Q opens the Quick view in the opposite panel of course, it loads Cudalister just fine - cudalister is active with the caret and you can scroll the document. With normal lister and other plugins pressing Ctrl+Q again simply closes the Quick view, here I have to press Ctrl+Q twice it seems, first time it goes back to the other panel and only when I press Ctrl+Q again it closes the Quick view. I would prefer it to close the Quick view the first time already.

If this is by design perhaps it can be made a configuration option?

Also see Issue #1 - AutoHotkey
Back to top
View user's profile Send private message Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2320
Location: Russian Federation

PostPosted: Tue Oct 24, 2017 11:13 am    Post subject: Reply with quote

Cannot reproduce focusing of quickview in Cudalister.
both x32/x64, they don't get focus if opened in quickview mode.
it is ok. so you clicked Cudalister. then yes, Ctrl+Q don't close plugin.
_________________
UniViewer - Log Viewer - CudaLister
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group