Minsky
minsky::MinskyExclude Struct Reference

#include <minsky.h>

Collaboration diagram for minsky::MinskyExclude:
Collaboration graph

Public Types

enum  StateFlags { is_edited =1, reset_needed =2, fullEqnDisplay_needed =4 }
 

Public Member Functions

 MinskyExclude ()
 
 MinskyExclude (const MinskyExclude &)
 
MinskyExcludeoperator= (const MinskyExclude &)
 

Public Attributes

shared_ptr< ofstream > outputDataFile
 
unique_ptr< BackgroundSaverautoSaver
 
int flags =reset_needed
 
std::chrono::time_point< std::chrono::system_clock > resetAt =std::chrono::time_point<std::chrono::system_clock>::max()
 
std::chrono::milliseconds resetDuration
 
Progress progressState
 
int busyCursorStack =0
 
std::vector< int > flagStack
 
Clipboard clipboard
 clipboard manager More...
 
std::set< RenderNativeWindow * > nativeWindowsToRedraw
 record nativeWindows that have requested redrawing More...
 

Static Public Attributes

static constexpr std::chrono::milliseconds resetNowThreshold {500}
 if reset duration is less than this, immediately perform reset on request More...
 
static constexpr std::chrono::milliseconds resetPostponedThreshold {1500}
 if reset duration is less than this, but more than resetNowThreshold, schedule a future reset if greater, then do not auto schedule reset, but require explicit resets. More...
 

Protected Attributes

std::deque< classdesc::pack_t > history
 save history of model for undo More...
 
std::size_t historyPtr
 
bool undone =false
 

Detailed Description

Definition at line 77 of file minsky.h.

Member Enumeration Documentation

◆ StateFlags

Enumerator
is_edited 
reset_needed 
fullEqnDisplay_needed 

Definition at line 82 of file minsky.h.

Constructor & Destructor Documentation

◆ MinskyExclude() [1/2]

minsky::MinskyExclude::MinskyExclude ( )
inline

Definition at line 102 of file minsky.h.

102 : historyPtr(0) {}
std::size_t historyPtr
Definition: minsky.h:117

◆ MinskyExclude() [2/2]

minsky::MinskyExclude::MinskyExclude ( const MinskyExclude )
inline

Definition at line 103 of file minsky.h.

103 : historyPtr(0) {}
std::size_t historyPtr
Definition: minsky.h:117

Member Function Documentation

◆ operator=()

MinskyExclude& minsky::MinskyExclude::operator= ( const MinskyExclude )
inline

Definition at line 104 of file minsky.h.

104 {return *this;}

Member Data Documentation

◆ autoSaver

unique_ptr<BackgroundSaver> minsky::MinskyExclude::autoSaver

Definition at line 80 of file minsky.h.

◆ busyCursorStack

int minsky::MinskyExclude::busyCursorStack =0

Definition at line 94 of file minsky.h.

◆ clipboard

Clipboard minsky::MinskyExclude::clipboard

clipboard manager

Definition at line 98 of file minsky.h.

◆ flags

int minsky::MinskyExclude::flags =reset_needed

Definition at line 83 of file minsky.h.

◆ flagStack

std::vector<int> minsky::MinskyExclude::flagStack

Definition at line 96 of file minsky.h.

◆ history

std::deque<classdesc::pack_t> minsky::MinskyExclude::history
protected

save history of model for undo

Definition at line 116 of file minsky.h.

◆ historyPtr

std::size_t minsky::MinskyExclude::historyPtr
protected

Definition at line 117 of file minsky.h.

◆ nativeWindowsToRedraw

std::set<RenderNativeWindow*> minsky::MinskyExclude::nativeWindowsToRedraw

record nativeWindows that have requested redrawing

Definition at line 107 of file minsky.h.

◆ outputDataFile

shared_ptr<ofstream> minsky::MinskyExclude::outputDataFile

Definition at line 79 of file minsky.h.

◆ progressState

Progress minsky::MinskyExclude::progressState

Definition at line 93 of file minsky.h.

◆ resetAt

std::chrono::time_point<std::chrono::system_clock> minsky::MinskyExclude::resetAt =std::chrono::time_point<std::chrono::system_clock>::max()

Definition at line 90 of file minsky.h.

◆ resetDuration

std::chrono::milliseconds minsky::MinskyExclude::resetDuration

Definition at line 91 of file minsky.h.

◆ resetNowThreshold

constexpr std::chrono::milliseconds minsky::MinskyExclude::resetNowThreshold {500}
static

if reset duration is less than this, immediately perform reset on request

Definition at line 86 of file minsky.h.

◆ resetPostponedThreshold

constexpr std::chrono::milliseconds minsky::MinskyExclude::resetPostponedThreshold {1500}
static

if reset duration is less than this, but more than resetNowThreshold, schedule a future reset if greater, then do not auto schedule reset, but require explicit resets.

Definition at line 89 of file minsky.h.

◆ undone

bool minsky::MinskyExclude::undone =false
protected

Definition at line 118 of file minsky.h.


The documentation for this struct was generated from the following file: