Kaydet (Commit) 7e33e62e authored tarafından Szymon Kłos's avatar Szymon Kłos

Breadcrumb: changed first entry label ('Root')

Change-Id: Id15bc1ef92fdab22ba3332dc9b42fb9c785298b4
üst 82e82265
......@@ -206,6 +206,7 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits )
m_pOk_btn->SetClickHdl( LINK( this, RemoteFilesDialog, OkHdl ) );
m_pCancel_btn->SetClickHdl( LINK( this, RemoteFilesDialog, CancelHdl ) );
m_sRootLabel = ResId( STR_SVT_ROOTLABEL, *ResMgrHolder::getOrCreate() );
m_pPath = VclPtr<Breadcrumb>::Create( get< vcl::Window >( "breadcrumb_container" ) );
m_pPath->set_hexpand( true );
m_pPath->SetClickHdl( LINK( this, RemoteFilesDialog, SelectBreadcrumbHdl ) );
......@@ -1099,7 +1100,7 @@ void RemoteFilesDialog::UpdateControls( const OUString& rURL )
OUString sURL = m_aServices[nPos]->GetUrl();
OUString sName = m_aServices[nPos]->GetName();
m_pPath->SetRootName( sName );
m_pPath->SetRootName( m_sRootLabel );
m_pTreeView->Clear();
SvTreeListEntry* pRoot = m_pTreeView->InsertEntry( sName, NULL, true );
......
......@@ -127,6 +127,7 @@ private:
OUString m_sPath;
OUString m_sStdDir;
OUString m_sRootLabel;
OUString m_sLastServiceUrl;
unsigned int m_nCurrentFilter;
......
......@@ -110,6 +110,11 @@ String STR_SVT_DELETESERVICE
Text [ en-US ] = "Are you sure you want to delete the service?\n\"$servicename$\"" ;
};
String STR_SVT_ROOTLABEL
{
Text [ en-US ] = "Root" ;
};
String STR_SVT_NEW_FOLDER
{
Text [ en-US ] = "Folder" ;
......
......@@ -28,6 +28,7 @@
#define STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION (STR_SVT_FILEPICKER_START+13)
#define STR_SVT_ALREADYEXISTOVERWRITE (STR_SVT_FILEPICKER_START+14)
#define STR_SVT_DELETESERVICE (STR_SVT_FILEPICKER_START+15)
#define STR_SVT_ROOTLABEL (STR_SVT_FILEPICKER_START+16)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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