Example #1
0
	void OnTerrainChange(const wxString& texture)
	{
		// Check if texture really changed, to avoid doing this too often
		if (texture != m_TextureName)
		{
			// Load new texture preview
			m_TextureName = texture;
			LoadPreview();
		}
	}
Example #2
0
void CmpCtrlPanel::UpdatePreview( )
{
    if ( m_show_preview )
	{
		LoadPreview( );
		this->GetPreview()->SetBitmap( m_preview );
	}
	else
        this->GetPreview()->SetBitmap( m_nopreview );

}
Example #3
0
MythUIFileBrowser::MythUIFileBrowser(MythScreenStack *parent,
                                     const QString &startPath)
    : MythScreenType(parent, "mythuifilebrowser")
{
    SetPath(startPath);

    m_nameFilter.clear();
    m_nameFilter << "*";

    m_previewTimer = new QTimer(this);
    m_previewTimer->setSingleShot(true);
    connect(m_previewTimer, SIGNAL(timeout()), SLOT(LoadPreview()));
}
Example #4
0
MythUIFileBrowser::MythUIFileBrowser(MythScreenStack *parent,
                                     const QString &startPath)
                :MythScreenType(parent, "mythuifilebrowser")
{
    m_retObject = NULL;

    Init(startPath);

    m_typeFilter = (QDir::AllDirs | QDir::Drives | QDir::Files |
                    QDir::Readable | QDir::Writable | QDir::Executable);
    m_nameFilter.clear();
    m_nameFilter << "*";

    m_previewTimer = new QTimer(this);
    m_previewTimer->setSingleShot(true);
    connect(m_previewTimer, SIGNAL(timeout()), SLOT(LoadPreview()));
}
Example #5
0
MythUIFileBrowser::MythUIFileBrowser(MythScreenStack *parent,
                                     const QString &startPath)
    : MythScreenType(parent, "mythuifilebrowser"),
        m_isRemote(false),      m_previewTimer(NULL),
        m_typeFilter(QDir::AllDirs | QDir::Drives | QDir::Files |
                    QDir::Readable | QDir::Writable | QDir::Executable),
        m_fileList(NULL),       m_locationEdit(NULL),
        m_okButton(NULL),       m_cancelButton(NULL),
        m_backButton(NULL),     m_homeButton(NULL),
        m_previewImage(NULL),   m_infoText(NULL),
        m_filenameText(NULL),   m_fullpathText(NULL),
        m_retObject(NULL),      m_widgetName("MythFileBrowser")
{
    SetPath(startPath);

    m_nameFilter.clear();
    m_nameFilter << "*";

    m_previewTimer = new QTimer(this);
    m_previewTimer->setSingleShot(true);
    connect(m_previewTimer, SIGNAL(timeout()), SLOT(LoadPreview()));
}
Example #6
0
	void OnTimer(wxTimerEvent& WXUNUSED(evt))
	{
		LoadPreview();
	}