• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

keduca

keducabuilder.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           keducabuilder.h  -  description
00003                              -------------------
00004     begin                : Sat May 26 2001
00005     copyright            : (C) 2001 by Javier Campos
00006     email                : javi@asyris.org
00007 ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef KEDUCABUILDER_H
00019 #define KEDUCABUILDER_H
00020 
00021 #include "../libkeduca/fileread.h"
00022 
00023 #include <kmainwindow.h>
00024 
00025 #include <klistbox.h>
00026 #include <kaction.h>
00027 
00028 #include <qtextview.h>
00029 #include <qsplitter.h>
00030 
00037 class KEducaBuilder : public KMainWindow  {
00038     Q_OBJECT
00039 
00040 public:
00041     KEducaBuilder(QWidget* parent=0, const char *name=0, WFlags f = WType_TopLevel | WDestructiveClose);
00042     ~KEducaBuilder();
00044     bool startChooser();
00046     void initGallery(const KURL &urlFile = KURL());
00047 
00048 private:
00049 
00050     // Private methods
00051 
00053     void init();
00055     void initMenuBar();
00057     void configWrite();
00059     void configRead();
00061     bool checkSave();
00062 
00064     bool fileSave();
00067     bool fileSaveAs();
00068 
00071     bool currentFileMayBeReplaced();
00072 
00073     // Private attributes
00074 
00076     FileRead *_keducaFile;
00078     KRecentFilesAction *_recentFiles;
00080     KListBox *_listAnswer;
00082     QTextView *_preview;
00084     QSplitter *_split;
00086     bool _isOpenFile;
00087     QString _nativeFormat;
00088 
00089 public slots:
00091     void slotFileOpenURL( const KURL &url );
00093     void slotFileOpenNew();
00094 
00095 private slots:
00097     void slotFileOpen();
00099     void slotPreview( QListBoxItem *item );
00101     bool queryClose();
00103     void slotEdit();
00105     void slotAdd();
00107     void slotRemove();
00109     void slotDown();
00111     void slotUp();
00113     void slotFileSaveAs();
00115     void slotFileSave();
00117     void slotFilePrint();
00119     int slotHeader();
00121     void slotGallery();
00123     void slotEditbyList(QListBoxItem *item);
00124 };
00125 
00126 #endif

keduca

Skip menu "keduca"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal