• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_QtFrameImpl.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 /* AbiSource Application Framework
00003  * Copyright (C) 2012 Hubert Figuiere
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 
00022 #ifndef XAP_QTFRAMEIMPL_H
00023 #define XAP_QTFRAMEIMPL_H
00024 
00025 #include <QTextEdit>
00026 #include <QStatusBar>
00027 
00028 #include "xap_FrameImpl.h"
00029 #include "xap_QtDialogFactory.h"
00030 
00031 class QMainWindow;
00032 class EV_QtMenuBar;
00033 
00034 class XAP_QtFrameImpl
00035     : public XAP_FrameImpl
00036 {
00037 public:
00038     XAP_QtFrameImpl(XAP_Frame *pFrame);
00039     friend class XAP_Frame;
00040     virtual ~XAP_QtFrameImpl();
00041 
00042     QMainWindow* getTopLevel() const
00043         { return m_topLevel; }
00044     virtual void _createTopLevelWindow();
00045 
00046 protected:
00047     EV_QtMenuBar *      m_pQtMenuBar;
00048     QTextEdit *     m_wSunkenBox;
00049     QStatusBar *        m_wStatusBar;
00050 
00051     virtual bool _close();
00052     virtual bool _raise();
00053     virtual bool _show();
00054 
00055     virtual void _nullUpdate () const; // a virtual member function in xap_Frame
00056     virtual void _initialize();
00057 
00058     virtual QTextEdit * _createDocumentWindow() = 0;
00059     virtual QStatusBar * _createStatusBarWindow() = 0;
00060 
00061     virtual void _setCursor(GR_Graphics::Cursor cursor);
00062 
00063     virtual XAP_DialogFactory * _getDialogFactory();
00064     virtual EV_Menu * _getMainMenu();
00065     virtual EV_Toolbar * _newToolbar(XAP_Frame *pFrame,
00066                                      const char *szLayout,
00067                                      const char *szLanguage);
00068 
00069     virtual bool _runModalContextMenu(AV_View * pView, const char * szMenuName,
00070                                       UT_sint32 x, UT_sint32 y);
00071 
00072     virtual void _queue_resize();
00073     virtual void _rebuildMenus(void);
00074     virtual void _rebuildToolbar(UT_uint32 ibar);
00075 
00076     virtual void _setFullScreen(bool changeToFullScreen);
00077 
00078 private:
00079     XAP_QtDialogFactory        m_dialogFactory;
00080     QMainWindow* m_topLevel;
00081 };
00082 
00083 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1