Editor: so as libraries do nucleo vem embutidas
- Eventos, Controle, Operadores, Variáveis, Aparência, Caneta e Arquivos sao registradas no host; TOML, JSON, XML, CSV e Blueprint deixam de ser pre-carregadas e passam a ser extensoes carregaveis pela tela do libman. - o editor continua linkando toml/blueprint estaticamente para uso interno (scan de metadados e salvar/abrir projeto), sem expor suas categorias.
This commit is contained in:
1 parent
a9ab2d6a05
commit
3120d2d797
1 file changed
+5
-11
+5
-11
@@ -2,7 +2,11 @@
|
||||
* TinyBlocks - exemplo editor
|
||||
*
|
||||
* Abre o editor visual com as libraries de categoria registradas:
|
||||
* Eventos, Controle, Operadores, Variáveis, Aparência, Caneta, Meus Blocos.
|
||||
* Eventos, Controle, Operadores, Variáveis, Aparência, Caneta, Arquivos e
|
||||
* Meus Blocos.
|
||||
*
|
||||
* As demais (TOML, JSON, XML, CSV, Blueprint, ...) NÃO vêm embutidas: são
|
||||
* extensões que o usuário carrega pela tela "Escolha uma Extensão".
|
||||
*
|
||||
* A janela vem da interface tinyblocks-graphics; o backend padrão é SDL2 e
|
||||
* pode ser trocado por outro .so:
|
||||
@@ -25,11 +29,6 @@
|
||||
#include <tb_appearance.h>
|
||||
#include <tb_pen.h>
|
||||
#include <tb_fs.h>
|
||||
#include <tb_toml.h>
|
||||
#include <tb_json.h>
|
||||
#include <tb_xml.h>
|
||||
#include <tb_csv.h>
|
||||
#include <tb_blueprint.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
TinyBlocks* rt = NULL;
|
||||
@@ -52,11 +51,6 @@ int main(int argc, char** argv) {
|
||||
tb_library_register(rt, tb_appearance_get_library());
|
||||
tb_library_register(rt, tb_pen_get_library());
|
||||
tb_library_register(rt, tb_fs_get_library());
|
||||
tb_library_register(rt, tb_toml_get_library());
|
||||
tb_library_register(rt, tb_json_get_library());
|
||||
tb_library_register(rt, tb_xml_get_library());
|
||||
tb_library_register(rt, tb_csv_get_library());
|
||||
tb_library_register(rt, tb_blueprint_get_library());
|
||||
|
||||
/* Interface gráfica: o editor mede texto e cria o palco ao nascer */
|
||||
tb_library_register(rt, tb_graphics_get_library());
|
||||
|
||||
Reference in new issue
Block a user