saves models to settings to avoid reload, with option to force from menu
This commit is contained in:
parent
dd033a7896
commit
177cdb925f
10 changed files with 269 additions and 42 deletions
40
Utils.h
Normal file
40
Utils.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright 2024, My Name <my@email.address>
|
||||
* All rights reserved. Distributed under the terms of the MIT license.
|
||||
*/
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
#include <Message.h>
|
||||
#include <String.h>
|
||||
#include <Path.h>
|
||||
#include <Directory.h>
|
||||
#include <File.h>
|
||||
|
||||
static const uint32 kShowStatus = 'stat';
|
||||
static const uint32 kCheckKey = 'chkK';
|
||||
static const uint32 kMsgNewFile = 'fNEW';
|
||||
static const uint32 kMsgOpenFile = 'fOPN';
|
||||
static const uint32 kMsgSaveFile = 'fSAV';
|
||||
static const uint32 kModelSelected = 'mSEL';
|
||||
static const uint32 kRequestModels = 'mREQ';
|
||||
|
||||
static const uint32 kViewJSON = 'vJSN';
|
||||
static const uint32 kSettingsUpdate = 'sUPD';
|
||||
static const char* kSettingsFileName = "bedumber_settings.bmessage";
|
||||
|
||||
|
||||
static const uint32 kPulse = 'plse';
|
||||
|
||||
static const uint32 kSendPrompt = 'kspt';
|
||||
static const uint32 kQuestionChanged = 'kqch';
|
||||
|
||||
|
||||
|
||||
status_t SaveMessageToFile(const BMessage& message, const char* fileName);
|
||||
BMessage LoadMessageFromFile(const char* fileName);
|
||||
|
||||
#endif // UTILS_H
|
Loading…
Add table
Add a link
Reference in a new issue