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(); } }
void CmpCtrlPanel::UpdatePreview( ) { if ( m_show_preview ) { LoadPreview( ); this->GetPreview()->SetBitmap( m_preview ); } else this->GetPreview()->SetBitmap( m_nopreview ); }
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())); }
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())); }
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())); }
void OnTimer(wxTimerEvent& WXUNUSED(evt)) { LoadPreview(); }