mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
More stuff in subs lib.
Originally committed to SVN as r1991.
This commit is contained in:
parent
20eb82d397
commit
9f5d3e7a6e
@ -167,6 +167,10 @@
|
|||||||
RelativePath=".\include\aegilib\aegistring.h"
|
RelativePath=".\include\aegilib\aegistring.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\include\aegilib\aegitime.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\include\aegilib\controller.h"
|
RelativePath=".\include\aegilib\controller.h"
|
||||||
>
|
>
|
||||||
@ -211,10 +215,6 @@
|
|||||||
RelativePath=".\include\aegilib\section_entry_dialogue.h"
|
RelativePath=".\include\aegilib\section_entry_dialogue.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\include\aegilib\time.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\include\aegilib\view.h"
|
RelativePath=".\include\aegilib\view.h"
|
||||||
>
|
>
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#include "manipulator.h"
|
#include "manipulator.h"
|
||||||
#include "section.h"
|
#include "section.h"
|
||||||
#include "section_entry_dialogue.h"
|
#include "section_entry_dialogue.h"
|
||||||
#include "time.h"
|
#include "aegitime.h"
|
||||||
|
|
||||||
|
|
||||||
//////////
|
//////////
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
#include "time.h"
|
#include "aegitime.h"
|
||||||
#include "section_entry.h"
|
#include "section_entry.h"
|
||||||
|
|
||||||
|
|
||||||
@ -45,7 +45,8 @@ namespace Aegilib {
|
|||||||
// Dialogue class
|
// Dialogue class
|
||||||
class SectionEntryDialogue : public SectionEntry {
|
class SectionEntryDialogue : public SectionEntry {
|
||||||
private:
|
private:
|
||||||
void ThrowUnsupported() const { throw Exception(Exception::Unsupported_Format_Feature); }
|
const static bool dodgeWarning = true;
|
||||||
|
void ThrowUnsupported() const { if (dodgeWarning) throw Exception(Exception::Unsupported_Format_Feature); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Destructor
|
// Destructor
|
||||||
@ -64,11 +65,11 @@ namespace Aegilib {
|
|||||||
virtual bool HasMargins() const { return false; }
|
virtual bool HasMargins() const { return false; }
|
||||||
|
|
||||||
// Read accessors
|
// Read accessors
|
||||||
virtual String GetText() const { ThrowUnsupported(); }
|
virtual String GetText() const { ThrowUnsupported(); return L""; }
|
||||||
virtual Time GetStartTime() const { ThrowUnsupported(); }
|
virtual Time GetStartTime() const { ThrowUnsupported(); return 0; }
|
||||||
virtual Time GetEndTime() const { ThrowUnsupported(); }
|
virtual Time GetEndTime() const { ThrowUnsupported(); return 0; }
|
||||||
virtual int GetStartFrame() const { ThrowUnsupported(); }
|
virtual int GetStartFrame() const { ThrowUnsupported(); return 0; }
|
||||||
virtual int GetEndFrame() const { ThrowUnsupported(); }
|
virtual int GetEndFrame() const { ThrowUnsupported(); return 0; }
|
||||||
|
|
||||||
// Write acessors
|
// Write acessors
|
||||||
virtual void SetText(String text) { (void) text; ThrowUnsupported(); }
|
virtual void SetText(String text) { (void) text; ThrowUnsupported(); }
|
||||||
|
@ -164,13 +164,15 @@
|
|||||||
// FreeType2
|
// FreeType2
|
||||||
#ifdef WITH_FREETYPE2
|
#ifdef WITH_FREETYPE2
|
||||||
#ifdef __WXDEBUG__
|
#ifdef __WXDEBUG__
|
||||||
//#pragma comment(lib,"freetype233MT_D.lib")
|
#ifdef FT2_LIB_DEBUG
|
||||||
#pragma comment(lib,FT2_LIB_DEBUG)
|
#pragma comment(lib,FT2_LIB_DEBUG)
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
//#pragma comment(lib,"freetype233MT.lib")
|
#ifdef FT2_LIB_RELEASE
|
||||||
#pragma comment(lib,FT2_LIB_RELEASE)
|
#pragma comment(lib,FT2_LIB_RELEASE)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user