39 #include <QWaitCondition> 137 virtual bool canOpenFile(
const QString& file) = 0;
142 virtual bool canOpenData(
const QByteArray& data) = 0;
153 virtual bool openFile(
const QString& file) = 0;
186 int labelwidth,
int labelheight);
191 void previewAvailable(
const QImage& preview,
bool latexerror);
221 Q_PROPERTY(
QString widgetStyle READ widgetStyle WRITE setWidgetStyle)
228 void startupFinished();
236 virtual QFont txtLatexFont()
const;
237 virtual QFont txtPreambleFont()
const;
254 altersetting_OutlineFonts
280 QHash<QWidget*,bool> prepareAllWindowShownStatus(
bool visibleStatus,
bool mainWindowToo =
false);
284 void registerHelpLinkAction(
const QString& path,
QObject *
object,
const char * member,
bool wantUrlParam);
292 bool canOpenFile(
const QString& fileName);
294 bool canOpenData(
const QMimeData *mimeData);
301 void stylesChanged();
303 void applicationLocaleChanged(
const QString& newLocale);
309 void slotClearLatex();
311 void slotLibrary(
bool showlib);
312 void slotLibraryButtonRefreshState(
bool on);
313 void slotSymbols(
bool showsymbs =
true);
314 void slotSymbolsButtonRefreshState(
bool on);
315 void slotExpandOrShrink();
316 void slotExpand(
bool expanded =
true);
317 void slotSetLatex(
const QString& latex);
318 void slotSetMathMode(
const QString& mathmode);
319 void slotSetPreamble(
const QString& preamble);
322 void slotEnsurePreambleCmd(
const QString& line);
323 void slotSetDPI(
int DPI);
324 void slotSetFgColor(
const QColor& fgcolor);
325 void slotSetFgColor(
const QString& fgcolor);
326 void slotSetBgColor(
const QColor& bgcolor);
327 void slotSetBgColor(
const QString& bgcolor);
332 bool openFile(
const QString& file);
334 bool openData(
const QMimeData *mimeData,
bool *openerFound = NULL);
337 bool openLibFiles(
const QStringList& files,
bool showLibrary =
true);
338 bool openLibFile(
const QString& file,
bool showLibrary =
true);
340 void setApplicationLocale(
const QString& locale);
342 void retranslateUi(
bool alsoBaseUi =
true);
344 bool loadDefaultStyle();
345 bool loadNamedStyle(
const QString& sty);
349 void slotSave(
const QString& suggestedFname = QString::null);
350 void slotSetExportProfile(
const QString& exportProfile);
352 void slotActivateEditor();
353 void slotActivateEditorSelectAll();
355 void slotShowBigPreview();
357 void slotPresetDPISender();
358 void slotLoadStyle(
int stylenum);
360 void slotSaveStyle();
361 void slotStyleManager();
365 void refreshWindowSizes();
367 void refreshShowCorrectClearButton();
369 void refreshStylePopupMenus();
372 void loadLibrarySavedState();
374 void restoreFromLibrary(
const KLFLibEntry& entry, uint restoreflags);
378 void insertDelimiter(
const QString& delim,
int charsBack = 1);
380 void saveLibraryState();
383 void addWhatsNewText(
const QString& htmlSnipplet);
387 void showSettingsHelpLinkAction(
const QUrl& link);
388 void helpLinkAction(
const QUrl& link);
390 void setWidgetStyle(
const QString& qtstyle);
392 void setTxtLatexFont(
const QFont& f);
393 void setTxtPreambleFont(
const QFont& f);
395 void showRealTimePreview(
const QImage& preview,
bool latexerror);
397 void updatePreviewBuilderThreadInput();
399 void displayError(
const QString& errormsg);
403 void refreshAllWindowStyleSheets();
405 void setQuitOnClose(
bool quitOnClose);
411 void slotLoadStyleAct();
413 void slotOpenHistoryLibraryResource();
415 void slotNewSymbolTyped(
const QString& symbol);
416 void slotPopupClose();
417 void slotPopupAction(
const QUrl& helpLinkUrl);
418 void slotPopupAcceptAll();
421 void slotInsertMissingPackagesFromActionSender();
438 : path(p), reciever(obj), memberFunc(func), wantParam(param) { }
450 bool try_load_style_list(
const QString& fileName);
470 void showExportMsgLabel(
const QString& msg,
int timeout = 3000);
486 bool x11Event(XEvent *event);
511 bool wantHtmlText =
true);
QHash< QWidget *, bool > pSavedWindowShownStatus
KLFLatexSymbols * latexSymbolsWidget()
QWaitCondition _condnewinfoavail
KLFStyleManager * mStyleManager
bool _evaloutput_uptodate
QList< KLFAbstractOutputSaver * > pOutputSavers
QHash< QWidget *, QRect > pLastWindowGeometries
QList< HelpLinkAction > mHelpLinkActions
KLFAbstractDataOpener(KLFMainWin *mainwin)
QHash< QWidget *, bool > pLastWindowShownStatus
KLFLibResourceEngine * mHistoryLibResource
QList< QWidget * > pWindowList
Dialog that presents a selection of latex symbols to user.
KLFBackend::klfOutput currentKLFBackendOutput() const
Structure that stores klatexformula's configuration in memory.
QList< KLFAbstractDataOpener * > pDataOpeners
KLFAboutDialog * mAboutDialog
KLFBackend::klfOutput _output
QString widgetStyle() const
HelpLinkAction(const QString &p, QObject *obj, const char *func, bool param)
KLFBackend::klfSettings _settings
KLFBackend::klfSettings _settings
A text edit field that edits latex code.
KLFWhatsNewDialog * mWhatsNewDialog
KLFBackend::klfSettings currentSettings() const
KLFSettings * mSettingsDialog
virtual ~KLFAbstractOutputSaver()
KLFBackend::klfSettings backendSettings() const
QList< QAction * > pExportProfileQuickMenuActionList
An entry (single formula) in the library.
KLFLibBrowser * libBrowserWidget()
KLFLibBrowser * mLibBrowser
KLFLatexSymbols * mLatexSymbols
KLFBackend::klfInput _input
An abstract resource engine.
KLFPreviewBuilderThread * mPreviewBuilderThread
virtual ~KLFAbstractDataOpener()
KLFStyleManager * styleManagerWidget()
int pExportMsgLabelTimerId
KLFSettings * settingsDialog()