Page 11 of 13

Re: Building GUIs With Fusion's UI Manager

Posted: Fri Jun 22, 2018 10:11 am
by Midgardsormr
SecondMan wrote:
Fri Jun 22, 2018 8:27 am
Just out of interest, why would you not want a window to be resizable?


I have the same question about Resolve's Inspector pane!

In my case, I have a window that contains the MuseVFX logo, and I want to make sure that the logo is always fully visible and maintains a proper hierarchical relationship with the rest of the window, so I set min and max bounds on the window. I had it set with a fixed width at first, but the data I was displaying very occasionally overflowed, so I relaxed it.

Re: Building GUIs With Fusion's UI Manager

Posted: Fri Jun 22, 2018 10:12 am
by Nick Verlinden
Just want to do some polishing on my scripts, usually I'm creating dialogs to perform a task with some checkboxes or comboboxes. The window gets ugly when you resize it ( buttons get really stretched etc.).

Re: Building GUIs With Fusion's UI Manager

Posted: Fri Jun 22, 2018 10:39 am
by SecondMan
Midgardsormr wrote:
Fri Jun 22, 2018 10:11 am
I have the same question about Resolve's Inspector pane!

Quoted for agreement.

Re: Building GUIs With Fusion's UI Manager

Posted: Wed Jul 04, 2018 2:44 pm
by AndrewHazelden
SecondMan wrote:
Fri Jun 22, 2018 10:39 am
Midgardsormr wrote:
Fri Jun 22, 2018 10:11 am
I have the same question about Resolve's Inspector pane!

Quoted for agreement.

Double quoted for even more agreement.

Re: Building GUIs With Fusion's UI Manager

Posted: Tue Jul 17, 2018 3:45 pm
by Midgardsormr
PeterLoveday wrote:
Tue Sep 05, 2017 3:22 am
Tree:
  • ItemPressed
    ItemClicked *
    ItemDoubleClicked
    ItemActivated
    ItemEntered
    ItemChanged
    ItemExpanded
    ItemCollapsed
    CurrentItemChanged
    ItemSelectionChanged

I'm having some trouble with some of these events. ItemClicked, ItemDoubleClicked, and CurrentItemChanged all work. I'm not sure what the difference is between ItemClicked and ItemPressed, but I can't figure out what I'd need to do to activate the latter. I'm not working with child items, so I'm not sure about ItemExanded and ItemCollapsed. None of the others—ItemActivated, ItemEntered, ItemChanged, and ItemSelectionChanged—activate. According to the Qt documentation:

doc.qt.io wrote: void QTreeWidget::itemChanged(QTreeWidgetItem *item, int column)
This signal is emitted when the contents of the column in the specified item changes.

http://doc.qt.io/qt-5/qtreewidget.html#itemChanged

That's the signal I'd really like to use.

Re: UI Manager Based Open File and Folder Dialogs

Posted: Tue Jul 24, 2018 7:53 am
by LightWolf
AndrewHazelden wrote:
Tue Sep 19, 2017 7:24 am
Fusion 9.0.1+ has added a pair of new file/folder requester functions that open a file dialog. These UI elements work nicely at replacing the final AskDialog features of the FileBrowse and PathBrowse tags so you can build a 100% UI Manager based GUI in Fusion for your pipeline tools. :buttrock:

Edit: The Fusion 9.0.2 release has improved the reliability of the fu:RequestFile() / fu:RequestDir() functions on MacOS/Linux/Win.
I've found that fu:RequestFile() only works if you select an existing file (Tested on Win10 here), do you know if there's a way to let the user define a non-existing file name?

Cheers,
Mike

Re: Building GUIs With Fusion's UI Manager

Posted: Tue Jul 24, 2018 8:01 am
by PeterLoveday
Try fu:RequestFile(path, file, { FReqB_Saving = true })

Re: Building GUIs With Fusion's UI Manager

Posted: Tue Jul 24, 2018 8:27 am
by LightWolf
PeterLoveday wrote:
Tue Jul 24, 2018 8:01 am
Try fu:RequestFile(path, file, { FReqB_Saving = true })
Neat, that's working as expected. Thanks Peter.

Cheers,
Mike

Re: Building GUIs With Fusion's UI Manager

Posted: Tue Jul 31, 2018 10:34 am
by Midgardsormr
Midgardsormr wrote:
Tue Jul 17, 2018 3:45 pm

I'm having some trouble with some of these events. ItemClicked, ItemDoubleClicked, and CurrentItemChanged all work. I'm not sure what the difference is between ItemClicked and ItemPressed, but I can't figure out what I'd need to do to activate the latter. I'm not working with child items, so I'm not sure about ItemExanded and ItemCollapsed. None of the others—ItemActivated, ItemEntered, ItemChanged, and ItemSelectionChanged—activate. According to the Qt documentation:

Glaah! Thanks, @SecondMan for reminding me in another thread that I need to add the event to the tree in order for them to work. ItemChanged works just fine. Now I just need to figure out how to make only one of the columns read-only…

Re: Building GUIs With Fusion's UI Manager

Posted: Thu Aug 23, 2018 1:56 am
by roger
PeterLoveday wrote:
Tue Jul 24, 2018 8:01 am
Try fu:RequestFile(path, file, { FReqB_Saving = true })

Is there any way to find all the possible parameters, or are we at the mercy of insiders releasing this type of info?

I'm trying to set a default file extension for the RequestFile popup when FReqB_Saving is enabled. I can see there are some exciting FReq parameters in fusionsystem.dll (on Windows), but without a header file it's difficult to figure it out. I've found stuff like FReqS_Filter, FReqS_AllTypes and FReqS_DefExtension but haven't yet been able to successfully combine them through guesswork.

Re: Building GUIs With Fusion's UI Manager

Posted: Wed Sep 26, 2018 3:28 pm
by joergmark
hi, is it possible to change the background color of a row in the tree component?

and is there a complete dokumentation somewhere?

Re: Building GUIs With Fusion's UI Manager

Posted: Wed Sep 26, 2018 3:46 pm
by Midgardsormr
No to complete documentation. This thread is the best you'll find so far. Yes to changing the background color of a row. Let me just dig that up…

Here's a line from one of my functions where I'm setting the background color of field 3 in a particular row:

Code: Select all

		item.BackgroundColor[3] = value

The color needs to come in as a table in this format:

Code: Select all

{R = 0.21, G = 0.6, B = 0.7, A = 1}

Re: Building GUIs With Fusion's UI Manager

Posted: Wed Sep 26, 2018 9:29 pm
by SirEdric
This might be interesting as well:
viewtopic.php?f=6&t=2426#p18799

Re: Building GUIs With Fusion's UI Manager

Posted: Mon Oct 08, 2018 12:05 am
by tomjohnab32
In the Building GUIs With Fusion's UI Manager - We Suck Less.html lists some GUI element controls, one of the examples of controls for ui:TabBar{}, please give me an example of the usage of the TabBar control, thank you!

Re: Building GUIs With Fusion's UI Manager

Posted: Tue Nov 06, 2018 10:07 am
by SirEdric
For the time being, this seems to be an undocumented feature.
Maybe The Master Of GUI, @AndrewHazelden, can shed some light on this?

Cheers.

Eric.