|
|
/*************************************************************************** ktexshell.h - description ------------------- begin : Son Okt 1 17:17:42 CEST 2000 copyright : (C) 2000 by Arnd Fischer email : lxuser@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program 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. * * * ***************************************************************************/ #ifndef KTEXSHELL_H #define KTEXSHELL_H #include <qwidget.h> #include <qmultilinedit.h> #include <kapp.h> #include <kfiledialog.h> #include <ktmainwindow.h> #include <kprocess.h> #include <kaccel.h> #include <qstring.h> class KTeXShell : public KTMainWindow { Q_OBJECT public: /** construtor */ KTeXShell(); /** destructor */ ~KTeXShell(); private: QWidget *w; KAccel *accel; enum{TOOLBAR_QUIT, TOOLBAR_HELP}; enum{STATUSBAR_READY}; protected: // Protected methods /** set up the status bar */ void setupStatusbar(); /** set up the toolbar */ void setupToolbar(); /** set up the menubar */ void setupMenubar(); /** make other filenames from .tex-name */ char* tex2other(const char*, const char*); /** the primary file */ QString primary; /** the output widget */ QMultiLineEdit *outwidget; /** the external processes */ KShellProcess *process; protected slots: // Protected slots /** slot: quit the app */ void slotQuit(); /** slot: which toolbar item is clicked */ void slotToolbarClicked(int item); /** set the selected file als primary */ void slotSetPrimary(); /** edit the primary file */ void slotEditPrimary(); /** call the dvi viewer */ void slotView(); /** call TeX to compose the document */ void slotCompose(); /** filter the TeX- (and other) Output */ void slotFilterOutput(KProcess*, char* buffer, int len); /** Process is done */ void processOK(KProcess*); signals: // Signals /** provides the process output suitable for QMultiLineEdir::append */ void signalProcessOutput(const char *buf); }; #endif
Generated by: arnd@alpha4 on Mon Oct 2 08:47:48 2000, using kdoc 2.0a35. |