Kaydet (Commit) 5249cf49 authored tarafından sk94's avatar sk94 Kaydeden (comit) Caolán McNamara

RID_DLG_UPDATEINSTALL conversion to .ui

Change-Id: I02ead5dc934d0f9ae9e958cbe6592250f1aaf1a4
Reviewed-on: https://gerrit.libreoffice.org/9464Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 17979abf
...@@ -15,6 +15,7 @@ $(eval $(call gb_UIConfig_add_uifiles,desktop,\ ...@@ -15,6 +15,7 @@ $(eval $(call gb_UIConfig_add_uifiles,desktop,\
desktop/uiconfig/ui/licensedialog \ desktop/uiconfig/ui/licensedialog \
desktop/uiconfig/ui/showlicensedialog \ desktop/uiconfig/ui/showlicensedialog \
desktop/uiconfig/ui/updatedialog \ desktop/uiconfig/ui/updatedialog \
desktop/uiconfig/ui/updateinstalldialog \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -33,26 +33,6 @@ ...@@ -33,26 +33,6 @@
#define RID_EM_FT_PROGRESS 14 #define RID_EM_FT_PROGRESS 14
#define RID_EM_FT_MSG 15 #define RID_EM_FT_MSG 15
// local RIDs for "Download and Install" dialog
#define RID_DLG_UPDATE_INSTALL_ABORT 2
#define RID_DLG_UPDATE_INSTALL_OK 3
#define RID_DLG_UPDATE_INSTALL_DOWNLOADING 4
#define RID_DLG_UPDATE_INSTALL_INSTALLING 5
#define RID_DLG_UPDATE_INSTALL_FINISHED 6
#define RID_DLG_UPDATE_INSTALL_LINE 7
#define RID_DLG_UPDATE_INSTALL_HELP 8
#define RID_DLG_UPDATE_INSTALL_STATUSBAR 9
#define RID_DLG_UPDATE_INSTALL_EXTENSION_NAME 10
#define RID_DLG_UPDATE_INSTALL_RESULTS 11
#define RID_DLG_UPDATE_INSTALL_INFO 12
#define RID_DLG_UPDATE_INSTALL_NO_ERRORS 13
#define RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED 14
#define RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD 15
#define RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION 16
#define RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED 17
#define RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL 18
#define RID_DLG_DEPENDENCIES (RID_DEPLOYMENT_GUI_START + 1) #define RID_DLG_DEPENDENCIES (RID_DEPLOYMENT_GUI_START + 1)
#define RID_DLG_DEPENDENCIES_TEXT 1 #define RID_DLG_DEPENDENCIES_TEXT 1
#define RID_DLG_DEPENDENCIES_LIST 2 #define RID_DLG_DEPENDENCIES_LIST 2
...@@ -84,7 +64,14 @@ ...@@ -84,7 +64,14 @@
#define RID_DLG_UPDATE_IGNORE_ALL (RID_DEPLOYMENT_GUI_START + 25) #define RID_DLG_UPDATE_IGNORE_ALL (RID_DEPLOYMENT_GUI_START + 25)
#define RID_DLG_UPDATE_IGNORED_UPDATE (RID_DEPLOYMENT_GUI_START + 36) #define RID_DLG_UPDATE_IGNORED_UPDATE (RID_DEPLOYMENT_GUI_START + 36)
#define RID_DLG_UPDATEINSTALL (RID_DEPLOYMENT_GUI_START + 37) #define RID_DLG_UPDATE_INSTALL_INSTALLING (RID_DEPLOYMENT_GUI_START + 37)
#define RID_DLG_UPDATE_INSTALL_FINISHED (RID_DEPLOYMENT_GUI_START + 38)
#define RID_DLG_UPDATE_INSTALL_NO_ERRORS (RID_DEPLOYMENT_GUI_START + 39)
#define RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED (RID_DEPLOYMENT_GUI_START + 40)
#define RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD (RID_DEPLOYMENT_GUI_START + 41)
#define RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION (RID_DEPLOYMENT_GUI_START + 42)
#define RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED (RID_DEPLOYMENT_GUI_START + 43)
#define RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL (RID_DEPLOYMENT_GUI_START + 44)
#define RID_IMG_WARNING (RID_DEPLOYMENT_GUI_START+56) #define RID_IMG_WARNING (RID_DEPLOYMENT_GUI_START+56)
#define RID_IMG_LOCKED (RID_DEPLOYMENT_GUI_START+58) #define RID_IMG_LOCKED (RID_DEPLOYMENT_GUI_START+58)
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "svl/lstner.hxx" #include "svl/lstner.hxx"
#include "vcl/xtextedt.hxx" #include "vcl/xtextedt.hxx"
#include "vcl/scrbar.hxx" #include "vcl/scrbar.hxx"
#include "vcl/builder.hxx"
#include "dp_gui_autoscrolledit.hxx" #include "dp_gui_autoscrolledit.hxx"
...@@ -28,8 +29,8 @@ ...@@ -28,8 +29,8 @@
namespace dp_gui { namespace dp_gui {
AutoScrollEdit::AutoScrollEdit( Window* pParent, const ResId& rResId ) AutoScrollEdit::AutoScrollEdit( Window* pParent, WinBits nWinStyle )
: ExtMultiLineEdit( pParent, rResId ) : ExtMultiLineEdit( pParent, nWinStyle )
{ {
ScrollBar* pScroll = GetVScrollBar(); ScrollBar* pScroll = GetVScrollBar();
if (pScroll) if (pScroll)
...@@ -59,4 +60,9 @@ void AutoScrollEdit::Notify( SfxBroadcaster&, const SfxHint& rHint ) ...@@ -59,4 +60,9 @@ void AutoScrollEdit::Notify( SfxBroadcaster&, const SfxHint& rHint )
} // namespace dp_gui } // namespace dp_gui
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeAutoScrollEdit(Window *pParent, VclBuilder::stringmap &)
{
return new dp_gui::AutoScrollEdit(pParent, WB_BORDER);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -31,7 +31,7 @@ namespace dp_gui { ...@@ -31,7 +31,7 @@ namespace dp_gui {
class AutoScrollEdit : public ExtMultiLineEdit, public SfxListener class AutoScrollEdit : public ExtMultiLineEdit, public SfxListener
{ {
public: public:
AutoScrollEdit( Window* pParent, const ResId& rResId ); AutoScrollEdit( Window* pParent, WinBits nWinStyle);
virtual ~AutoScrollEdit(); virtual ~AutoScrollEdit();
using ExtMultiLineEdit::Notify; using ExtMultiLineEdit::Notify;
......
...@@ -205,7 +205,7 @@ UpdateInstallDialog::UpdateInstallDialog( ...@@ -205,7 +205,7 @@ UpdateInstallDialog::UpdateInstallDialog(
cssu::Reference< cssu::XComponentContext > const & xCtx): cssu::Reference< cssu::XComponentContext > const & xCtx):
ModalDialog( ModalDialog(
parent, parent,
DpGuiResId(RID_DLG_UPDATEINSTALL)), "UpdateInstallDialog","desktop/ui/updateinstalldialog.ui"),
m_thread(new Thread(xCtx, *this, aVecUpdateData)), m_thread(new Thread(xCtx, *this, aVecUpdateData)),
m_xComponentContext(xCtx), m_xComponentContext(xCtx),
...@@ -219,25 +219,22 @@ UpdateInstallDialog::UpdateInstallDialog( ...@@ -219,25 +219,22 @@ UpdateInstallDialog::UpdateInstallDialog(
m_sErrorInstallation(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION)), m_sErrorInstallation(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION)),
m_sErrorLicenseDeclined(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED)), m_sErrorLicenseDeclined(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED)),
m_sNoInstall(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL)), m_sNoInstall(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL)),
m_sThisErrorOccurred(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED)), m_sThisErrorOccurred(DPGUI_RESSTR(RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED))
m_ft_action(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_DOWNLOADING)),
m_statusbar(this,DpGuiResId(RID_DLG_UPDATE_INSTALL_STATUSBAR)),
m_ft_extension_name(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_EXTENSION_NAME)),
m_ft_results(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_RESULTS)),
m_mle_info(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_INFO)),
m_line(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_LINE)),
m_help(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_HELP)),
m_ok(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_OK)),
m_cancel(this, DpGuiResId(RID_DLG_UPDATE_INSTALL_ABORT))
{ {
FreeResource(); get(m_pFt_action, "DOWNLOADING");
get(m_pStatusbar, "STATUSBAR");
get(m_pFt_extension_name, "EXTENSION_NAME");
get(m_pMle_info, "INFO");
get(m_pHelp, "HELP");
get(m_pOk, "OK");
get(m_pCancel, "CANCEL");
m_xExtensionManager = css::deployment::ExtensionManager::get( xCtx ); m_xExtensionManager = css::deployment::ExtensionManager::get( xCtx );
m_cancel.SetClickHdl(LINK(this, UpdateInstallDialog, cancelHandler)); m_pCancel->SetClickHdl(LINK(this, UpdateInstallDialog, cancelHandler));
m_mle_info.EnableCursor(false); m_pMle_info->EnableCursor(false);
if ( ! dp_misc::office_is_running()) if ( ! dp_misc::office_is_running())
m_help.Disable(); m_pHelp->Disable();
} }
UpdateInstallDialog::~UpdateInstallDialog() {} UpdateInstallDialog::~UpdateInstallDialog() {}
...@@ -258,10 +255,10 @@ short UpdateInstallDialog::Execute() ...@@ -258,10 +255,10 @@ short UpdateInstallDialog::Execute()
void UpdateInstallDialog::updateDone() void UpdateInstallDialog::updateDone()
{ {
if (!m_bError) if (!m_bError)
m_mle_info.InsertText(m_sNoErrors); m_pMle_info->InsertText(m_sNoErrors);
m_ok.Enable(); m_pOk->Enable();
m_ok.GrabFocus(); m_pOk->GrabFocus();
m_cancel.Disable(); m_pCancel->Disable();
} }
// make sure the solar mutex is locked before calling // make sure the solar mutex is locked before calling
//sets an error message in the text area //sets an error message in the text area
...@@ -293,20 +290,20 @@ void UpdateInstallDialog::setError(INSTALL_ERROR err, OUString const & sExtensio ...@@ -293,20 +290,20 @@ void UpdateInstallDialog::setError(INSTALL_ERROR err, OUString const & sExtensio
if (m_bNoEntry) if (m_bNoEntry)
m_bNoEntry = false; m_bNoEntry = false;
else else
m_mle_info.InsertText(OUString("\n")); m_pMle_info->InsertText(OUString("\n"));
m_mle_info.InsertText(sError); m_pMle_info->InsertText(sError);
//Insert more information about the error //Insert more information about the error
if (!exceptionMessage.isEmpty()) if (!exceptionMessage.isEmpty())
m_mle_info.InsertText(m_sThisErrorOccurred + exceptionMessage + "\n"); m_pMle_info->InsertText(m_sThisErrorOccurred + exceptionMessage + "\n");
m_mle_info.InsertText(m_sNoInstall); m_pMle_info->InsertText(m_sNoInstall);
m_mle_info.InsertText(OUString("\n")); m_pMle_info->InsertText(OUString("\n"));
} }
void UpdateInstallDialog::setError(OUString const & exceptionMessage) void UpdateInstallDialog::setError(OUString const & exceptionMessage)
{ {
m_bError = true; m_bError = true;
m_mle_info.InsertText(exceptionMessage + "\n"); m_pMle_info->InsertText(exceptionMessage + "\n");
} }
IMPL_LINK_NOARG(UpdateInstallDialog, cancelHandler) IMPL_LINK_NOARG(UpdateInstallDialog, cancelHandler)
...@@ -363,10 +360,10 @@ void UpdateInstallDialog::Thread::downloadExtensions() ...@@ -363,10 +360,10 @@ void UpdateInstallDialog::Thread::downloadExtensions()
if (m_stop) { if (m_stop) {
return; return;
} }
m_dialog.m_ft_extension_name.SetText(curData.aInstalledPackage->getDisplayName()); m_dialog.m_pFt_extension_name->SetText(curData.aInstalledPackage->getDisplayName());
sal_uInt16 prog = (sal::static_int_cast<sal_uInt16>(100) * ++count) / sal_uInt16 prog = (sal::static_int_cast<sal_uInt16>(100) * ++count) /
sal::static_int_cast<sal_uInt16>(m_aVecUpdateData.size()); sal::static_int_cast<sal_uInt16>(m_aVecUpdateData.size());
m_dialog.m_statusbar.SetValue(prog); m_dialog.m_pStatusbar->SetValue(prog);
} }
dp_misc::DescriptionInfoset info(m_xComponentContext, curData.aUpdateInfo); dp_misc::DescriptionInfoset info(m_xComponentContext, curData.aUpdateInfo);
//remember occurring exceptions in case we need to print out error information //remember occurring exceptions in case we need to print out error information
...@@ -436,8 +433,8 @@ void UpdateInstallDialog::Thread::installExtensions() ...@@ -436,8 +433,8 @@ void UpdateInstallDialog::Thread::installExtensions()
if (m_stop) { if (m_stop) {
return; return;
} }
m_dialog.m_ft_action.SetText(m_dialog.m_sInstalling); m_dialog.m_pFt_action->SetText(m_dialog.m_sInstalling);
m_dialog.m_statusbar.SetValue(0); m_dialog.m_pStatusbar->SetValue(0);
} }
sal_uInt16 count = 0; sal_uInt16 count = 0;
...@@ -452,11 +449,11 @@ void UpdateInstallDialog::Thread::installExtensions() ...@@ -452,11 +449,11 @@ void UpdateInstallDialog::Thread::installExtensions()
} }
//we only show progress after an extension has been installed. //we only show progress after an extension has been installed.
if (count > 0) { if (count > 0) {
m_dialog.m_statusbar.SetValue( m_dialog.m_pStatusbar->SetValue(
(sal::static_int_cast<sal_uInt16>(100) * count) / (sal::static_int_cast<sal_uInt16>(100) * count) /
sal::static_int_cast<sal_uInt16>(m_aVecUpdateData.size())); sal::static_int_cast<sal_uInt16>(m_aVecUpdateData.size()));
} }
m_dialog.m_ft_extension_name.SetText(i->aInstalledPackage->getDisplayName()); m_dialog.m_pFt_extension_name->SetText(i->aInstalledPackage->getDisplayName());
} }
bool bError = false; bool bError = false;
bool bLicenseDeclined = false; bool bLicenseDeclined = false;
...@@ -546,9 +543,9 @@ void UpdateInstallDialog::Thread::installExtensions() ...@@ -546,9 +543,9 @@ void UpdateInstallDialog::Thread::installExtensions()
if (m_stop) { if (m_stop) {
return; return;
} }
m_dialog.m_statusbar.SetValue(100); m_dialog.m_pStatusbar->SetValue(100);
m_dialog.m_ft_extension_name.SetText(OUString()); m_dialog.m_pFt_extension_name->SetText(OUString());
m_dialog.m_ft_action.SetText(m_dialog.m_sFinished); m_dialog.m_pFt_action->SetText(m_dialog.m_sFinished);
} }
} }
......
...@@ -106,15 +106,13 @@ private: ...@@ -106,15 +106,13 @@ private:
OUString m_sNoInstall; OUString m_sNoInstall;
OUString m_sThisErrorOccurred; OUString m_sThisErrorOccurred;
FixedText m_ft_action; FixedText *m_pFt_action;
ProgressBar m_statusbar; ProgressBar *m_pStatusbar;
FixedText m_ft_extension_name; FixedText *m_pFt_extension_name;
FixedText m_ft_results; AutoScrollEdit *m_pMle_info;
AutoScrollEdit m_mle_info; HelpButton *m_pHelp;
FixedLine m_line; OKButton *m_pOk;
HelpButton m_help; CancelButton *m_pCancel;
OKButton m_ok;
CancelButton m_cancel;
}; };
......
...@@ -25,169 +25,37 @@ ...@@ -25,169 +25,37 @@
#define LOCAL_LIST_HEIGHT (7 * RSC_BS_CHARHEIGHT) #define LOCAL_LIST_HEIGHT (7 * RSC_BS_CHARHEIGHT)
#define LOCAL_BUTTON_WIDTH 80 #define LOCAL_BUTTON_WIDTH 80
ModalDialog RID_DLG_UPDATEINSTALL {
HelpId = HID_DEPLOYMENT_GUI_UPDATEINSTALL;
Size = MAP_APPFONT(
(RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH +
RSC_SP_DLG_INNERBORDER_RIGHT),
(RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_FLGR_SPACE_Y + LOCAL_LIST_HEIGHT +
RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
RSC_SP_FLGR_SPACE_Y + RSC_CD_PUSHBUTTON_HEIGHT +
RSC_SP_DLG_INNERBORDER_BOTTOM));
Text[en-US] = "Download and Installation";
Moveable = TRUE;
Closeable = TRUE;
FixedText RID_DLG_UPDATE_INSTALL_DOWNLOADING {
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP);
Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
Text[en-US] = "Downloading extensions...";
NoLabel = TRUE;
};
Window RID_DLG_UPDATE_INSTALL_STATUSBAR { String RID_DLG_UPDATE_INSTALL_INSTALLING {
Pos = MAP_APPFONT( Text[en-US] = "Installing extensions...";
RSC_SP_DLG_INNERBORDER_LEFT, };
(RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y));
Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_CHECKBOX_HEIGHT);
Border = TRUE;
};
FixedText RID_DLG_UPDATE_INSTALL_EXTENSION_NAME {
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_DESC_Y);
Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
Text[en-US] = "";
NoLabel = TRUE;
};
FixedText RID_DLG_UPDATE_INSTALL_RESULTS {
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y);
Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT);
Text[en-US] = "Result";
};
MultiLineEdit RID_DLG_UPDATE_INSTALL_INFO {
HelpID = "desktop:MultiLineEdit:RID_DLG_UPDATEINSTALL:RID_DLG_UPDATE_INSTALL_INFO";
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y);
Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT);
Border = TRUE;
ReadOnly = TRUE;
VScroll = TRUE;
TabStop = FALSE;
};
FixedLine RID_DLG_UPDATE_INSTALL_LINE {
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
RSC_SP_FLGR_SPACE_Y);
Size = MAP_APPFONT(LOCAL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT);
};
OKButton RID_DLG_UPDATE_INSTALL_OK {
Disable = TRUE;
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH -
RSC_SP_CTRL_GROUP_X - RSC_CD_PUSHBUTTON_WIDTH,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
RSC_SP_FLGR_SPACE_Y);
Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
Text[en-US] = "OK";
};
CancelButton RID_DLG_UPDATE_INSTALL_ABORT {
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH - LOCAL_BUTTON_WIDTH,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
RSC_SP_FLGR_SPACE_Y);
Size = MAP_APPFONT(LOCAL_BUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
Text[en-US] = "Cancel Update";
DefButton = TRUE;
};
HelpButton RID_DLG_UPDATE_INSTALL_HELP {
Pos = MAP_APPFONT(
RSC_SP_DLG_INNERBORDER_LEFT,
RSC_SP_DLG_INNERBORDER_TOP + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_CHECKBOX_HEIGHT +
RSC_SP_CTRL_DESC_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_Y + RSC_CD_FIXEDTEXT_HEIGHT +
RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT +
RSC_SP_FLGR_SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT +
RSC_SP_FLGR_SPACE_Y);
Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
};
String RID_DLG_UPDATE_INSTALL_INSTALLING {
Text[en-US] = "Installing extensions...";
};
String RID_DLG_UPDATE_INSTALL_FINISHED {
Text[en-US] = "Installation finished";
};
String RID_DLG_UPDATE_INSTALL_NO_ERRORS { String RID_DLG_UPDATE_INSTALL_FINISHED {
Text[en-US] = "No errors."; Text[en-US] = "Installation finished";
}; };
String RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD { String RID_DLG_UPDATE_INSTALL_NO_ERRORS {
Text[en-US] = "Error while downloading extension %NAME. "; Text[en-US] = "No errors.";
}; };
String RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED { String RID_DLG_UPDATE_INSTALL_ERROR_DOWNLOAD {
Text[en-US] = "The error message is: "; Text[en-US] = "Error while downloading extension %NAME. ";
}; };
String RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION { String RID_DLG_UPDATE_INSTALL_THIS_ERROR_OCCURRED {
Text[en-US] = "Error while installing extension %NAME. "; Text[en-US] = "The error message is: ";
}; };
String RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED { String RID_DLG_UPDATE_INSTALL_ERROR_INSTALLATION {
Text[en-US] = "The license agreement for extension %NAME was refused. "; Text[en-US] = "Error while installing extension %NAME. ";
}; };
String RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL{ String RID_DLG_UPDATE_INSTALL_ERROR_LIC_DECLINED {
Text[en-US] = "The extension will not be installed."; Text[en-US] = "The license agreement for extension %NAME was refused. ";
}; };
String RID_DLG_UPDATE_INSTALL_EXTENSION_NOINSTALL{
Text[en-US] = "The extension will not be installed.";
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires LibreOffice 1.0 -->
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkDialog" id="UpdateInstallDialog">
<property name="width_request">500</property>
<property name="height_request">250</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">Download and Installation</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="HELP">
<property name="label">gtk-help</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="OK">
<property name="label">gtk-ok</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="CANCEL">
<property name="label">gtk-cancel</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="DOWNLOADING">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Downloading extensions...</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkProgressBar" id="STATUSBAR">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="EXTENSION_NAME">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="RESULTS">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Result</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="shadow_type">in</property>
<child>
<object class="deploymentgui-AutoScrollEdit" id="INFO">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="editable">False</property>
<property name="cursor_visible">False</property>
<property name="accepts_tab">False</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">HELP</action-widget>
<action-widget response="0">OK</action-widget>
<action-widget response="0">CANCEL</action-widget>
</action-widgets>
</object>
</interface>
...@@ -323,6 +323,9 @@ ...@@ -323,6 +323,9 @@
<glade-widget-class title="Cui Custom MultiLine Edit" name="cuilo-CuiCustomMultilineEdit" <glade-widget-class title="Cui Custom MultiLine Edit" name="cuilo-CuiCustomMultilineEdit"
generic-name="CuiCustomMultiLineEdit" parent="GtkTextView" generic-name="CuiCustomMultiLineEdit" parent="GtkTextView"
icon-name="widget-gtk-textview"/> icon-name="widget-gtk-textview"/>
<glade-widget-class title="AutoScrollEdit" name="deploymentgui-AutoScrollEdit"
generic-name="AutoScrollEdit" parent="GtkTextView"
icon-name="widget-gtk-textview"/>
<glade-widget-class title="LicenseView" name="deploymentgui-LicenseView" <glade-widget-class title="LicenseView" name="deploymentgui-LicenseView"
generic-name="LicenseView" parent="GtkTextView" generic-name="LicenseView" parent="GtkTextView"
icon-name="widget-gtk-textview"/> icon-name="widget-gtk-textview"/>
......
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