P1b: SQLite project, content-addressed assets, autosave and undo
This commit is contained in:
@@ -202,6 +202,8 @@ pub enum Command {
|
||||
core: String,
|
||||
face: u8,
|
||||
},
|
||||
Undo,
|
||||
Redo,
|
||||
/// Journal-only: a core was imported through the binary path.
|
||||
ImportCore {
|
||||
name: String,
|
||||
@@ -248,6 +250,10 @@ pub enum Event {
|
||||
face: u8,
|
||||
velocity: f32,
|
||||
},
|
||||
History {
|
||||
can_undo: bool,
|
||||
can_redo: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
@@ -284,6 +290,9 @@ impl AudioInfo {
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct State {
|
||||
pub revision: u64,
|
||||
pub project_name: String,
|
||||
pub can_undo: bool,
|
||||
pub can_redo: bool,
|
||||
pub transport: TransportState,
|
||||
pub veins: Vec<VeinState>,
|
||||
pub pattern: Pattern,
|
||||
|
||||
Reference in New Issue
Block a user