Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 137 | connect(m_tabWidget, &DolphinTabWidget::currentUrlChanged, | |||
---|---|---|---|---|---|
138 | this, &DolphinMainWindow::updateWindowTitle); | 138 | this, &DolphinMainWindow::updateWindowTitle); | ||
139 | setCentralWidget(m_tabWidget); | 139 | setCentralWidget(m_tabWidget); | ||
140 | 140 | | |||
141 | setupActions(); | 141 | setupActions(); | ||
142 | 142 | | |||
143 | m_actionHandler = new DolphinViewActionHandler(actionCollection(), this); | 143 | m_actionHandler = new DolphinViewActionHandler(actionCollection(), this); | ||
144 | connect(m_actionHandler, &DolphinViewActionHandler::actionBeingHandled, this, &DolphinMainWindow::clearStatusBar); | 144 | connect(m_actionHandler, &DolphinViewActionHandler::actionBeingHandled, this, &DolphinMainWindow::clearStatusBar); | ||
145 | connect(m_actionHandler, &DolphinViewActionHandler::createDirectoryTriggered, this, &DolphinMainWindow::createDirectory); | 145 | connect(m_actionHandler, &DolphinViewActionHandler::createDirectoryTriggered, this, &DolphinMainWindow::createDirectory); | ||
146 | connect(m_actionHandler, &DolphinViewActionHandler::createFileTriggered, this, &DolphinMainWindow::createFile); | ||||
146 | 147 | | |||
147 | m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler); | 148 | m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler); | ||
148 | connect(this, &DolphinMainWindow::urlChanged, | 149 | connect(this, &DolphinMainWindow::urlChanged, | ||
149 | m_remoteEncoding, &DolphinRemoteEncoding::slotAboutToOpenUrl); | 150 | m_remoteEncoding, &DolphinRemoteEncoding::slotAboutToOpenUrl); | ||
150 | 151 | | |||
151 | setupDockWidgets(); | 152 | setupDockWidgets(); | ||
152 | 153 | | |||
153 | setupGUI(Keys | Save | Create | ToolBar); | 154 | setupGUI(Keys | Save | Create | ToolBar); | ||
▲ Show 20 Lines • Show All 305 Lines • ▼ Show 20 Line(s) | |||||
459 | 460 | | |||
460 | void DolphinMainWindow::createDirectory() | 461 | void DolphinMainWindow::createDirectory() | ||
461 | { | 462 | { | ||
462 | m_newFileMenu->setViewShowsHiddenFiles(activeViewContainer()->view()->hiddenFilesShown()); | 463 | m_newFileMenu->setViewShowsHiddenFiles(activeViewContainer()->view()->hiddenFilesShown()); | ||
463 | m_newFileMenu->setPopupFiles(activeViewContainer()->url()); | 464 | m_newFileMenu->setPopupFiles(activeViewContainer()->url()); | ||
464 | m_newFileMenu->createDirectory(); | 465 | m_newFileMenu->createDirectory(); | ||
465 | } | 466 | } | ||
466 | 467 | | |||
468 | void DolphinMainWindow::createFile() | ||||
469 | { | ||||
470 | m_newFileMenu->setViewShowsHiddenFiles(activeViewContainer()->view()->hiddenFilesShown()); | ||||
471 | m_newFileMenu->setPopupFiles(activeViewContainer()->url()); | ||||
472 | m_newFileMenu->createFile(); | ||||
473 | } | ||||
474 | | ||||
467 | void DolphinMainWindow::quit() | 475 | void DolphinMainWindow::quit() | ||
468 | { | 476 | { | ||
469 | close(); | 477 | close(); | ||
470 | } | 478 | } | ||
471 | 479 | | |||
472 | void DolphinMainWindow::showErrorMessage(const QString& message) | 480 | void DolphinMainWindow::showErrorMessage(const QString& message) | ||
473 | { | 481 | { | ||
474 | m_activeViewContainer->showMessage(message, DolphinViewContainer::Error); | 482 | m_activeViewContainer->showMessage(message, DolphinViewContainer::Error); | ||
▲ Show 20 Lines • Show All 1135 Lines • Show Last 20 Lines |