Commit 00d2d7e7 authored by WINTZ Julien's avatar WINTZ Julien

Thus reducing other APIs.

parent 1f286c0a
......@@ -29,7 +29,6 @@ public:
public:
dtkWidgetsMenu *menu_files = nullptr;
dtkWidgetsMenu *menu_window = nullptr;
dtkWidgetsMenu *menu_themes = nullptr;
dtkWidgetsMenu *menu_about = nullptr;
};
......@@ -57,7 +56,6 @@ void dtkWidgetsMainWindow::populate(void)
Q_UNUSED(this->menubar());
Q_UNUSED(this->populateFileMenu());
Q_UNUSED(this->populateWindowMenu());
Q_UNUSED(this->populateThemesMenu());
Q_UNUSED(this->populateAboutMenu());
}
......@@ -70,25 +68,11 @@ dtkWidgetsMenu *dtkWidgetsMainWindow::populateFileMenu(void)
d->menu_files->addItem(0, "Open Recent");
d->menu_files->addItem(0, "Save");
d->menu_files->addItem(0, "Save As");
d->menu_files->addItem(0, "Close");
d->menu_files->addItem(0, "Close All");
}
return d->menu_files;
}
dtkWidgetsMenu *dtkWidgetsMainWindow::populateWindowMenu(void)
{
if(!d->menu_window) {
d->menu_window = d->menubar->addMenu(fa::windowmaximize, "Windows");
d->menu_window->addItem(0, "Minimize");
d->menu_window->addItem(0, "Maximize");
d->menu_window->addItem(0, "Close");
}
return d->menu_window;
}
dtkWidgetsMenu *dtkWidgetsMainWindow::populateThemesMenu(void)
{
if(!d->menu_themes) {
......
......@@ -41,7 +41,6 @@ public:
protected:
dtkWidgetsMenu *populateFileMenu(void);
dtkWidgetsMenu *populateWindowMenu(void);
dtkWidgetsMenu *populateThemesMenu(void);
dtkWidgetsMenu *populateAboutMenu(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment