Brings ~55 mod-exclusive files to the upstream-based mod/master-resync branch: Activities (migrated to new ActivityManager pattern): - Clock/Time: SetTimeActivity, SetTimezoneOffsetActivity, NtpSyncActivity - Dictionary: DictionaryDefinitionActivity, DictionarySuggestionsActivity, DictionaryWordSelectActivity, LookedUpWordsActivity - Bookmark: EpubReaderBookmarkSelectionActivity - Book management: BookManageMenuActivity, EndOfBookMenuActivity - OPDS: OpdsServerListActivity, OpdsSettingsActivity - Utility: DirectoryPickerActivity, NumericStepperActivity Utilities (unchanged): - BookManager, BookSettings, BookmarkStore, BootNtpSync - Dictionary, LookupHistory, TimeSync, OpdsServerStore Libraries: PlaceholderCover, TableData, ChapterXPathIndexer Scripts: inject_mod_version, generate_book_icon, preview_placeholder_cover Docs: KOReader sync XPath mapping Migration changes: - ActivityWithSubactivity -> Activity base class - Callback constructors -> finish()/setResult() pattern - enterNewActivity() -> startActivityForResult() - Activity::RenderLock&& -> RenderLock&& These files won't compile yet - they reference mod settings and I18n strings that will be added in subsequent phases. Made-with: Cursor
15 lines
552 B
C++
15 lines
552 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
/// Generates simple 1-bit BMP placeholder covers with title/author text
|
|
/// for books that have no embedded cover image.
|
|
class PlaceholderCoverGenerator {
|
|
public:
|
|
/// Generate a placeholder cover BMP with title and author text.
|
|
/// The BMP is written to outputPath as a 1-bit black-and-white image.
|
|
/// Returns true if the file was written successfully.
|
|
static bool generate(const std::string& outputPath, const std::string& title, const std::string& author, int width,
|
|
int height);
|
|
};
|