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 139 QString createPdfByTemplate(QString templateFileName, QString pdfFileName);
182 void setPaperSize(
int paperSize);
190 void setOrientation(
int orientation);
197 void setPageMargins(
double L,
double R,
double T,
double B);
200 double getPageMarginTop();
202 double getPageMarginBottom();
204 double getPageMarginLeft();
206 double getPageMarginRight();
215 double getLogicalDpi();
221 #pragma region DATABASE 234 void processUpdate();
263 void setImmediateUpdate(
bool);
269 #pragma region URL, PAGE 280 void loadUrl( QString url );
296 void addSuffix(QString suffix);
301 void resetSuffixList();
313 void redirectUrl(QString originalUrl, QString redirectUrl) { _redirectURLs.insert(originalUrl, redirectUrl); }
322 double getZoomFactor();
327 void setZoomFactor(
double v);
336 #pragma region PROGRESS 360 void showProgress(
const QVariantMap& v );
374 void clearProgressMessage();
381 void showProgressMessage(
const QString& );
388 void showProgressMessageLabel(
const QString& );
396 void showProgressValue(
double v );
401 void showProgressMessageConsole( QString v );
415 int getProgressState();
432 void enableInterruptJavaScriptMsg(
bool enable );
438 void clearMemoryCaches();
444 void disableObjectCache();
451 void delegateSimulationActivated(
bool);
453 void delegateSimulationDateChanged(QDateTime);
460 void onImmediateUpdateChanged(
bool);
461 void onImmediateUpdateClicked();
472 void onAddBookmarkClicked();
477 void printPreview(QPrinter*);
479 void onProjectAboutToBeOpened();
480 void onProjectOpened(domainBim::ProjectOpenedInfo);
481 void onProjectClosed(domainBim::ProjectClosedInfo);
483 void printByTemplate(QString templateFN);
485 void updatePrintMenu();
486 void onMenuItemTriggered(QAction* action);
489 void showPrintTools();
491 void toggleNavigation();
496 void _clearDebugOutput();
501 void _onContextMenuRequested_DebugOutput(
const QPoint& pt);
508 void _onLoadFinished(
bool ok);
509 void _onLinkClicked(
const QUrl& url);
510 void _onUrlChanged (
const QUrl & url);
511 QString _renderHtmlTemplate(
const QString& templateFileName);
512 void _populateJavaScriptWindowObject();
515 std::unique_ptr<Ui::DataBaseWebInterfaceWidget> ui;
517 domainDB::DataBaseModel* _dbmodel;
518 desiteCore::NavigatorProject& _navProject;
521 QHash<QString,QString> _currentValues;
523 modelGui::WebViewWrapperWidget* _webForm;
528 modelGui::ExportPreviewWidget* _exportPreview;
532 QHash<QString,PrintTemplateRecord> _printTemplateHash;
533 basicGui::PrintWidget* _printWidget;
535 QStringList _handleLinksByWindowsSuffixList;
537 WebFormsProgressWidget* _progressWidget;
538 basicGui::TextBrowserProgress* _tbProgress;
540 QString _lockIconOpen;
541 QString _lockIconLocked;
543 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:16
Definition: DataBaseWebInterfaceWidget.h:30
Definition: DataBaseWebInterfaceWidget.h:38