Integrated 'Multicolored Procedure List' in IDE

Working on new editor enhancements?
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Integrated 'Multicolored Procedure List' in IDE

Post by ChrisR »

Hi Peter
Thank you for adapting the icons, feel free to change or modify them.

I don't know what you think about it but I think it would be more logical to have:

Code: Select all

EnableFolding         = Enable automatic unfolding of the procedure after the click
rather than the reverse

Code: Select all

DisableUnfolding      = Disable automatic unfolding of the procedure after the click

If you want to take a look, i prepared a package changing DisableUnfolding to EnableFolding for constants, variables, If, catalogs, be free to take it or not.
PB-IDE-v612-Code-MulticoloredProcedureList_Mod.zip (based on your last package)

And I think it's good enough and useful to enable it by default:

Code: Select all

  ProcedureMulticolor = ReadPreferenceLong  ("Multicolor", 1) ; PeDre
  
  ProcedureBrowserHideModuleName = ReadPreferenceLong("HideModuleName", 1) ; PeDre
  ProcedureBrowserHighlightProcedure = ReadPreferenceLong("HighlightProcedure", 1) ; PeDre
  ProcedureBrowserHighlightTimer = ReadPreferenceLong("HighlightTimer", 1000) ; PeDre
  ProcedureBrowserScrollProcedure = ReadPreferenceLong("ScrollProcedure", 1) ; PeDre
  ProcedureBrowserEnableFolding = ReadPreferenceLong("EnableFolding", 1) ; PeDre
  ProcedureBrowserSwitchButtons = ReadPreferenceLong("SwitchButtons", 0) ; PeDre

With the pleasure of seeing AZJIO take part, I've also added the Russian language catalogs
I took the translations here PureBasic_6.10_Rus.zip @AZJIO why isn't it integrated natively, it looks good ?
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Integrated 'Multicolored Procedure List' in IDE

Post by AZJIO »

ChrisR wrote: Wed Oct 02, 2024 1:38 pm it looks good ?
Yes, it looks great (Author User_russian).
ChrisR wrote: Wed Oct 02, 2024 1:38 pm why isn't it integrated natively
This is a question for Fred

I added arrows down and up for clarity
Image
PeDe
Enthusiast
Enthusiast
Posts: 278
Joined: Sun Nov 26, 2017 3:13 pm

Re: Integrated 'Multicolored Procedure List' in IDE

Post by PeDe »

Hello ChrisR,

I have adopted your suggestion and updated the code ZIP archive, also with your directory structure.
In your Language.pb you forgot to change "Enable automatic folding ..." to 'unfolding'.

I have not adopted the line with ResetList(AvailablePanelTools()), this should be changed in the right place.
Otherwise the next extension will come and someone will do the same for their extension.

EDIT: Code ZIP archive updated, removed 'DebugView...' lines.

Peter
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Integrated 'Multicolored Procedure List' in IDE

Post by AZJIO »

You can play with colors for a black theme

Code: Select all

1 = 15314499,-1,●
2 = 7515584,-1,├
3 = 8421631,-1,┌
4 = 8421631,-1,└
5 = 14588378,-1,#
6 = 16750848,-1,blue
7 = 8421631,-1,red
8 = 7393267,-1,yellow is bright
9 = 12304896,-1,turquoise
10 = 14588378,-1,purple
11 = 7515584,-1,yellow is standard 72ADC0
12 = 11456253,-1,light blue $AECEFD
13 = 16633518,-1,light red $FDCEAE
14 = 11790255,-1,light green $B3E7AF
15 = 15314499,-1,blue keyword $E9AE43
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Integrated 'Multicolored Procedure List' in IDE

Post by ChrisR »

PeDe wrote: Wed Oct 02, 2024 3:17 pm Code ZIP archive updated
That's perfect, you look ready for git's joys and nightmares :)
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Integrated 'Multicolored Procedure List' in IDE

Post by AZJIO »

I tried my icons in real conditions. mc_.zip
Copy icons to SilkTheme_PBMC.zip archive.

By the way, you need to make mc_enablefolding.png, apparently it has an old name in the code.
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Integrated 'Multicolored Procedure List' in IDE

Post by ChrisR »

It works well here with SilkTheme_PBMC.zip, maybe check if in Theme.prefs you have

Code: Select all

[ProcedureBrowser]
EnableFolding      = mc_enablefolding.png

