forked from mia/Aegisub
Add some docstrings to Auto4 LuaAssFile class.
Originally committed to SVN as r4595.
This commit is contained in:
parent
eec24ce562
commit
a71b83f61c
1 changed files with 9 additions and 12 deletions
|
@ -59,35 +59,32 @@ class wxWindow;
|
||||||
namespace Automation4 {
|
namespace Automation4 {
|
||||||
|
|
||||||
|
|
||||||
/// DOCME
|
|
||||||
/// @class LuaAssFile
|
/// @class LuaAssFile
|
||||||
/// @brief DOCME
|
/// @brief Object wrapping an AssFile object for modification through Lua
|
||||||
///
|
|
||||||
/// DOCME
|
|
||||||
class LuaAssFile {
|
class LuaAssFile {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/// DOCME
|
/// Pointer to file being modified
|
||||||
AssFile *ass;
|
AssFile *ass;
|
||||||
|
|
||||||
/// DOCME
|
/// Lua state the object exists in
|
||||||
lua_State *L;
|
lua_State *L;
|
||||||
|
|
||||||
|
|
||||||
/// DOCME
|
/// Is the feature this object is created for read-only?
|
||||||
bool can_modify;
|
bool can_modify;
|
||||||
|
|
||||||
/// DOCME
|
/// Are we allowed to set undo points in the feature?
|
||||||
bool can_set_undo;
|
bool can_set_undo;
|
||||||
void CheckAllowModify(); // throws an error if modification is disallowed
|
void CheckAllowModify(); // throws an error if modification is disallowed
|
||||||
|
|
||||||
|
|
||||||
/// DOCME
|
/// Cursor for last access into file
|
||||||
std::list<AssEntry*>::iterator last_entry_ptr;
|
std::list<AssEntry*>::iterator last_entry_ptr;
|
||||||
|
/// Index for last access into file
|
||||||
/// DOCME
|
|
||||||
int last_entry_id;
|
int last_entry_id;
|
||||||
void GetAssEntry(int n); // set last_entry_ptr to point to item n
|
/// Move last_entry_ptr to index n
|
||||||
|
void GetAssEntry(int n);
|
||||||
|
|
||||||
static int ObjectIndexRead(lua_State *L);
|
static int ObjectIndexRead(lua_State *L);
|
||||||
static int ObjectIndexWrite(lua_State *L);
|
static int ObjectIndexWrite(lua_State *L);
|
||||||
|
|
Loading…
Reference in a new issue