Kaydet (Commit) b3ed2a26 authored tarafından Ptyl Dragon's avatar Ptyl Dragon Kaydeden (comit) Jan Holesovsky

added the tiledrendering ui from glade

Change-Id: I8c32f5f3e09d2dc6214a76cd15a0b3adba62824e
üst 4e40d2ef
...@@ -33,6 +33,7 @@ $(eval $(call gb_Module_add_targets,sw,\ ...@@ -33,6 +33,7 @@ $(eval $(call gb_Module_add_targets,sw,\
UIConfig_swreport \ UIConfig_swreport \
UIConfig_swriter \ UIConfig_swriter \
UIConfig_swxform \ UIConfig_swxform \
UIConfig_qa \
)) ))
ifneq ($(DISABLE_SCRIPTING),TRUE) ifneq ($(DISABLE_SCRIPTING),TRUE)
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_UIConfig_UIConfig,modules/swriter))
$(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/qa/tiledrendering/tiledrendering \
))
# vim: set noet sw=4 ts=4:
...@@ -55,21 +55,23 @@ int UIPreviewApp::Main() ...@@ -55,21 +55,23 @@ int UIPreviewApp::Main()
uifiles.push_back(aFileUrl); uifiles.push_back(aFileUrl);
} }
if (uifiles.empty()) //if (uifiles.empty())
{ //{
fprintf(stderr, "Usage: ui-previewer file.ui\n"); // fprintf(stderr, "Usage: ui-previewer file.ui\n");
return EXIT_FAILURE; // return EXIT_FAILURE;
} //}
// turn on tooltips // turn on tooltips
Help::EnableQuickHelp(); Help::EnableQuickHelp();
try try
{ {
Dialog *pDialog = new Dialog(DIALOG_NO_PARENT, WB_STDDIALOG); Dialog *pDialog = new ModalDialog(DIALOG_NO_PARENT, "TiledRendering", "sw/qa/tiledrendering/tiledrendering.ui");
pDialog->Execute();
/*
{ {
VclBuilder aBuilder(pDialog, OUString(), uifiles[0]); VclBuilder aBuilder(pDialog, OUString(), "sw/qa/tiledrendering/tiledrendering.ui");
Dialog *pRealDialog = dynamic_cast<Dialog*>(aBuilder.get_widget_root()); Dialog *pRealDialog = dynamic_cast<Dialog*>(aBuilder.get_widget_root());
if (!pRealDialog) if (!pRealDialog)
...@@ -81,7 +83,7 @@ int UIPreviewApp::Main() ...@@ -81,7 +83,7 @@ int UIPreviewApp::Main()
pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE); pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
pRealDialog->Execute(); pRealDialog->Execute();
} }
} }*/
delete pDialog; delete pDialog;
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment