mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-29 04:28:20 -06:00
refactor(ui-egui): move tab_context.rs into menus/
This commit is contained in:
@@ -49,7 +49,6 @@ mod panels;
|
||||
pub use print_ui::{Handling as PrintHandling, OptionsSource, PrintDraft, PrinterSource, Which as PrintWhich, system_printers};
|
||||
pub use redact_ui::{HiddenDraft, PagesDraft as RedactPagesDraft, RedactPrefs, SearchDraft as RedactSearchDraft, SearchMode as RedactSearchMode};
|
||||
pub mod i18n;
|
||||
mod tab_context;
|
||||
pub mod theme;
|
||||
mod widgets;
|
||||
|
||||
@@ -96,6 +95,7 @@ use dialogs::standards_ui;
|
||||
use dialogs::word_count_ui;
|
||||
pub use home::folders_ui;
|
||||
pub use hooks::{FailedInbox, HostDirtyFn, HostSaveFn, Inbox, OsEvent, OsEventsFn};
|
||||
use menus::tab_context;
|
||||
use panels::all_tools_ui;
|
||||
use panels::comments_panel;
|
||||
use panels::format_text_ui;
|
||||
|
||||
@@ -18,6 +18,8 @@ use crate::canvas::{Fit, PageLayout};
|
||||
use crate::theme::ThemePreference;
|
||||
use crate::{PdfCraftApp, RightPanel};
|
||||
|
||||
pub(super) mod tab_context;
|
||||
|
||||
/// The app's name in the menus the layouts write (About, Hide, Quit).
|
||||
pub(crate) const APP_NAME: &str = "PdfCraft";
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ fn reveal_command(platform: &str, path: &std::path::Path) -> Result<(&'static st
|
||||
#[cfg(all(test, not(target_arch = "wasm32")))]
|
||||
mod tests {
|
||||
use super::*;
|
||||
const PDF: &[u8] = include_bytes!("../tests/data/form.pdf");
|
||||
const PDF: &[u8] = include_bytes!("../../tests/data/form.pdf");
|
||||
|
||||
#[test]
|
||||
fn confirmed_close_uses_id_and_cancel_keeps_history_empty() {
|
||||
@@ -297,7 +297,7 @@ mod ui_tests {
|
||||
let mut app = PdfCraftApp::new();
|
||||
app.set_option("language", "en").unwrap();
|
||||
for name in ["first.pdf", "second.pdf"] {
|
||||
app.open_bytes(name, None, include_bytes!("../tests/data/form.pdf").to_vec()).unwrap();
|
||||
app.open_bytes(name, None, include_bytes!("../../tests/data/form.pdf").to_vec()).unwrap();
|
||||
}
|
||||
app
|
||||
});
|
||||
Reference in New Issue
Block a user