Image
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: Integrated 'Multicolored Procedure List' in IDE

Post by AZJIO »

ChrisR wrote: Wed Oct 02, 2024 6:18 pm It works well here with SilkTheme_PBMC.zip, maybe check if in Theme.prefs you have
Yes, there is, I checked that right away.

The archive PB-IDE-v612-Code-MulticoloredProcedureList.zip has an error in SilkTheme_PBMC.zip
The file in SilkTheme_PBMC.zip in the archive PB-v612-MulticolorProcedureList.zip is working.

I was just confused, I checked Theme.prefs from the correct archive, but repacked SilkTheme_PBMC.zip from the wrong one. Yes, there is a difference in one line.

There PureBasic.exe is old with mc_disableunfolding
PeDe
Enthusiast
Enthusiast
Posts: 278
Joined: Sun Nov 26, 2017 3:13 pm

Re: Integrated 'Multicolored Procedure List' in IDE

Post by PeDe »

Sorry if something was wrong. I have recompiled the IDEs and updated the ZIP archives.

EDIT: Code ZIP archive updated, removed 'DebugView...' lines, again.

Peter
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Integrated 'Multicolored Procedure List' in IDE

Post by ChrisR »

Hello Peter,
The multicolor icons for the default theme are missing.
Starting from the new SilkTheme icons, I created the same new icons for the default theme, adapting the colors to Kale's theme.
And I made a few small adjustments for SilkTheme, color, filterclear icon same as the “kill program” toolbar icon...

They are in the right IDE folder: \PureBasicIDE\data\DefaultTheme & \PureBasicIDE\data\SilkTheme, ready to be packed by MakeWindows.cmd
I also converted the Russian ciryllic catalogs to UTF-8+Bom

PB-IDE-v612-Code-MulticoloredProcedureList_mod.zip

Image
PeDe
Enthusiast
Enthusiast
Posts: 278
Joined: Sun Nov 26, 2017 3:13 pm

Re: Integrated 'Multicolored Procedure List' in IDE

Post by PeDe »

Hello ChrisR,

Thanks for the icons and changes.

I have transferred all changes to a local git project. I did the fork etc. according to the instructions, everything worked.
But a push to my fork does not work. There is a security query or login that does not work. Possibly it has to do with Windows 7 and the SSL/TLS version, I don't think TLS 1.3 is supported, if that is needed.

Peter

Code: Select all

PeDre@WIN7HOME MINGW64 /git/purebasic (multicolor-proclist)
$ git push -u origin HEAD
fatal: Fehler beim Senden der Anforderung.
fatal: Die Anfrage wurde abgebrochen: Es konnte kein geschützter SSL/TLS-Kanal erstellt werden..
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Dreisiebner/purebasic/'

PeDre@WIN7HOME MINGW64 /git/purebasic (multicolor-proclist)
$ git push -u origin HEAD
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Dreisiebner/purebasic/'

User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Integrated 'Multicolored Procedure List' in IDE

Post by ChrisR »

The beginning of Git joys :wink:
See this stackoverflow subject support for password authentication was removed
or maybe you can use GitHub Desktop
PeDe
Enthusiast
Enthusiast
Posts: 278
Joined: Sun Nov 26, 2017 3:13 pm

Re: Integrated 'Multicolored Procedure List' in IDE

Post by PeDe »

Hello ChrisR,

Thanks for the stackoverflow link, that worked. I was able to transfer my changes.
I have not yet made a pull request.

Peter
PeDe
Enthusiast
Enthusiast
Posts: 278
Joined: Sun Nov 26, 2017 3:13 pm

Re: Integrated 'Multicolored Procedure List' in IDE

Post by PeDe »

I had forgotten to insert the new text for English in '\Documentation\Catalogs\Editor.catalog', and there was a typo in the Italian file.

I have compiled the IDE from my changes in the fork. The icons for the Default- and SilkTheme are present, and the 'Multicolored Procedure List' works. I assume the catalog files are added in the PureBasic-Setup.exe, because I had to copy them manually.

Apart from ChrisR and AZJIO, there has been no feedback, not even in the German forum.
The Mac version is completely untested, but the code is identical to the Windows code except for the Ctrl and Shift key query.

The changes are here on GitHub:

Code: Select all

https://github.com/Dreisiebner/purebasic/tree/multicolor-proclist
Peter
Post Reply