Пример #1
0
PlaylistFrame::~PlaylistFrame()
{
////@begin PlaylistFrame destruction
	SessionWindow *sessionWnd = ((SessionWindow *)GetParent());
	SkinLite *skinLite = (SkinLite *)(sessionWnd->GetParent());
	skinLite->ChangePlaylistExistsStatus(false);

	if (skinLite->CheckSessionWindowExists())
		sessionWnd->EnableSendFileTransfer();
////@end PlaylistFrame destruction
}
Пример #2
0
/** ReceiveFilesFrame creator.
* @param[in] parent. Parent window.
* @param[in] id. Window id. Default SYMBOL_RECEIVEFILESFRAME_IDNAME.
* @param[in] caption. Window caption. Default SYMBOL_RECEIVEFILESFRAME_TITLE.
* @param[in] pos. Window position. Default SYMBOL_RECEIVEFILESFRAME_POSITION.
* @param[in] size. Window size. Default SYMBOL_RECEIVEFILESFRAME_SIZE.
* @param[in] style. Window style. Default SYMBOL_RECEIVEFILESFRAME_STYLE.
*/
bool ReceiveFilesFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
    wxFrame::Create( parent, id, caption, pos, size, style );

    CreateControls();

	SessionWindow *sessionWnd = ((SessionWindow *)GetParent());
	SkinLite *skinLite = (SkinLite *)(sessionWnd->GetParent());
	skinLite->ChangeReceiveFilesExistsStatus(true);

    return true;
}
Пример #3
0
/** PlaylistFrame constructor.
 * @param[in] parent. Parent Window.
 * @param[in] iface. Interface with application.
 * @param[in] id. Window id. Default SYMBOL_PLAYLISTFRAME_IDNAME.
 * @param[in] caption. Window caption. Default SYMBOL_PLAYLISTFRAME_TITLE.
 * @param[in] pos. Window position. Default SYMBOL_PLAYLISTFRAME_POSITION.
 * @param[in] size. Window size. Default SYMBOL_PLAYLISTFRAME_SIZE.
 * @param[in] style. Window style. Default SYMBOL_PLAYLISTFRAME_STYLE.
 */
PlaylistFrame::PlaylistFrame( wxWindow* parent, AppInterface *iface, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
    Init();
	m_appInterface = iface;
    Create( parent, id, caption, pos, size, style );

	SessionWindow *sessionWnd = ((SessionWindow *)GetParent());
	SkinLite *skinLite = (SkinLite *)(sessionWnd->GetParent());
	skinLite->ChangePlaylistExistsStatus(true);

	sessionWnd->DisableSendFileTransfer();
}
Пример #4
0
/** ReceiveFilesFrame destructor.
 *
 */
ReceiveFilesFrame::~ReceiveFilesFrame()
{
	SessionWindow *sessionWnd = ((SessionWindow *)GetParent());
	SkinLite *skinLite = (SkinLite *)(sessionWnd->GetParent());
	skinLite->ChangeReceiveFilesExistsStatus(false);
}