50 lines
764 B
Rust
50 lines
764 B
Rust
//! Map editor interface.
|
|
|
|
use super::glib::*;
|
|
use gobject_sys::*;
|
|
use gtk_sys::*;
|
|
use maraiah::{durandal::ffi, marathon::map};
|
|
use std::cell::RefCell;
|
|
|
|
impl EditorModel
|
|
{
|
|
pub fn new(view: EditorView) -> Self
|
|
{
|
|
Self{view}
|
|
}
|
|
|
|
pub fn open_new(&mut self)
|
|
{
|
|
eprintln!("open_new");
|
|
}
|
|
|
|
pub fn open_buf(&mut self, b: &[u8])
|
|
{
|
|
eprintln!("open_buf");
|
|
}
|
|
}
|
|
|
|
pub struct EditorPresenter
|
|
{
|
|
}
|
|
|
|
pub struct EditorView
|
|
{
|
|
pub prop: PropertiesWindow,
|
|
}
|
|
|
|
pub struct PropertiesWindow
|
|
{
|
|
pub flg_ent: Vec<Refc<'static, GtkToggleButton>>,
|
|
pub flg_env: Vec<Refc<'static, GtkToggleButton>>,
|
|
pub flg_msn: Vec<Refc<'static, GtkToggleButton>>,
|
|
}
|
|
|
|
pub struct EditorModel
|
|
{
|
|
}
|
|
|
|
pub type EditorRef = std::cell::RefCell<EditorModel>;
|
|
|
|
// EOF
|