//**************************************************************************** //! \file tmainwindow.hpp //! \date 02-10-2004 //! \class TMainWindow //! \brief The main window of the Weird Reader //**************************************************************************** // This file is part of Weird Reader. // // The Weird Reader is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // The Weird Reader is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Weird Reader; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //**************************************************************************** #ifndef TMAINWINDOW_HPP #define TMAINWINDOW_HPP #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "wcommentui.hpp" #include "wtexter.hpp" #include "tstatusbar.hpp" class TMainWindow : public KMainWindow { Q_OBJECT WCommentUI *cUI; //!< user interface for the comments architecture WTextHandler *tePage; //!< The Page Display KPushButton *pbBackward; //!< Backward Browsing Button KPushButton *pbForward; //!< Forward Browsing Button TStatusBar *statusBar; //!< The Widgets Status Bar KMenuBar *mainMenu; //!< The Widgets Main Menu Bar KPopupMenu *pmFile; //!< The File Menu KPopupMenu *pmEdit; //!< The Edit Menu KPopupMenu *pmHelp; //!< The Help Menu KAction *aHelpAbout; //!< The Help About Action KAction *aFileOpen; //!< The Open File Action KAction *aExit; //!< The Exit Action KAction *aEditFind; //!< The Search Action KAction *aEditCb; //!< The Comment Browser Action KActionCollection *actions; //!< The Main Action Collection QFrame *cF; //!< Main Widget of the Main Window QToolTipGroup *tipGroup; //!< Tooltipgroup to show the tips in the statusbar QBoxLayout *topLayout; //!< The Main Layout QBoxLayout *buttonLayout; //!< Layout for the Browsing Buttons protected slots: void fileOpen(); //!< File Open Menu Action void editFind(); //!< Edit Find Menu Action void helpAbout(); //!< Help About Menu Action // void pbBackPressed(); //!< pbBackward Pressed Action // void pbForPressed(); //!< pbForward Pressed Action public: //! \brief The Constructor derived from KMainWindow //! \param parent The parent Widget //! \param name The name of the Widget //! \param f The Widget Flags TMainWindow ( QWidget *parent = 0, const char * name = 0, WFlags f = WType_TopLevel); ~TMainWindow() {}; }; #endif //TMAINWINDOW_HPP