|
|
|
@ -239,12 +239,6 @@ void CMainWindow::updateStatusBar()
|
|
|
|
|
|
|
|
|
|
void CMainWindow::createActions()
|
|
|
|
|
{
|
|
|
|
|
_openAction = new QAction(tr("&Open..."), this);
|
|
|
|
|
_openAction->setIcon(QIcon(Core::Constants::ICON_OPEN));
|
|
|
|
|
_openAction->setShortcut(QKeySequence::Open);
|
|
|
|
|
_openAction->setStatusTip(tr("Open an existing file"));
|
|
|
|
|
connect(_openAction, SIGNAL(triggered()), this, SLOT(open()));
|
|
|
|
|
|
|
|
|
|
_setBackColorAction = _GraphicsViewport->createSetBackgroundColor(this);
|
|
|
|
|
_setBackColorAction->setText(tr("Set &background color"));
|
|
|
|
|
_setBackColorAction->setIcon(QIcon(Constants::ICON_BGCOLOR));
|
|
|
|
@ -259,7 +253,7 @@ void CMainWindow::createActions()
|
|
|
|
|
connect(_reloadTexturesAction, SIGNAL(triggered()), this, SLOT(reloadTextures()));
|
|
|
|
|
|
|
|
|
|
_saveScreenshotAction = _GraphicsViewport->createSaveScreenshotAction(this);
|
|
|
|
|
_saveScreenshotAction->setText(tr("Save &Screenshot"));
|
|
|
|
|
_saveScreenshotAction->setText(tr("Save Screenshot"));
|
|
|
|
|
_saveScreenshotAction->setStatusTip(tr("Make a screenshot of the current viewport and save"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -267,14 +261,7 @@ void CMainWindow::createMenus()
|
|
|
|
|
{
|
|
|
|
|
Core::IMenuManager *menuManager = Core::ICore::instance()->menuManager();
|
|
|
|
|
|
|
|
|
|
// register actions for file menu
|
|
|
|
|
menuManager->registerAction(_openAction, "ObjectViewer.File.Open");
|
|
|
|
|
|
|
|
|
|
// add actions in file menu
|
|
|
|
|
QMenu *fileMenu = menuManager->menu(Core::Constants::M_FILE);
|
|
|
|
|
QAction *exitAction = menuManager->action(Core::Constants::EXIT);
|
|
|
|
|
//fileMenu->insertAction(exitAction, _openAction);
|
|
|
|
|
//fileMenu->insertSeparator(exitAction);
|
|
|
|
|
_openAction = menuManager->action(Core::Constants::OPEN);
|
|
|
|
|
|
|
|
|
|
// register actions for view menu
|
|
|
|
|
menuManager->registerAction(_setBackColorAction, "ObjectViewer.View.SetBackgroundColor");
|
|
|
|
|