convert RID_QRYBOX_LANGUAGE with custom title to .ui

Change-Id: I007820c7717a437414bc43936e3138f7e63d090e
This commit is contained in:
Caolán McNamara
2014-08-25 13:19:06 +01:00
parent 70724fc7e0
commit b6d25be2d7
7 changed files with 40 additions and 46 deletions

View File

@@ -45,7 +45,6 @@ $(eval $(call gb_SrsTarget_add_files,basctl/res,\
basctl/source/basicide/moduldlg.src \
basctl/source/basicide/objdlg.src \
basctl/source/dlged/dlgresid.src \
basctl/source/dlged/managelang.src \
))
# vim: set noet sw=4 ts=4:

View File

@@ -31,6 +31,7 @@ $(eval $(call gb_UIConfig_add_toolbarfiles,modules/BasicIDE,\
$(eval $(call gb_UIConfig_add_uifiles,modules/BasicIDE,\
basctl/uiconfig/basicide/ui/basicmacrodialog \
basctl/uiconfig/basicide/ui/defaultlanguage \
basctl/uiconfig/basicide/ui/deletelangdialog \
basctl/uiconfig/basicide/ui/dialogpage \
basctl/uiconfig/basicide/ui/exportdialog \
basctl/uiconfig/basicide/ui/gotolinedialog \

View File

@@ -134,11 +134,6 @@ String RID_STR_DEF_LANG
Text [ en-US ] = "[Default Language]" ;
};
String RID_STR_DELETE
{
Text [ en-US ] = "~Delete" ;
};
String RID_STR_CREATE_LANG
{
Text [ en-US ] = "<Press 'Add' to create language resources>" ;

View File

@@ -36,7 +36,7 @@
#include <svx/langbox.hxx>
#include <vcl/unohelp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/layout.hxx>
#include <vcl/settings.hxx>
namespace basctl
@@ -59,7 +59,6 @@ ManageLanguageDialog::ManageLanguageDialog(Window* pParent, boost::shared_ptr<Lo
: ModalDialog(pParent, "ManageLanguagesDialog", "modules/BasicIDE/ui/managelanguages.ui")
, m_xLocalizationMgr(xLMgr)
, m_sDefLangStr(IDE_RESSTR(RID_STR_DEF_LANG))
, m_sDeleteStr(IDE_RESSTR(RID_STR_DELETE))
, m_sCreateLangStr(IDE_RESSTR(RID_STR_CREATE_LANG))
{
get(m_pLanguageLB, "treeview");
@@ -155,8 +154,7 @@ IMPL_LINK_NOARG(ManageLanguageDialog, AddHdl)
IMPL_LINK_NOARG(ManageLanguageDialog, DeleteHdl)
{
QueryBox aQBox( this, IDEResId( RID_QRYBOX_LANGUAGE ) );
aQBox.SetButtonText( RET_OK, m_sDeleteStr );
MessageDialog aQBox(this, "DeleteLangDialog", "modules/BasicIDE/ui/deletelang.ui");
if ( aQBox.Execute() == RET_OK )
{
sal_uInt16 i, nCount = m_pLanguageLB->GetSelectEntryCount();

View File

@@ -1,30 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "dlgresid.hrc"
QueryBox RID_QRYBOX_LANGUAGE
{
Title [ en-US ] = "Delete Language Resources" ;
Message [ en-US ] = "You are about to delete the resources for the selected language(s). All user interface strings for this language(s) will be deleted.\n\nDo you want to delete the resources of the selected language(s)?";
BUTTONS = WB_OK_CANCEL ;
DEFBUTTON = WB_DEF_CANCEL ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -50,8 +50,7 @@
#define RID_STR_CLASS_TREECONTROL ( RID_DLG_START + 23 )
#define RID_STR_CLASS_SPINCONTROL ( RID_DLG_START + 24 )
#define RID_STR_DEF_LANG ( RID_DLG_START + 25 )
#define RID_STR_DELETE ( RID_DLG_START + 26 )
#define RID_STR_CREATE_LANG ( RID_DLG_START + 27 )
#define RID_STR_CREATE_LANG ( RID_DLG_START + 26 )
// Property Browser Headline Id's -----------------------------------------------------------
@@ -59,10 +58,6 @@
#define RID_STR_BRWTITLE_NO_PROPERTIES ( RID_DLG_START + 61 )
#define RID_STR_BRWTITLE_MULTISELECT ( RID_DLG_START + 62 )
// Manage Language Dialogs
#define RID_QRYBOX_LANGUAGE ( RID_DLG_START + 70 )
#endif // BASCTL_DLGRESID_HRC
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkMessageDialog" id="DeleteLangDialog">
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="title" translatable="yes">Delete Language Resources</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">question</property>
<property name="buttons">ok-cancel</property>
<property name="text" translatable="yes">Do you want to delete the resources of the selected language(s)</property>
<property name="secondary_text" translatable="yes">You are about to delete the resources for the selected language(s). All user interface strings for this language(s) will be deleted.</property>
<child internal-child="vbox">
<object class="GtkBox" id="messagedialog-vbox">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">24</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="messagedialog-action_area">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
</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>
</object>
</child>
</object>
</interface>