Add setting to toggle display of one or two file managers in Probe Basic

More
17 Apr 2024 07:46 #298414 by Unlogic
I recently came across this video on YouTube where author has modified the ProbeBasic UI to hide one of the two file managers.



Gave this some thought and I realize that their are two distinct use cases for the File tab in ProbeBasic.

The use case which ProbeBasic currently seems to be designed for is the use of USB-drives and similar physical media to copy the files to and from the CNC machine in question. In this case two file managers is great as it simplifies the copying/moving of files.

The second use case is when a network share is used to load the files from. In this case the second file manager is of no use as no files are copied or moved. In this case having one larger file manager instead is very helpful as it allows for more information to be displayed.

There is no right or wrong here as both use cases are valid and fairly common. But maybe a configuration setting could added to toggle the display of one or two file managers?

 

If the the setting is set to display only one file manager the elements crossed out on the screenshot above are hidden and the remaining file manager is enlarged to fill the whole screen.




 
Attachments:

Please Log in or Create an account to join the conversation.

More
17 Apr 2024 15:06 #298454 by Lcvette
I have considered this before, but i cannot find a good reason to do so as there is plenty of room for the file display and the additional space could not be utilized for something else since it would still be a placeholder for the second file window.

I utilize syncthing which auto updates my programs to the defined shared directly on posting from fusion360 and rarely use the usb window so i can see your point of argument. but there have been times where my internet has been out that i was glad to have the usb transfer ease, especially when proofing out a new part run that requires some tweaks to get dialed in for production.

That said lets see what others think, if im in the minority I will add it to the list of things to do.

Please Log in or Create an account to join the conversation.

More
18 Apr 2024 13:35 #298557 by Unlogic
Thanks for such a quick reply Lcvette.

My idea was to enlarge the remaining file editor when USB file manager is hidden or removed.

It would help greatly with long file and folder names in the g-code file library which grows with each day.

I made a crude screenshot of how I thought it might look.

 

However I realize the this approach would require some logic based layout changes depending on the value of the setting.

I have worked with lot's of programming languages over the past 20 years but never anything related to QT so I have no idea how much work this would be implement. However if you like the idea I'd be willing to give it a try and get back to you with a pull request if/when I get it working.
Attachments:
The following user(s) said Thank You: spumco

Please Log in or Create an account to join the conversation.

More
18 Apr 2024 21:25 #298577 by Lcvette
sure, i wouldn't not implement it :D

Please Log in or Create an account to join the conversation.

More
19 Apr 2024 02:14 #298587 by spumco
OP:

While you're having a go at it, my preference would be to have adjustable windows with width retained between sessions.

In my case, I'd prefer to have a wider gcode editing window.  I have relatively small monitors and would like to increase the font size for readability.  However, it drives me nuts when gcode word-wraps to another line... I want one line of code to be on one line.  Increasing the font size is a no-go with the current windows as longer lines will start to wrap.

I believe Gmoccapy would be an example of what I'm describing.  The gcode window in auto mode is tiny, but the user can grab the separator between the gcode and backplot and make the gcode wider.

In the case of Probe Basic, this wouldn't really work with all three file windows visible... but if you had a user-selectable two-window layout now it becomes plausible to make the gcode editor window - or the file selector window - wider.  Want either window wider?  Grab the separator and drag it.

Please Log in or Create an account to join the conversation.

More
19 Apr 2024 03:34 #298591 by Lcvette
I took a look at it and it would require some doing,  it's not a simple qt designer setting as the file managers are a unique custom widget with each column defined separately.  The widget is a qtpyvcp  widget so any adjusting will be global to any ui's using qtpyvcp.  Not impossible but not a simple fix,  and a little further away from immediate updates.

If you are to take this on,  I would suggest defining adjustability to the column properties first,  then placing the USB file window in a tab widget and adding the hide away property,  from there it will require a few settings in the properties editor to the other frames holding the editor and main file tab to define their Max stretch sizes.  Then hiding or retrieving the USB is as simple as clicking a side window tab. 

Please Log in or Create an account to join the conversation.

More
19 Apr 2024 21:38 #298675 by rodw
You don't need access to network drives. Far easier to install SAMBA and map a share straight to the nc_files folder and set your CAM up tompost files direct to that folder. 

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.319 seconds
Powered by Kunena Forum