Exemple #1
0
    ListViewport (ListBox& lb)  : owner (lb)
    {
        setWantsKeyboardFocus (false);

        auto content = new Component();
        setViewedComponent (content);
        content->setWantsKeyboardFocus (false);
    }
ChannelViewport::ChannelViewport(int const deviceIndex_, ValueTree channelsTree_, CriticalSection &lock_) :
	deviceIndex(deviceIndex_),
	channelsTree(channelsTree_),
	lock(lock_)
{
	setViewedComponent(&content);

	triggerAsyncUpdate();
}
Exemple #3
0
    //==============================================================================
    ListViewport (ListBox& owner_)
        : owner (owner_)
    {
        setWantsKeyboardFocus (false);

        Component* const content = new Component();
        setViewedComponent (content);
        content->addMouseListener (this, false);
        content->setWantsKeyboardFocus (false);
    }
Exemple #4
0
//==================================================================================
ColumnFileBrowser::ColumnFileBrowser (WildcardFileFilter* filesToDisplay_)
    : Viewport("ColumnFileBrowser"),
      wildcard(filesToDisplay_)
{
    addMouseListener (this, true);
    setWantsKeyboardFocus (false);
    
    setScrollBarsShown (false, true);
    setScrollBarThickness (10);
    
    fileBrowser = new ColumnFileBrowserContents (filesToDisplay_, this);
    setViewedComponent (fileBrowser);
}
StaticStreamViewport::StaticStreamViewport(ValueTree tree_,CriticalSection &lock_, WorkbenchClient* client_)
{
	setName("StaticStreamViewport " + tree_.getType().toString());

	setViewedComponent(content = new ContentComponent(tree_,lock_, client_), false);
}