| 1 |
|
| 2 |
#pragma once |
| 3 |
|
| 4 |
#define GREENZONE_CAPACITY_MIN 1 |
| 5 |
#define GREENZONE_CAPACITY_MAX 50000 // this limitation is here just because we're running in 32-bit OS, so there's 2GB limit of RAM |
| 6 |
#define GREENZONE_CAPACITY_DEFAULT 10000 |
| 7 |
|
| 8 |
#define UNDO_LEVELS_MIN 1 |
| 9 |
#define UNDO_LEVELS_MAX 1000 // this limitation is here just because we're running in 32-bit OS, so there's 2GB limit of RAM |
| 10 |
#define UNDO_LEVELS_DEFAULT 100 |
| 11 |
|
| 12 |
#define AUTOSAVE_PERIOD_MIN 0 // 0 = auto-save immediately after every change in the project |
| 13 |
#define AUTOSAVE_PERIOD_MAX 1440 // 24 hours |
| 14 |
#define AUTOSAVE_PERIOD_DEFAULT 15 // in minutes |
| 15 |
|
| 16 |
enum GREENZONE_SAVING_MODES |
| 17 |
{ |
| 18 |
GREENZONE_SAVING_MODE_ALL, |
| 19 |
GREENZONE_SAVING_MODE_16TH, |
| 20 |
GREENZONE_SAVING_MODE_MARKED, |
| 21 |
GREENZONE_SAVING_MODE_NO, |
| 22 |
|
| 23 |
|
| 24 |
GREENZONE_SAVING_MODES_TOTAL |
| 25 |
}; |
| 26 |
|
| 27 |
#define AUTHOR_NAME_MAX_LEN 100 |
| 28 |
|
| 29 |
class TASEDITOR_CONFIG |
| 30 |
{ |
| 31 |
public: |
| 32 |
TASEDITOR_CONFIG(void); |
| 33 |
|
| 34 |
void load(void); |
| 35 |
void save(void); |
| 36 |
|
| 37 |
|
| 38 |
int windowX; |
| 39 |
int windowY; |
| 40 |
int windowWidth; |
| 41 |
int windowHeight; |
| 42 |
int savedWindowX; |
| 43 |
int savedWindowY; |
| 44 |
int savedWindowWidth; |
| 45 |
int savedWindowHeight; |
| 46 |
bool windowIsMaximized; |
| 47 |
|
| 48 |
int findnoteWindowX; |
| 49 |
int findnoteWindowY; |
| 50 |
bool findnoteMatchCase; |
| 51 |
bool findnoteSearchUp; |
| 52 |
|
| 53 |
bool followPlaybackCursor; |
| 54 |
bool turboSeek; |
| 55 |
bool autoRestoreLastPlaybackPosition; |
| 56 |
int superimpose; |
| 57 |
bool recordingUsePattern; |
| 58 |
bool enableLuaAutoFunction; |
| 59 |
|
| 60 |
bool displayBranchesTree; |
| 61 |
bool displayBranchScreenshots; |
| 62 |
bool displayBranchDescriptions; |
| 63 |
bool enableHotChanges; |
| 64 |
bool followUndoContext; |
| 65 |
bool followMarkerNoteContext; |
| 66 |
|
| 67 |
int greenzoneCapacity; |
| 68 |
int maxUndoLevels; |
| 69 |
|
| 70 |
bool enableGreenzoning; |
| 71 |
bool autofirePatternSkipsLag; |
| 72 |
bool autoAdjustInputAccordingToLag; |
| 73 |
bool drawInputByDragging; |
| 74 |
bool combineConsecutiveRecordingsAndDraws; |
| 75 |
bool use1PKeysForAllSingleRecordings; |
| 76 |
bool useInputKeysForColumnSet; |
| 77 |
bool bindMarkersToInput; |
| 78 |
bool emptyNewMarkerNotes; |
| 79 |
bool oldControlSchemeForBranching; |
| 80 |
bool branchesRestoreEntireMovie; |
| 81 |
bool HUDInBranchScreenshots; |
| 82 |
bool autopauseAtTheEndOfMovie; |
| 83 |
|
| 84 |
int lastExportedInputType; |
| 85 |
bool lastExportedSubtitlesStatus; |
| 86 |
|
| 87 |
bool projectSavingOptions_SaveInBinary; |
| 88 |
bool projectSavingOptions_SaveMarkers; |
| 89 |
bool projectSavingOptions_SaveBookmarks; |
| 90 |
bool projectSavingOptions_SaveHistory; |
| 91 |
bool projectSavingOptions_SavePianoRoll; |
| 92 |
bool projectSavingOptions_SaveSelection; |
| 93 |
int projectSavingOptions_GreenzoneSavingMode; |
| 94 |
|
| 95 |
bool saveCompact_SaveInBinary; |
| 96 |
bool saveCompact_SaveMarkers; |
| 97 |
bool saveCompact_SaveBookmarks; |
| 98 |
bool saveCompact_SaveHistory; |
| 99 |
bool saveCompact_SavePianoRoll; |
| 100 |
bool saveCompact_SaveSelection; |
| 101 |
int saveCompact_GreenzoneSavingMode; |
| 102 |
|
| 103 |
bool autosaveEnabled; |
| 104 |
int autosavePeriod; |
| 105 |
bool autosaveSilent; |
| 106 |
|
| 107 |
bool tooltipsEnabled; |
| 108 |
|
| 109 |
int currentPattern; |
| 110 |
|
| 111 |
char lastAuthorName[AUTHOR_NAME_MAX_LEN]; |
| 112 |
|
| 113 |
private: |
| 114 |
|
| 115 |
}; |