View | Details | Raw Unified
Collapse All | Expand All

(-) DVDStyler-1.4.org/src/ButtonPropDlg.cpp (-4 / +6 lines)
 Lines 7-12    Link Here 
// Copyright:  (c) Alex Thuering
// Copyright:  (c) Alex Thuering
// Licence:     GPL
// Licence:     GPL
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
#include <stdint.h>
 
 
#include "ButtonPropDlg.h"
#include "ButtonPropDlg.h"
#include <wx/statline.h>
#include <wx/statline.h>
 Lines 115-128    Link Here 
int ButtonPropDlg::GetTsi()
int ButtonPropDlg::GetTsi()
{
{
  if (m_titlesetChoice->GetSelection() >= 0)
  if (m_titlesetChoice->GetSelection() >= 0)
	return ((int) m_titlesetChoice->GetClientData(m_titlesetChoice->GetSelection()))-1;
	return ((intptr_t) m_titlesetChoice->GetClientData(m_titlesetChoice->GetSelection()))-1;
  return 0;
  return 0;
}
}
int ButtonPropDlg::GetPgci()
int ButtonPropDlg::GetPgci()
{
{
  if (m_targetChoice->GetSelection() >= 0)
  if (m_targetChoice->GetSelection() >= 0)
	return (int) m_targetChoice->GetClientData(m_targetChoice->GetSelection());
	return (intptr_t) m_targetChoice->GetClientData(m_targetChoice->GetSelection());
  return 0;
  return 0;
}
}
 Lines 296-304    Link Here 
	return false;
	return false;
  }
  }
  int n = 1;
  int n = 1;
  int tsi = ((int)GetClientData(n++))-1;
  int tsi = ((intptr_t)GetClientData(n++))-1;
  m_object->SetActionTsi(tsi != m_tsi ? tsi : -2);
  m_object->SetActionTsi(tsi != m_tsi ? tsi : -2);
  m_object->SetActionPgci((int)GetClientData(n++));
  m_object->SetActionPgci((intptr_t)GetClientData(n++));
  m_object->SetActionChapter(GetInt(n++));
  m_object->SetActionChapter(GetInt(n++));
  if (GetBool(n++))
  if (GetBool(n++))
	m_object->SetCustomAction(GetString(n));
	m_object->SetCustomAction(GetString(n));