///
virtual ~Application() {}
- ///
- virtual int createRegisteredView() = 0;
- ///
- virtual bool unregisterView(int id) = 0;
///
virtual bool closeAllViews() = 0;
#include "GuiView.h"
+#include "GuiApplication.h"
#include "GuiWorkArea.h"
#include "GuiKeySymbol.h"
#include "GuiMenubar.h"
#include "qt_helpers.h"
-#include "frontends/Application.h"
#include "frontends/Dialogs.h"
#include "support/filetools.h"
{
// we may have been called through the close window button
// which bypasses the LFUN machinery.
- if (!quitting_by_menu_ && theApp()->viewCount() == 1) {
+ if (!quitting_by_menu_ && guiApp->viewCount() == 1) {
if (!theBufferList().quitWriteAll()) {
close_event->ignore();
return;
d.toolbars_->saveToolbarInfo();
}
- theApp()->unregisterView(id());
- if (theApp()->viewCount() > 0) {
+ guiApp->unregisterView(id());
+ if (guiApp->viewCount() > 0) {
// Just close the window and do nothing else if this is not the
// last window.
close_event->accept();
// break;
case QEvent::WindowActivate: {
- theApp()->setCurrentView(*this);
+ guiApp->setCurrentView(*this);
if (d.current_work_area_) {
BufferView & bv = d.current_work_area_->bufferView();
connectBufferView(bv);