3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
the rich dialog. You may customize it, show your custom parameters and custom buttons. More...
#include <CoreAPI.h>
Public Member Functions | |
dialog & | text (const char *id) |
pass the header text of the dialog More... | |
dialog & | caption (const char *id) |
pass the caption of the dialog More... | |
dialog & | width (int w) |
change the default width More... | |
dialog & | modal () |
dialog will be modal. Generally, it is modal by default. Execution will be paused at show() till the user will press any dialog button. More... | |
dialog & | noModal () |
dialog will be no modal. Execution will continue after you will call the show() More... | |
dialog & | buttons (const char *list) |
pass the list of buttons for the dialog More... | |
dialog & | topRight () |
place the dialog at the top-right position of the viewport More... | |
dialog & | ok () |
add Ok button More... | |
dialog & | cancel () |
add Cancel button More... | |
dialog & | yes () |
add Yes button More... | |
dialog & | no () |
add No buttin More... | |
dialog & | warn () |
add Warning icon More... | |
dialog & | question () |
add Question icon More... | |
dialog & | undoWorks () |
allow undo (CTR-Z) act even in modal dialog More... | |
dialog & | transparentBackground () |
the background will not be faded More... | |
dialog & | dontShowAgainCheckbox () |
show the checkbox "Don't show again". If user checks if the dialog will net be shown next time and show() will return 0 immediately. More... | |
dialog & | params (BaseClass *params) |
The important core feature. BaseClass allows to create the custom controls in the dialog. Look the dialog example to understand how to use it. More... | |
dialog & | process (std::function< void()> process) |
pass the function/lambda that will be called each frame. But there is better way - override the ProcessInEditor for the BaseClass derived class and handle the processing there. More... | |
dialog & | onPress (std::function< void(int)> press) |
pass the function/lambda that will be called when the button will be pressed. The button index (starts from 1) will be passed to the function More... | |
int | show () |
Show the dialog. This is usually the last command in the chain. More... | |
the rich dialog. You may customize it, show your custom parameters and custom buttons.
coat::dialog & coat::dialog::buttons | ( | const char * | list | ) |
pass the list of buttons for the dialog
list | list of buttons. |, .+; may be used as separators between identifiers |
coat::dialog & coat::dialog::cancel | ( | ) |
add Cancel button
coat::dialog & coat::dialog::caption | ( | const char * | id | ) |
pass the caption of the dialog
id | id the caption or caption identifier that will be used to take the text from the language file. You may press F9 to localize it in UI. |
coat::dialog & coat::dialog::dontShowAgainCheckbox | ( | ) |
show the checkbox "Don't show again". If user checks if the dialog will net be shown next time and show() will return 0 immediately.
coat::dialog & coat::dialog::modal | ( | ) |
dialog will be modal. Generally, it is modal by default. Execution will be paused at show() till the user will press any dialog button.
coat::dialog & coat::dialog::no | ( | ) |
add No buttin
coat::dialog & coat::dialog::noModal | ( | ) |
dialog will be no modal. Execution will continue after you will call the show()
coat::dialog & coat::dialog::ok | ( | ) |
add Ok button
coat::dialog & coat::dialog::onPress | ( | std::function< void(int)> | press | ) |
pass the function/lambda that will be called when the button will be pressed. The button index (starts from 1) will be passed to the function
press | the callback/lambda |
coat::dialog & coat::dialog::params | ( | BaseClass * | params | ) |
coat::dialog & coat::dialog::process | ( | std::function< void()> | process | ) |
pass the function/lambda that will be called each frame. But there is better way - override the ProcessInEditor for the BaseClass derived class and handle the processing there.
process | the callback/lambda |
coat::dialog & coat::dialog::question | ( | ) |
add Question icon
int coat::dialog::show | ( | ) |
Show the dialog. This is usually the last command in the chain.
coat::dialog & coat::dialog::text | ( | const char * | id | ) |
pass the header text of the dialog
id | the text or text identifier that will be used to take the text from the language file. You may press F9 to localize it in UI. |
coat::dialog & coat::dialog::topRight | ( | ) |
place the dialog at the top-right position of the viewport
coat::dialog & coat::dialog::transparentBackground | ( | ) |
the background will not be faded
coat::dialog & coat::dialog::undoWorks | ( | ) |
allow undo (CTR-Z) act even in modal dialog
coat::dialog & coat::dialog::warn | ( | ) |
add Warning icon
coat::dialog & coat::dialog::width | ( | int | w | ) |
change the default width
w | the width will be scaled in correspondence with the font size, so you may pass absolute values like 500 |
coat::dialog & coat::dialog::yes | ( | ) |
add Yes button