00001 /*************************************************************************** 00002 * * 00003 * partmemo.h * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * Read the file COPYING for details. * 00011 * * 00012 * copyright: (C) 2003 by Jan Mueller * 00013 * email: janmueller7@hotmail.com * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef PartMemoForm_h 00018 #define PartMemoForm_h 00019 #include "partmemoform.h" 00020 #include "readwriteformbase.h" 00021 00022 class QToolBar; 00023 class QAction; 00024 class MainWindow; 00025 00026 class PartMemo: public ReadWriteFormBase { 00027 Q_OBJECT 00028 00029 private: 00030 PartMemo(const PartMemo&); 00031 PartMemo& operator=(const PartMemo&); 00032 00033 protected: 00034 PartMemoForm *partmemoform; 00035 QToolBar *toolbar; 00036 bool setData(); 00037 QAction *printAction; 00038 QAction *prAction; 00039 void initToolBar(); 00040 00041 public: 00042 PartMemo(LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name); 00043 ~PartMemo(); 00044 00045 protected slots: 00046 virtual void setWorkingGui(bool work); 00047 virtual void setReadonlyGui(bool ro); 00048 virtual void setInvalidGui(bool inv); 00049 virtual void print(); 00050 virtual void pocketReader(); 00051 }; 00052 #endif