Skip to content

Commit

Permalink
Finishing initial Os map implementation w/ outliner operations, menu …
Browse files Browse the repository at this point in the history
…enable/disable rerite, reliable key/path persitence which resolves #1200
  • Loading branch information
dvorka committed Dec 25, 2023
1 parent 5933862 commit 7a65251
Show file tree
Hide file tree
Showing 29 changed files with 1,584 additions and 1,165 deletions.
395 changes: 199 additions & 196 deletions app/resources/qt/translations/mindforger_cs.ts

Large diffs are not rendered by default.

Binary file modified app/resources/qt/translations/mindforger_en.qm
Binary file not shown.
399 changes: 201 additions & 198 deletions app/resources/qt/translations/mindforger_en.ts

Large diffs are not rendered by default.

395 changes: 199 additions & 196 deletions app/resources/qt/translations/mindforger_nerd_cs.ts

Large diffs are not rendered by default.

395 changes: 199 additions & 196 deletions app/resources/qt/translations/mindforger_nerd_en.ts

Large diffs are not rendered by default.

395 changes: 199 additions & 196 deletions app/resources/qt/translations/mindforger_zh_cn.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/src/qt/cli_n_breadcrumbs_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ CliAndBreadcrumbsView::CliAndBreadcrumbsView(QWidget* parent, bool zenMode)
cliCompleter->setCaseSensitivity(Qt::CaseSensitivity::CaseInsensitive);
cliCompleter->setCompletionMode(QCompleter::PopupCompletion);
cli->setCompleter(cliCompleter);
cli->setText("Use \"? ...\" to chat (Alt-x), \"> ...\" for commands (Ctrl-/), or type a phrase to search.");
cli->setText("Enter a prompt - \"? .\" for help, \"/ .\" to chat (Alt-x), \"> .\" run command (Ctrl-/), or type a phrase to find.");
layout->addWidget(cli);

showBreadcrumb();
Expand Down
1 change: 1 addition & 0 deletions app/src/qt/dialogs/configuration_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ ConfigurationDialog::AppTab::AppTab(QWidget *parent)
startupCombo->addItem(QString{START_TO_DASHBOARD});
#endif
startupCombo->addItem(QString{START_TO_OUTLINES});
startupCombo->addItem(QString{START_TO_OUTLINES_TREE});
startupCombo->addItem(QString{START_TO_TAGS});
startupCombo->addItem(QString{START_TO_RECENT});
#ifdef MF_BUG
Expand Down
56 changes: 50 additions & 6 deletions app/src/qt/main_menu_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,24 @@ MainMenuPresenter::MainMenuPresenter(MainWindowPresenter* mwp)
QObject::connect(
view->actionOutlineClone, SIGNAL(triggered()),
mwp, SLOT(doActionOutlineClone()));
QObject::connect(
view->actionOutlinePromote, SIGNAL(triggered()),
mwp, SLOT(doActionNotePromote()));
QObject::connect(
view->actionOutlineDemote, SIGNAL(triggered()),
mwp, SLOT(doActionNoteDemote()));
QObject::connect(
view->actionOutlineFirst, SIGNAL(triggered()),
mwp, SLOT(doActionNoteFirst()));
QObject::connect(
view->actionOutlineUp, SIGNAL(triggered()),
mwp, SLOT(doActionNoteUp()));
QObject::connect(
view->actionOutlineDown, SIGNAL(triggered()),
mwp, SLOT(doActionNoteDown()));
QObject::connect(
view->actionOutlineLast, SIGNAL(triggered()),
mwp, SLOT(doActionNoteLast()));
QObject::connect(
view->actionOutlineHtmlExport, SIGNAL(triggered()),
mwp, SLOT(doActionOutlineHtmlExport()));
Expand Down Expand Up @@ -325,37 +343,63 @@ MainMenuPresenter::~MainMenuPresenter()

void MainMenuPresenter::showFacetDashboard()
{
view->showFacetOutlineList(config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY);
view->showFacetOutlineList(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetOrganizerList()
{
view->showFacetOrganizerList(config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY);
view->showFacetOrganizerList(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetOrganizer()
{
view->showFacetOrganizerView(config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY);
view->showFacetOrganizerView(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetNavigator()
{
view->showFacetNavigator();
}

void MainMenuPresenter::showFacetOutlinesMap()
{
view->showFacetOutlinesMap(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetOutlineList()
{
view->showFacetOutlineList(config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY);
view->showFacetOutlineList(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetOutlineView()
{
view->showFacetOutlineView(config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY);
view->showFacetOutlineView(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetNoteEdit()
{
view->showFacetNoteEdit(config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY);
view->showFacetNoteEdit(
config.getActiveRepository()->getMode()==Repository::RepositoryMode::REPOSITORY,
config.getActiveRepository()->getType()==Repository::RepositoryType::MINDFORGER
);
}

void MainMenuPresenter::showFacetMindThink()
Expand Down
1 change: 1 addition & 0 deletions app/src/qt/main_menu_presenter.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class MainMenuPresenter : public QObject
void showFacetOrganizer();
void showFacetNavigator();

void showFacetOutlinesMap();
void showFacetOutlineList();
void showFacetOutlineView();
void showFacetNoteEdit();
Expand Down
Loading

0 comments on commit 7a65251

Please sign in to comment.