dxd - dynax driver framework 2.6.0d221
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::gui::item< component_t > Class Template Reference

dx::gui::item wx counterpart of the juce interface's dx::gui::item<component_t>: one row of a single, continuously expandable outline. Every device and every one of its stream/pin/clock/... rows is an item, nested directly inside its parent item and indented beneath it, showing its own controls inline via content - mirroring juce's TreeView design, where wx has no equivalent of an arbitrary Component hosted per tree row (wxTreeCtrl cannot host child controls), so the outline is built here from plain wxPanel rows in nested box sizers instead. More...

#include <dx_gui.h>

Inheritance diagram for dx::gui::item< component_t >:
Collaboration diagram for dx::gui::item< component_t >:

Public Member Functions

itemaddItem (std::function< wxWindow *(wxWindow *)> &&content, bool subitems=false, bool open=true)
void addSeparator ()
void adopt (item *child)
wxWindow * children () const
void clearItems ()
wxWindow * content () const
void forget (item *child)
 item (decltype(create)&&create, bool subitems=false)
 item (wxWindow *parent, std::function< wxWindow *(wxWindow *)> &&content, bool subitems=false, bool open=true)
virtual ~item ()=default

Public Attributes

component_t * component {}

Protected Member Functions

std::unique_ptr< juce::Component > createItemComponent () override

Detailed Description

template<typename component_t = label>
class dx::gui::item< component_t >

dx::gui::item wx counterpart of the juce interface's dx::gui::item<component_t>: one row of a single, continuously expandable outline. Every device and every one of its stream/pin/clock/... rows is an item, nested directly inside its parent item and indented beneath it, showing its own controls inline via content - mirroring juce's TreeView design, where wx has no equivalent of an arbitrary Component hosted per tree row (wxTreeCtrl cannot host child controls), so the outline is built here from plain wxPanel rows in nested box sizers instead.

Constructor & Destructor Documentation

◆ item() [1/2]

template<typename component_t = label>
dx::gui::item< component_t >::item ( decltype(create)&& create,
bool subitems = false )
inline
Here is the caller graph for this function:

◆ ~item()

template<typename component_t = label>
virtual dx::gui::item< component_t >::~item ( )
virtualdefault

◆ item() [2/2]

template<typename component_t = label>
dx::gui::item< component_t >::item ( wxWindow * parent,
std::function< wxWindow *(wxWindow *)> && content,
bool subitems = false,
bool open = true )
inline

Member Function Documentation

◆ addItem()

template<typename component_t = label>
item * dx::gui::item< component_t >::addItem ( std::function< wxWindow *(wxWindow *)> && content,
bool subitems = false,
bool open = true )
inline
Here is the caller graph for this function:

◆ addSeparator()

template<typename component_t = label>
void dx::gui::item< component_t >::addSeparator ( )
inline

◆ adopt()

template<typename component_t = label>
void dx::gui::item< component_t >::adopt ( item< component_t > * child)
inline
Here is the caller graph for this function:

◆ children()

template<typename component_t = label>
wxWindow * dx::gui::item< component_t >::children ( ) const
inline
Here is the caller graph for this function:

◆ clearItems()

template<typename component_t = label>
void dx::gui::item< component_t >::clearItems ( )
inline
Here is the caller graph for this function:

◆ content()

template<typename component_t = label>
wxWindow * dx::gui::item< component_t >::content ( ) const
inline

◆ createItemComponent()

template<typename component_t = label>
std::unique_ptr< juce::Component > dx::gui::item< component_t >::createItemComponent ( )
inlineoverrideprotected

◆ forget()

template<typename component_t = label>
void dx::gui::item< component_t >::forget ( item< component_t > * child)
inline

Member Data Documentation

◆ component

template<typename component_t = label>
component_t* dx::gui::item< component_t >::component {}

The documentation for this class was generated from the following files:

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.