tycho: organize better

master
an 2019-06-17 07:15:26 -04:00
parent c2339138a8
commit e64f652281
7 changed files with 14 additions and 14 deletions

View File

@ -2,8 +2,8 @@
"cppFile": "", "cppFile": "",
"rust": { "rust": {
"dir": "", "dir": "",
"interfaceModule": "qintr", "interfaceModule": "ffi",
"implementationModule": "qimpl" "implementationModule": "gui"
}, },
"objects": { "objects": {
"MapModel": { "MapModel": {

View File

@ -21,7 +21,7 @@ ProjectModel::ProjectModel(ProjectModel &&o) :
ProjectModel::~ProjectModel() ProjectModel::~ProjectModel()
{ {
switch(modelType) { switch(modelType) {
case Map: delete modelMap; case Map: delete modelMap; break;
} }
} }

View File

@ -0,0 +1,8 @@
//! GUI implementation.
mod ffi;
mod map;
pub use self::map::MapModel;
// EOF

View File

@ -4,6 +4,6 @@
use maraiah::ffi as libc; use maraiah::ffi as libc;
include!(concat!(env!("OUT_DIR"), "/src/qintr.rs")); include!(concat!(env!("OUT_DIR"), "/src/ffi.rs"));
// EOF // EOF

View File

@ -1,6 +1,6 @@
//! Map model. //! Map model.
use crate::qintr::*; use super::ffi::*;
//use memmap::Mmap; //use memmap::Mmap;
use maraiah::map; use maraiah::map;

View File

@ -1,8 +1,7 @@
use maraiah::{err::*, ffi}; use maraiah::{err::*, ffi};
mod gui;
mod meta; mod meta;
mod qimpl;
mod qintr;
extern "C" { extern "C" {
fn main_cc(app_name: *mut ffi::c_char); fn main_cc(app_name: *mut ffi::c_char);

View File

@ -1,7 +0,0 @@
//! Qt implementation.
mod map;
pub use self::map::*;
// EOF