Warning, file /office/kile/src/dialogs/newfilewizard.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /***************************************************************************************** 0002 begin : Sat Apr 26 2003 0003 copyright : (C) 2003 by Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net) 0004 2007-2008 by Michel Ludwig (michel.ludwig@kdemail.net) 0005 *****************************************************************************************/ 0006 0007 /*************************************************************************** 0008 * * 0009 * This program is free software; you can redistribute it and/or modify * 0010 * it under the terms of the GNU General Public License as published by * 0011 * the Free Software Foundation; either version 2 of the License, or * 0012 * (at your option) any later version. * 0013 * * 0014 ***************************************************************************/ 0015 0016 #ifndef NEWFILEWIZARD_H 0017 #define NEWFILEWIZARD_H 0018 0019 #include <QString> 0020 #include <QCheckBox> 0021 0022 0023 #include <QDialog> 0024 #include <KLocalizedString> 0025 0026 #include "kileconstants.h" 0027 #include "templates.h" 0028 0029 class NewDocumentWidget; 0030 0031 class NewFileWizard : public QDialog 0032 { 0033 Q_OBJECT 0034 public: 0035 explicit NewFileWizard(KileTemplate::Manager *manager, KileDocument::Type startType = KileDocument::LaTeX, 0036 QWidget *parent = Q_NULLPTR, const char *name = Q_NULLPTR); 0037 ~NewFileWizard(); 0038 0039 public: 0040 TemplateItem* getSelection() const; 0041 bool useWizard(); 0042 0043 protected Q_SLOTS: 0044 void okButtonClicked(); 0045 0046 void slotActivated(int index); 0047 0048 void restoreSelectedIcon(); 0049 0050 protected: 0051 KileTemplate::Manager *m_templateManager; 0052 NewDocumentWidget* m_newDocumentWidget; 0053 int m_currentlyDisplayedType; // not a document type, only a local type! 0054 0055 QString getConfigKey(int index); 0056 0057 void storeSelectedIcon(); 0058 void displayType(int index); 0059 }; 0060 0061 #endif