mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-07 08:07:40 +03:00
Update guide
This commit is contained in:
parent
58515d4abc
commit
2b53f12098
@ -131,7 +131,7 @@ The Settings screen allows you to configure the device's behavior. There are a f
|
|||||||
- **Reader Paragraph Alignment**: Set the alignment of paragraphs; options are "Justified" (default), "Left", "Center", or "Right".
|
- **Reader Paragraph Alignment**: Set the alignment of paragraphs; options are "Justified" (default), "Left", "Center", or "Right".
|
||||||
- **Time to Sleep**: Set the duration of inactivity before the device automatically goes to sleep.
|
- **Time to Sleep**: Set the duration of inactivity before the device automatically goes to sleep.
|
||||||
- **Refresh Frequency**: Set how often the screen does a full refresh while reading to reduce ghosting.
|
- **Refresh Frequency**: Set how often the screen does a full refresh while reading to reduce ghosting.
|
||||||
- **Calibre Settings**: Set up integration for accessing a Calibre web library or connecting to Calibre as a wireless device.
|
- **Remote Library**: Set up integration for accessing an OPDS Library (like Calibre web library) or connecting to Calibre as a wireless device.
|
||||||
- **Check for updates**: Check for firmware updates over WiFi.
|
- **Check for updates**: Check for firmware updates over WiFi.
|
||||||
|
|
||||||
### 3.6 Sleep Screen
|
### 3.6 Sleep Screen
|
||||||
|
|||||||
@ -118,7 +118,6 @@ bool CrossPointSettings::loadFromFile() {
|
|||||||
serialization::readString(inputFile, urlPath);
|
serialization::readString(inputFile, urlPath);
|
||||||
strncpy(opdsPath, urlPath.c_str(), sizeof(opdsPath) - 1);
|
strncpy(opdsPath, urlPath.c_str(), sizeof(opdsPath) - 1);
|
||||||
opdsPath[sizeof(opdsPath) - 1] = '\0';
|
opdsPath[sizeof(opdsPath) - 1] = '\0';
|
||||||
|
|
||||||
}
|
}
|
||||||
if (++settingsRead >= fileSettingsCount) break;
|
if (++settingsRead >= fileSettingsCount) break;
|
||||||
serialization::readPod(inputFile, textAntiAliasing);
|
serialization::readPod(inputFile, textAntiAliasing);
|
||||||
|
|||||||
@ -5,12 +5,12 @@
|
|||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "RemoteLibrarySettingsActivity.h"
|
|
||||||
#include "ClearCacheActivity.h"
|
#include "ClearCacheActivity.h"
|
||||||
#include "CrossPointSettings.h"
|
#include "CrossPointSettings.h"
|
||||||
#include "KOReaderSettingsActivity.h"
|
#include "KOReaderSettingsActivity.h"
|
||||||
#include "MappedInputManager.h"
|
#include "MappedInputManager.h"
|
||||||
#include "OtaUpdateActivity.h"
|
#include "OtaUpdateActivity.h"
|
||||||
|
#include "RemoteLibrarySettingsActivity.h"
|
||||||
#include "fontIds.h"
|
#include "fontIds.h"
|
||||||
|
|
||||||
void CategorySettingsActivity::taskTrampoline(void* param) {
|
void CategorySettingsActivity::taskTrampoline(void* param) {
|
||||||
|
|||||||
@ -97,24 +97,24 @@ void RemoteLibrarySettingsActivity::handleSelection() {
|
|||||||
exitActivity();
|
exitActivity();
|
||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
}));
|
}));
|
||||||
} else if (selectedIndex == 1) {
|
} else if (selectedIndex == 1) {
|
||||||
// OPDS Path
|
// OPDS Path
|
||||||
exitActivity();
|
exitActivity();
|
||||||
enterNewActivity(new KeyboardEntryActivity(
|
enterNewActivity(new KeyboardEntryActivity(
|
||||||
renderer, mappedInput, "OPDS Path", SETTINGS.opdsPath, 10,
|
renderer, mappedInput, "OPDS Path", SETTINGS.opdsPath, 10,
|
||||||
127, // maxLength
|
127, // maxLength
|
||||||
false, // not password
|
false, // not password
|
||||||
[this](const std::string& url) {
|
[this](const std::string& url) {
|
||||||
strncpy(SETTINGS.opdsPath, url.c_str(), sizeof(SETTINGS.opdsServerUrl) - 1);
|
strncpy(SETTINGS.opdsPath, url.c_str(), sizeof(SETTINGS.opdsServerUrl) - 1);
|
||||||
SETTINGS.opdsPath[sizeof(SETTINGS.opdsPath) - 1] = '\0';
|
SETTINGS.opdsPath[sizeof(SETTINGS.opdsPath) - 1] = '\0';
|
||||||
SETTINGS.saveToFile();
|
SETTINGS.saveToFile();
|
||||||
exitActivity();
|
exitActivity();
|
||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
},
|
},
|
||||||
[this]() {
|
[this]() {
|
||||||
exitActivity();
|
exitActivity();
|
||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
} else if (selectedIndex == 2) {
|
} else if (selectedIndex == 2) {
|
||||||
// Wireless Device - launch the activity (handles WiFi connection internally)
|
// Wireless Device - launch the activity (handles WiFi connection internally)
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
class RemoteLibrarySettingsActivity final : public ActivityWithSubactivity {
|
class RemoteLibrarySettingsActivity final : public ActivityWithSubactivity {
|
||||||
public:
|
public:
|
||||||
explicit RemoteLibrarySettingsActivity(GfxRenderer& renderer, MappedInputManager& mappedInput,
|
explicit RemoteLibrarySettingsActivity(GfxRenderer& renderer, MappedInputManager& mappedInput,
|
||||||
const std::function<void()>& onBack)
|
const std::function<void()>& onBack)
|
||||||
: ActivityWithSubactivity("RemoteLibrarySettings", renderer, mappedInput), onBack(onBack) {}
|
: ActivityWithSubactivity("RemoteLibrarySettings", renderer, mappedInput), onBack(onBack) {}
|
||||||
|
|
||||||
void onEnter() override;
|
void onEnter() override;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user