00001 #ifndef __FONT_VIEWER_APP_H__ 00002 #define __FONT_VIEWER_APP_H__ 00003 00005 // 00006 // Class Name : KFI::CFontViewerApp, KFI::CFontViewAppMainWindow 00007 // Author : Craig Drummond 00008 // Project : K Font Installer (kfontinst-kcontrol) 00009 // Creation Date : 30/04/2004 00010 // Version : $Revision: 465343 $ $Date: 2005-09-29 08:24:25 -0500 (Thu, 29 Sep 2005) $ 00011 // 00013 // 00014 // This program is free software; you can redistribute it and/or 00015 // modify it under the terms of the GNU General Public License 00016 // as published by the Free Software Foundation; either version 2 00017 // of the License, or (at your option) any later version. 00018 // 00019 // This program is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 // GNU General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU General Public License 00025 // along with this program; if not, write to the Free Software 00026 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00027 // 00029 // (C) Craig Drummond, 2004 00031 00032 #include <kapplication.h> 00033 #include <kparts/part.h> 00034 #include <kparts/mainwindow.h> 00035 00036 namespace KFI 00037 { 00038 00039 class CFontViewerAppMainWindow : public KParts::MainWindow 00040 { 00041 Q_OBJECT 00042 00043 public: 00044 00045 CFontViewerAppMainWindow(); 00046 virtual ~CFontViewerAppMainWindow(); 00047 00048 public slots: 00049 00050 void fileOpen(); 00051 00052 private: 00053 00054 KParts::ReadOnlyPart *itsPreview; 00055 00056 }; 00057 00058 class CFontViewerApp : public KApplication 00059 { 00060 public: 00061 00062 CFontViewerApp(); 00063 virtual ~CFontViewerApp() {} 00064 }; 00065 00066 } 00067 00068 #endif
1.6.1