62 |
#include "gfx/builtinpix.h" |
#include "gfx/builtinpix.h" |
63 |
#include "MacroEditor.h" |
#include "MacroEditor.h" |
64 |
#include "MacrosSetup.h" |
#include "MacrosSetup.h" |
65 |
|
#if defined(__APPLE__) |
66 |
|
# include "MacHelper.h" |
67 |
|
#endif |
68 |
|
|
69 |
MainWindow::MainWindow() : |
MainWindow::MainWindow() : |
70 |
m_DimRegionChooser(*this), |
m_DimRegionChooser(*this), |
878 |
|
|
879 |
updateMacroMenu(); |
updateMacroMenu(); |
880 |
} |
} |
881 |
|
|
882 |
|
Glib::signal_idle().connect_once( |
883 |
|
sigc::mem_fun(*this, &MainWindow::bringToFront), |
884 |
|
200 |
885 |
|
); |
886 |
} |
} |
887 |
|
|
888 |
MainWindow::~MainWindow() |
MainWindow::~MainWindow() |
889 |
{ |
{ |
890 |
} |
} |
891 |
|
|
892 |
|
void MainWindow::bringToFront() { |
893 |
|
#if defined(__APPLE__) |
894 |
|
macRaiseAppWindow(); |
895 |
|
#endif |
896 |
|
raise(); |
897 |
|
present(); |
898 |
|
} |
899 |
|
|
900 |
void MainWindow::updateMacroMenu() { |
void MainWindow::updateMacroMenu() { |
901 |
Gtk::Menu* menuMacro = dynamic_cast<Gtk::MenuItem*>( |
Gtk::Menu* menuMacro = dynamic_cast<Gtk::MenuItem*>( |
902 |
uiManager->get_widget("/MenuBar/MenuMacro") |
uiManager->get_widget("/MenuBar/MenuMacro") |