9 #ifndef TurtleBrains_ApplicationDialog_hpp
10 #define TurtleBrains_ApplicationDialog_hpp
12 #include <turtle_brains/core/tb_string.hpp>
13 #include <turtle_brains/core/tb_noncopyable.hpp>
186 void AddCheckboxControl(
const DialogControlIdentifier& controlIdentifier,
const tbCore::tbString& controlName,
const bool isChecked,
const DialogControlGuide& guide = 0);
222 void AddDropdownControl(
const DialogControlIdentifier& controlIdentifier,
const std::vector<tbCore::tbString>& controlValues,
const DialogControlGuide& guide = 0);
242 float GetValueAsFloat(
const DialogControlIdentifier& controlIdentifier)
const;
259 void SetValueAsString(
const DialogControlIdentifier& controlIdentifier,
const tbCore::tbString& controlValue);
292 void SetValueAsFloat(
const DialogControlIdentifier& controlIdentifier,
const float controlValue);
311 void SetValueAsInteger(
const DialogControlIdentifier& controlIdentifier,
const int controlValue);
315 void SetEnabled(
const DialogControlIdentifier& controlIdentifier,
const bool isEnabled);
355 void RepositionControl(
const DialogControlIdentifier& controlIdentifier,
const DialogControlGuide& guide,
377 const int leftEdge = 0,
const int width = 100,
const DialogControlSlot& slot = kDefaultSlot);
395 const DialogIdentifier mIdentifier;
void AddDropdownControl(const DialogControlIdentifier &controlIdentifier, const std::vector< tbCore::tbString > &controlValues, const DialogControlGuide &guide=0)
void AddCheckboxControl(const DialogControlIdentifier &controlIdentifier, const tbCore::tbString &controlName, const bool isChecked, const DialogControlGuide &guide=0)
void AddTextControl(const DialogControlIdentifier &controlIdentifier, const tbCore::tbString &controlValue, const DialogControlGuide &guide=0)
int GetValueAsInteger(const DialogControlIdentifier &controlIdentifier) const
void RepositionControl(const DialogControlIdentifier &controlIdentifier, const DialogControlGuide &guide, const int leftEdge=0, const int width=100, const DialogControlSlot &slot=kDefaultSlot)
Definition: tb_noncopyable.hpp:22
int DialogControlSlot
Definition: tb_application_dialog.hpp:68
ApplicationDialog(const DialogIdentifier &dialogIdentifier)
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
tbCore::tbString GetValueAsString(const DialogControlIdentifier &controlIdentifier) const
Contains classes, functions and constants to create Applications, Menus, Dialogs with native controls...
Definition: tb_application_dialog.hpp:23
void ResizeDialog(const DialogBucketType &bucketType, const int visibleSlots, const bool allowVerticalScrolling=false)
void SetEnabled(const DialogControlIdentifier &controlIdentifier, const bool isEnabled)
static void SetControlSafeForDuplication(const DialogControlIdentifier &controlIdentifier)
void AddLabelControl(const DialogControlIdentifier &controlIdentifier, const tbCore::tbString &controlName, const DialogControlGuide &guide=0)
float GetValueAsFloat(const DialogControlIdentifier &controlIdentifier) const
const DialogIdentifier & GetIdentifier(void) const
unsigned short DialogControlIdentifier
Definition: tb_application_dialog.hpp:53
unsigned short DialogIdentifier
Definition: tb_application_dialog.hpp:44
void AddButtonControl(const DialogControlIdentifier &controlIdentifier, const tbCore::tbString &controlName, const DialogControlGuide &guide=0)
DialogBucketType
Definition: tb_application_dialog.hpp:31
Create a customized dialog prompt with simple controls.
Definition: tb_application_dialog.hpp:89
std::string tbString
Definition: tb_string.hpp:335
Definition: tb_application_dialog.hpp:19
const DialogControlSlot kDefaultSlot
int DialogControlGuide
Definition: tb_application_dialog.hpp:60