10 #include "desiteCoreGui.h" 12 #include <domainBim/ProjectClosedInfo.h> 13 #include <domainBim/ProjectOpenedInfo.h> 16 class DataBaseWebInterfaceWidget;
21 class TextBrowserProgress;
27 class ExportPreviewWidget;
28 class WebViewWrapperWidget;
34 class NavigatorProject;
35 class NavigatorProjectAPI;
41 class WebFormsProgressWidget;
64 bool getOpeningFlag()
const {
return _isOpening; }
65 void setOpeningFlag(
bool opening ) { _isOpening = opening; }
67 void enableWebInspector(
bool enable);
68 void showButtonConsole(
bool v);
69 void showButtonPrintByTemplate(
bool v);
70 void showTitle(
bool v);
71 void changeTitle(
const QString& title);
73 void updateHomeButtonToolTip();
78 void setupTouchConfig(QObject* objectForTouchEventFilter,
const QString& footerStylesheet);
83 modelGui::WebViewWrapperWidget* getWebFormPtr();
88 void addOrRenameBookmark(
const QString& url,
const QString& suggestedName);
93 void lockTable(
bool v);
95 void onDbUpdateFinished();
99 #pragma region HEADER, FOOTER, DEBUG CONSOLE 105 void setFooterVisible(
bool visible );
110 void setHeaderVisible(
bool visible );
115 void showNavigation(
bool visible);
120 void showConsole(
bool);
126 #pragma region PRINTING 144 QString createPdfByTemplate(QString templateFileName, QString pdfFileName,
bool openPdf =
true);
187 void setPaperSize(
int paperSize);
195 void setOrientation(
int orientation);
202 void setPageMargins(
double L,
double R,
double T,
double B);
205 double getPageMarginTop();
207 double getPageMarginBottom();
209 double getPageMarginLeft();
211 double getPageMarginRight();
220 double getLogicalDpi();
226 #pragma region DATABASE 239 void processUpdate();
268 void setImmediateUpdate(
bool);
274 #pragma region URL, PAGE 285 void loadUrl( QString url );
301 void addSuffix(QString suffix);
306 void resetSuffixList();
318 void redirectUrl(QString originalUrl, QString redirectUrl) { _redirectURLs.insert(originalUrl, redirectUrl); }
327 double getZoomFactor();
332 void setZoomFactor(
double v);
341 #pragma region PROGRESS 365 void showProgress(
const QVariantMap& v );
379 void clearProgressMessage();
386 void showProgressMessage(
const QString& );
393 void showProgressMessageLabel(
const QString& );
401 void showProgressValue(
double v );
406 void showProgressMessageConsole( QString v );
420 int getProgressState();
437 void enableInterruptJavaScriptMsg(
bool enable );
443 void clearMemoryCaches();
449 void disableObjectCache();
456 void delegateSimulationActivated(
bool);
458 void delegateSimulationDateChanged(QDateTime);
465 void onImmediateUpdateChanged(
bool);
466 void onImmediateUpdateClicked();
477 void onAddBookmarkClicked();
482 void printPreview(QPrinter*);
484 void onProjectAboutToBeOpened();
485 void onProjectOpened(domainBim::ProjectOpenedInfo);
486 void onProjectClosed(domainBim::ProjectClosedInfo);
488 void printByTemplate(QString templateFN);
490 void updatePrintMenu();
491 void onMenuItemTriggered(QAction* action);
494 void showPrintTools();
496 void toggleNavigation();
501 void _clearDebugOutput();
506 void _onContextMenuRequested_DebugOutput(
const QPoint& pt);
513 void _onLoadFinished(
bool ok);
514 void _onLinkClicked(
const QUrl& url);
515 void _onUrlChanged (
const QUrl & url);
516 QString _renderHtmlTemplate(
const QString& templateFileName);
517 void _populateJavaScriptWindowObject();
520 std::unique_ptr<Ui::DataBaseWebInterfaceWidget> ui;
522 domainDB::DataBaseModel* _dbmodel;
523 desiteCore::NavigatorProject& _navProject;
526 QHash<QString,QString> _currentValues;
528 modelGui::WebViewWrapperWidget* _webForm;
533 modelGui::ExportPreviewWidget* _exportPreview;
537 QHash<QString,PrintTemplateRecord> _printTemplateHash;
538 basicGui::PrintWidget* _printWidget;
540 QStringList _handleLinksByWindowsSuffixList;
542 WebFormsProgressWidget* _progressWidget;
543 basicGui::TextBrowserProgress* _tbProgress;
545 QString _lockIconOpen;
546 QString _lockIconLocked;
548 QHash<QString, QString> _redirectURLs;
Definition: DataBaseWebInterfaceWidget.h:15
Definition: DataBaseWebInterfaceWidget.h:23
Definition: DataBaseWebInterfaceWidget.h:26
Definition: DataBaseWebInterfaceWidget.h:19
Definition: NavigatorProjectAPI.h:34
Definition: ProjectAPI.h:15
Definition: DataBaseWebInterfaceWidget.h:30
Definition: DataBaseWebInterfaceWidget.h:38