File indexing completed on 2024-04-14 15:17:41
0001 /******************************************************************************** 0002 Copyright (C) 2012 by Michel Ludwig (michel.ludwig@kdemail.net) 0003 ********************************************************************************/ 0004 0005 /*************************************************************************** 0006 * * 0007 * This program is free software; you can redistribute it and/or modify * 0008 * it under the terms of the GNU General Public License as published by * 0009 * the Free Software Foundation; either version 2 of the License, or * 0010 * (at your option) any later version. * 0011 * * 0012 ***************************************************************************/ 0013 0014 #ifndef LIVEPREVIEW_UTILS_H 0015 #define LIVEPREVIEW_UTILS_H 0016 0017 #include <QString> 0018 0019 #include "tool_utils.h" 0020 0021 #define LIVEPREVIEW_DEFAULT_TOOL_NAME "LivePreview-PDFLaTeX" 0022 0023 namespace KileTool { 0024 0025 class LivePreviewUserStatusHandler 0026 { 0027 public: 0028 LivePreviewUserStatusHandler(); 0029 0030 bool userSpecifiedLivePreviewStatus() const; 0031 bool isLivePreviewEnabled() const; 0032 void setLivePreviewEnabled(bool b); 0033 0034 ToolConfigPair livePreviewTool() const; 0035 // returns 'true' iff the live preview type has changed 0036 bool setLivePreviewTool(const ToolConfigPair& p); 0037 0038 private: 0039 bool m_userSpecifiedLivePreviewStatus; 0040 bool m_livePreviewEnabled; 0041 ToolConfigPair m_livePreviewTool; 0042 }; 0043 0044 } 0045 0046 #endif