~ubuntu-branches/ubuntu/utopic/dvdstyler/utopic-proposed

« back to all changes in this revision

Viewing changes to src/DVDAction.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-05-30 17:56:33 UTC
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20100530175633-ntl1xssr0nfr7k0a
Tags: upstream-1.8.1
ImportĀ upstreamĀ versionĀ 1.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
// Purpose:     Stores a DVD Action
4
4
// Author:      Alex Thuering
5
5
// Created:     03.09.2009
6
 
// RCS-ID:      $Id: DVDAction.h,v 1.8 2010/01/12 20:43:46 ntalex Exp $
 
6
// RCS-ID:      $Id: DVDAction.h,v 1.11 2010/04/28 07:27:56 ntalex Exp $
7
7
// Copyright:   (c) Alex Thuering
8
8
// Licence:     GPL
9
9
/////////////////////////////////////////////////////////////////////////////
27
27
        
28
28
        inline bool IsCustom() { return m_custom.length()>0; }
29
29
        inline wxString GetCustom() { return m_custom; }
30
 
        inline void SetCustom(wxString action) { m_custom = action; }
 
30
        void SetCustom(wxString action);
31
31
        
32
32
        inline int  GetTsi() { return m_tsi; }
33
33
        inline void     SetTsi(int tsi) { m_tsi = tsi; }
49
49
        inline void     SetSubtitle(int subtitle) { m_subtitle = subtitle; }
50
50
        
51
51
        /** Returns true if action is valid */
52
 
        bool IsValid(DVD* dvd, int tsi, int pgci, bool menu, wxString buttonId = wxT(""), bool showMessage = false);
 
52
        bool IsValid(DVD* dvd, int tsi, int pgci, bool menu, wxString buttonId = wxT(""),
 
53
                        bool showMessage = false, bool showSource = true, bool skipInvalidTarget = false);
53
54
        
54
55
        wxSvgXmlNode* GetXML(DVDFileType type, DVD* dvd);
55
56
        bool PutXML(wxSvgXmlNode* node);
71
72
        bool m_playAll;
72
73
        int m_audio;
73
74
        int m_subtitle;
 
75
        /** Returns source of action as string */
 
76
        wxString GetSourceStr(DVD* dvd, int tsi, int pgci, bool menu, wxString buttonId);
 
77
        /** Returns true if custom action is valid */
 
78
        bool IsCustomValid(wxString msgPrefix, wxString source, DVD* dvd, int tsi, int pgci, bool menu, wxString buttonId);
74
79
};
75
80
 
76
81
#endif /* DVDACTION_H_ */