Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b23887e9
Kaydet (Commit)
b23887e9
authored
Şub 18, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move memory option page to cui and adapt code
Change-Id: I0660592f233d9f190d11337068f33f2c13ba9251
üst
7cf8320c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
353 deletions
+47
-353
AllLangResTarget_cui.mk
cui/AllLangResTarget_cui.mk
+0
-1
UI_cui.mk
cui/UI_cui.mk
+1
-0
helpid.hrc
cui/source/inc/helpid.hrc
+0
-1
optmemory.cxx
cui/source/options/optmemory.cxx
+39
-54
optmemory.hrc
cui/source/options/optmemory.hrc
+0
-77
optmemory.hxx
cui/source/options/optmemory.hxx
+7
-18
optmemory.src
cui/source/options/optmemory.src
+0
-202
optmemorypage.ui
cui/uiconfig/ui/optmemorypage.ui
+0
-0
No files found.
cui/AllLangResTarget_cui.mk
Dosyayı görüntüle @
b23887e9
...
...
@@ -92,7 +92,6 @@ $(eval $(call gb_SrsTarget_add_files,cui/res,\
cui/source/options/optjava.src \
cui/source/options/optjsearch.src \
cui/source/options/optlingu.src \
cui/source/options/optmemory.src \
cui/source/options/optpath.src \
cui/source/options/optsave.src \
cui/source/options/optupdt.src \
...
...
cui/UI_cui.mk
Dosyayı görüntüle @
b23887e9
...
...
@@ -37,6 +37,7 @@ $(eval $(call gb_UI_add_uifiles,cui,\
cui/uiconfig/ui/optappearancepage \
cui/uiconfig/ui/optfontspage \
cui/uiconfig/ui/optgeneralpage \
cui/uiconfig/ui/optmemorypage \
cui/uiconfig/ui/optpathspage \
cui/uiconfig/ui/optsecuritypage \
cui/uiconfig/ui/personalization_tab \
...
...
cui/source/inc/helpid.hrc
Dosyayı görüntüle @
b23887e9
...
...
@@ -51,7 +51,6 @@
#define HID_OFA_FONT_SUBST_CLB "CUI_HID_OFA_FONT_SUBST_CLB"
#define HID_OFA_TP_VIEW "CUI_HID_OFA_TP_VIEW"
#define HID_OFA_TP_LANGUAGES "CUI_HID_OFA_TP_LANGUAGES"
#define HID_OFA_TP_MEMORY "CUI_HID_OFA_TP_MEMORY"
#define HID_DBPATH_CTL_PATH "CUI_HID_DBPATH_CTL_PATH"
#define HID_DBPATH_HEADERBAR "CUI_HID_DBPATH_HEADERBAR"
#define HID_OFAPAGE_SMARTTAG_OPTIONS "CUI_HID_OFAPAGE_SMARTTAG_OPTIONS"
...
...
cui/source/options/optmemory.cxx
Dosyayı görüntüle @
b23887e9
...
...
@@ -52,7 +52,6 @@
#include <svx/xpool.hxx>
#include <svx/dlgutil.hxx>
#include "cuitabarea.hxx"
#include "optmemory.hrc"
#include "optmemory.hxx"
#include <svx/ofaitem.hxx>
#include <cuires.hrc>
...
...
@@ -69,38 +68,38 @@ using namespace ::rtl;
using
namespace
::
sfx2
;
#define NF2BYTES 104857.6 // 2^20/10, used for
a
NfGraphicObjectCache-unit -> Byte
#define NF2BYTES 104857.6 // 2^20/10, used for
M_p
NfGraphicObjectCache-unit -> Byte
#define BYTES2NF (1.0/NF2BYTES) // 10/2^20
sal_Int32
OfaMemoryOptionsPage
::
GetNfGraphicCacheVal
()
const
{
return
aNfGraphicCache
.
GetValue
()
<<
20
;
return
m_pNfGraphicCache
->
GetValue
()
<<
20
;
}
inline
void
OfaMemoryOptionsPage
::
SetNfGraphicCacheVal
(
long
nSizeInBytes
)
{
aNfGraphicCache
.
SetValue
(
nSizeInBytes
>>
20
);
m_pNfGraphicCache
->
SetValue
(
nSizeInBytes
>>
20
);
}
long
OfaMemoryOptionsPage
::
GetNfGraphicObjectCacheVal
(
void
)
const
{
return
long
(
::
rtl
::
math
::
round
(
double
(
aNfGraphicObjectCache
.
GetValue
()
)
*
NF2BYTES
)
);
return
long
(
::
rtl
::
math
::
round
(
double
(
m_pNfGraphicObjectCache
->
GetValue
()
)
*
NF2BYTES
)
);
}
void
OfaMemoryOptionsPage
::
SetNfGraphicObjectCacheVal
(
long
nSizeInBytes
)
{
aNfGraphicObjectCache
.
SetValue
(
long
(
::
rtl
::
math
::
round
(
double
(
nSizeInBytes
)
*
BYTES2NF
)
)
);
m_pNfGraphicObjectCache
->
SetValue
(
long
(
::
rtl
::
math
::
round
(
double
(
nSizeInBytes
)
*
BYTES2NF
)
)
);
}
inline
void
OfaMemoryOptionsPage
::
SetNfGraphicObjectCacheMax
(
long
nSizeInBytes
)
{
aNfGraphicObjectCache
.
SetMax
(
long
(
double
(
nSizeInBytes
)
*
BYTES2NF
)
);
m_pNfGraphicObjectCache
->
SetMax
(
long
(
double
(
nSizeInBytes
)
*
BYTES2NF
)
);
}
inline
void
OfaMemoryOptionsPage
::
SetNfGraphicObjectCacheLast
(
long
nSizeInBytes
)
{
aNfGraphicObjectCache
.
SetLast
(
long
(
double
(
nSizeInBytes
)
*
BYTES2NF
)
);
m_pNfGraphicObjectCache
->
SetLast
(
long
(
double
(
nSizeInBytes
)
*
BYTES2NF
)
);
}
int
OfaMemoryOptionsPage
::
DeactivatePage
(
SfxItemSet
*
_pSet
)
...
...
@@ -112,46 +111,33 @@ int OfaMemoryOptionsPage::DeactivatePage( SfxItemSet* _pSet )
// -----------------------------------------------------------------------
OfaMemoryOptionsPage
::
OfaMemoryOptionsPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
:
SfxTabPage
(
pParent
,
CUI_RES
(
OFA_TP_MEMORY
),
rSet
),
aUndoBox
(
this
,
CUI_RES
(
GB_UNDO
)
),
aUndoText
(
this
,
CUI_RES
(
FT_UNDO
)
),
aUndoEdit
(
this
,
CUI_RES
(
ED_UNDO
)
),
aGbGraphicCache
(
this
,
CUI_RES
(
GB_GRAPHICCACHE
)
),
aFtGraphicCache
(
this
,
CUI_RES
(
FT_GRAPHICCACHE
)
),
aNfGraphicCache
(
this
,
CUI_RES
(
NF_GRAPHICCACHE
)
),
aFtGraphicCacheUnit
(
this
,
CUI_RES
(
FT_GRAPHICCACHE_UNIT
)
),
aFtGraphicObjectCache
(
this
,
CUI_RES
(
FT_GRAPHICOBJECTCACHE
)
),
aNfGraphicObjectCache
(
this
,
CUI_RES
(
NF_GRAPHICOBJECTCACHE
)
),
aFtGraphicObjectCacheUnit
(
this
,
CUI_RES
(
FT_GRAPHICOBJECTCACHE_UNIT
)
),
aFtGraphicObjectTime
(
this
,
CUI_RES
(
FT_GRAPHICOBJECTTIME
)
),
aTfGraphicObjectTime
(
this
,
CUI_RES
(
TF_GRAPHICOBJECTTIME
)
),
aFtGraphicObjectTimeUnit
(
this
,
CUI_RES
(
FT_GRAPHICOBJECTTIME_UNIT
)
),
aGbOLECache
(
this
,
CUI_RES
(
GB_OLECACHE
)
),
aFtOLECache
(
this
,
CUI_RES
(
FT_OLECACHE
)
),
aNfOLECache
(
this
,
CUI_RES
(
NF_OLECACHE
)
),
aQuickLaunchFL
(
this
,
CUI_RES
(
FL_QUICKLAUNCH
)
),
aQuickLaunchCB
(
this
,
CUI_RES
(
CB_QUICKLAUNCH
)
)
//,
OfaMemoryOptionsPage
::
OfaMemoryOptionsPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
:
SfxTabPage
(
pParent
,
"OptMemoryPage"
,
"cui/ui/optmemorypage.ui"
,
rSet
)
{
get
(
m_pUndoEdit
,
"undo"
);
get
(
m_pNfGraphicCache
,
"graphiccache"
);
get
(
m_pNfGraphicObjectCache
,
"objectcache"
);
get
(
m_pTfGraphicObjectTime
,
"objecttime"
);
get
(
m_pNfOLECache
,
"olecache"
);
get
(
m_pQuickStarterFrame
,
"quickstarter"
);
#if defined(UNX)
aQuickLaunchCB
.
SetText
(
CUI_RES
(
STR_QUICKLAUNCH_UNX
)
);
get
(
m_pQuickLaunchCB
,
"systray"
);
#else
get
(
m_pQuickLaunchCB
,
"quicklaunch"
);
#endif
FreeResource
();
m_pQuickLaunchCB
->
Show
();
//
quick launch only available in Win
//
Only available in Win or if building the gtk systray
#if !defined(WNT) && !defined(ENABLE_GTK)
aQuickLaunchFL
.
Hide
();
aQuickLaunchCB
.
Hide
();
m_pQuickStarterFrame
->
Hide
();
#endif
aTfGraphicObjectTime
.
SetExtFormat
(
EXTTIMEF_24H_SHORT
);
m_pTfGraphicObjectTime
->
SetExtFormat
(
EXTTIMEF_24H_SHORT
);
SetExchangeSupport
();
aNfGraphicCache
.
SetModifyHdl
(
LINK
(
this
,
OfaMemoryOptionsPage
,
GraphicCacheConfigHdl
)
);
m_pNfGraphicCache
->
SetModifyHdl
(
LINK
(
this
,
OfaMemoryOptionsPage
,
GraphicCacheConfigHdl
)
);
}
// -----------------------------------------------------------------------
...
...
@@ -176,9 +162,9 @@ sal_Bool OfaMemoryOptionsPage::FillItemSet( SfxItemSet& rSet )
boost
::
shared_ptr
<
comphelper
::
ConfigurationChanges
>
batch
(
comphelper
::
ConfigurationChanges
::
create
());
if
(
aUndoEdit
.
GetText
()
!=
aUndoEdit
.
GetSavedValue
()
)
if
(
m_pUndoEdit
->
GetText
()
!=
m_pUndoEdit
->
GetSavedValue
()
)
officecfg
::
Office
::
Common
::
Undo
::
Steps
::
set
(
aUndoEdit
.
GetValue
(),
batch
);
m_pUndoEdit
->
GetValue
(),
batch
);
// GraphicCache
sal_Int32
totalCacheSize
=
GetNfGraphicCacheVal
();
...
...
@@ -188,7 +174,7 @@ sal_Bool OfaMemoryOptionsPage::FillItemSet( SfxItemSet& rSet )
officecfg
::
Office
::
Common
::
Cache
::
GraphicManager
::
ObjectCacheSize
::
set
(
objectCacheSize
,
batch
);
const
Time
aTime
(
aTfGraphicObjectTime
.
GetTime
()
);
const
Time
aTime
(
m_pTfGraphicObjectTime
->
GetTime
()
);
sal_Int32
objectReleaseTime
=
aTime
.
GetSec
()
+
aTime
.
GetMin
()
*
60
+
aTime
.
GetHour
()
*
3600
;
officecfg
::
Office
::
Common
::
Cache
::
GraphicManager
::
ObjectReleaseTime
::
set
(
...
...
@@ -204,15 +190,15 @@ sal_Bool OfaMemoryOptionsPage::FillItemSet( SfxItemSet& rSet )
// OLECache
officecfg
::
Office
::
Common
::
Cache
::
Writer
::
OLE_Objects
::
set
(
aNfOLECache
.
GetValue
(),
batch
);
m_pNfOLECache
->
GetValue
(),
batch
);
officecfg
::
Office
::
Common
::
Cache
::
DrawingEngine
::
OLE_Objects
::
set
(
aNfOLECache
.
GetValue
(),
batch
);
m_pNfOLECache
->
GetValue
(),
batch
);
batch
->
commit
();
if
(
aQuickLaunchCB
.
IsChecked
()
!=
aQuickLaunchCB
.
GetSavedValue
())
if
(
m_pQuickLaunchCB
->
IsChecked
()
!=
m_pQuickLaunchCB
->
GetSavedValue
())
{
rSet
.
Put
(
SfxBoolItem
(
SID_ATTR_QUICKLAUNCHER
,
aQuickLaunchCB
.
IsChecked
()));
rSet
.
Put
(
SfxBoolItem
(
SID_ATTR_QUICKLAUNCHER
,
m_pQuickLaunchCB
->
IsChecked
()));
bModified
=
sal_True
;
}
...
...
@@ -225,8 +211,8 @@ void OfaMemoryOptionsPage::Reset( const SfxItemSet& rSet )
{
const
SfxPoolItem
*
pItem
;
aUndoEdit
.
SetValue
(
officecfg
::
Office
::
Common
::
Undo
::
Steps
::
get
());
aUndoEdit
.
SaveValue
();
m_pUndoEdit
->
SetValue
(
officecfg
::
Office
::
Common
::
Undo
::
Steps
::
get
());
m_pUndoEdit
->
SaveValue
();
// GraphicCache
long
n
=
...
...
@@ -242,12 +228,12 @@ void OfaMemoryOptionsPage::Reset( const SfxItemSet& rSet )
officecfg
::
Office
::
Common
::
Cache
::
GraphicManager
::
ObjectReleaseTime
::
get
();
Time
aTime
(
(
sal_uInt16
)(
nTime
/
3600
),
(
sal_uInt16
)(
(
nTime
%
3600
)
/
60
),
(
sal_uInt16
)(
(
nTime
%
3600
)
%
60
)
);
aTfGraphicObjectTime
.
SetTime
(
aTime
);
m_pTfGraphicObjectTime
->
SetTime
(
aTime
);
GraphicCacheConfigHdl
(
&
aNfGraphicCache
);
GraphicCacheConfigHdl
(
m_pNfGraphicCache
);
// OLECache
aNfOLECache
.
SetValue
(
m_pNfOLECache
->
SetValue
(
std
::
max
(
officecfg
::
Office
::
Common
::
Cache
::
Writer
::
OLE_Objects
::
get
(),
(
officecfg
::
Office
::
Common
::
Cache
::
DrawingEngine
::
OLE_Objects
::
...
...
@@ -255,15 +241,14 @@ void OfaMemoryOptionsPage::Reset( const SfxItemSet& rSet )
SfxItemState
eState
=
rSet
.
GetItemState
(
SID_ATTR_QUICKLAUNCHER
,
sal_False
,
&
pItem
);
if
(
SFX_ITEM_SET
==
eState
)
aQuickLaunchCB
.
Check
(
(
(
SfxBoolItem
*
)
pItem
)
->
GetValue
()
);
m_pQuickLaunchCB
->
Check
(
(
(
SfxBoolItem
*
)
pItem
)
->
GetValue
()
);
else
if
(
SFX_ITEM_DISABLED
==
eState
)
{
// quickstart not installed
aQuickLaunchFL
.
Hide
();
aQuickLaunchCB
.
Hide
();
m_pQuickStarterFrame
->
Hide
();
}
aQuickLaunchCB
.
SaveValue
();
m_pQuickLaunchCB
->
SaveValue
();
}
// -----------------------------------------------------------------------
...
...
cui/source/options/optmemory.hrc
deleted
100644 → 0
Dosyayı görüntüle @
7cf8320c
/*
* 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 .
*/
#ifndef _OFA_OPTMEMORY_HRC
#define _OFA_OPTMEMORY_HRC
#include <svtools/controldims.hrc>
// defines for positions and sizes ---------------------------------------
#define WHOLE_WIDTH 248
#define COLSPACE RSC_SP_CTRL_DESC_X
#define COL0 6
#define COL1 (COL0+6)
#define COL2 (COL1+140) // width text before control
#define COL3 (COL2+COLSPACE)
#define COL4 (COL3+30) // width control
#define COL5 (COL4+COLSPACE)
#define COL6 (WHOLE_WIDTH) // width text after control (unit)
#define ROWSPACE RSC_SP_CTRL_DESC_Y
#define ROW0 3
#define ROW1 ( ROW0+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE )
#define ROW2 ( ROW1+RSC_CD_TEXTBOX_HEIGHT+ROWSPACE )
#define ROW3 ( ROW2+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE )
#define ROW4 ( ROW3+RSC_CD_TEXTBOX_HEIGHT+ROWSPACE )
#define ROW5 ( ROW4+RSC_CD_TEXTBOX_HEIGHT+ROWSPACE )
#define ROW6 ( ROW5+RSC_CD_TEXTBOX_HEIGHT+ROWSPACE )
#define ROW7 ( ROW6+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE )
#define ROW8 ( ROW7+RSC_CD_TEXTBOX_HEIGHT+ROWSPACE )
#define ROW9 ( ROW8+RSC_CD_FIXEDLINE_HEIGHT+ROWSPACE )
#define DIFF(v1,v2) (v2-v1)
#define OFFS_TEXTBOX_FIXEDTEXT(base) (base+(RSC_CD_TEXTBOX_HEIGHT-RSC_CD_FIXEDTEXT_HEIGHT)/2)
#define WIDTH1 DIFF( COL1, COL2 )
#define WIDTH2 DIFF( COL3, COL4 )
#define WIDTH3 DIFF( COL5, COL6 )
// tabpage memory --------------------------------------------------------
#define GB_UNDO 10
#define FT_UNDO 11
#define ED_UNDO 12
#define GB_GRAPHICCACHE 13
#define FT_GRAPHICCACHE 14
#define FT_GRAPHICCACHE_UNIT 15
#define FT_GRAPHICOBJECTCACHE_UNIT 16
#define FT_GRAPHICOBJECTTIME_UNIT 17
#define NF_GRAPHICCACHE 18
#define FT_GRAPHICOBJECTCACHE 19
#define NF_GRAPHICOBJECTCACHE 20
#define FT_GRAPHICOBJECTTIME 21
#define TF_GRAPHICOBJECTTIME 22
#define GB_OLECACHE 23
#define FT_OLECACHE 24
#define NF_OLECACHE 25
#define FL_QUICKLAUNCH 26
#define CB_QUICKLAUNCH 27
#define STR_QUICKLAUNCH_UNX 28
#endif // #ifndef _OFA_OPTMEMORY_HRC
cui/source/options/optmemory.hxx
Dosyayı görüntüle @
b23887e9
...
...
@@ -32,27 +32,16 @@ class OfaMemoryOptionsPage : public SfxTabPage
{
using
SfxTabPage
::
DeactivatePage
;
private
:
FixedLine
aUndoBox
;
FixedText
aUndoText
;
NumericField
aUndoEdit
;
NumericField
*
m_pUndoEdit
;
FixedLine
aGbGraphicCache
;
FixedText
aFtGraphicCache
;
NumericField
aNfGraphicCache
;
FixedText
aFtGraphicCacheUnit
;
FixedText
aFtGraphicObjectCache
;
NumericField
aNfGraphicObjectCache
;
FixedText
aFtGraphicObjectCacheUnit
;
FixedText
aFtGraphicObjectTime
;
TimeField
aTfGraphicObjectTime
;
FixedText
aFtGraphicObjectTimeUnit
;
NumericField
*
m_pNfGraphicCache
;
NumericField
*
m_pNfGraphicObjectCache
;
TimeField
*
m_pTfGraphicObjectTime
;
FixedLine
aGbOLECache
;
FixedText
aFtOLECache
;
NumericField
aNfOLECache
;
NumericField
*
m_pNfOLECache
;
FixedLine
aQuickLaunchFL
;
CheckBox
a
QuickLaunchCB
;
VclContainer
*
m_pQuickStarterFrame
;
CheckBox
*
m_p
QuickLaunchCB
;
DECL_LINK
(
GraphicCacheConfigHdl
,
void
*
);
...
...
cui/source/options/optmemory.src
deleted
100644 → 0
Dosyayı görüntüle @
7cf8320c
/*
* 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 <cuires.hrc>
#include "optmemory.hrc"
#include "helpid.hrc"
TabPage OFA_TP_MEMORY
{
HelpID = HID_OFA_TP_MEMORY ;
SVLook = TRUE ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
FixedLine GB_UNDO
{
Pos = MAP_APPFONT( COL0, ROW0 );
Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
Text [ en-US ] = "Undo" ;
};
FixedText FT_UNDO
{
Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT( ROW1 ) );
Size = MAP_APPFONT( WIDTH1, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "Number of steps";
};
NumericField ED_UNDO
{
HelpID = "cui:NumericField:OFA_TP_MEMORY:ED_UNDO";
Border = TRUE ;
Pos = MAP_APPFONT( COL3, ROW1 );
Size = MAP_APPFONT( WIDTH2, RSC_CD_TEXTBOX_HEIGHT );
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 1 ;
First = 1 ;
Maximum = 1000 ;
Value = 100 ;
Last = 100 ;
SpinSize = 1 ;
MaxTextLength = 5;
};
FixedLine GB_GRAPHICCACHE
{
Pos = MAP_APPFONT( COL0, ROW2 );
Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
Text [ en-US ] = "Graphics cache";
};
FixedText FT_GRAPHICCACHE
{
Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT( ROW3 ) );
Size = MAP_APPFONT( WIDTH1, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "Use for %PRODUCTNAME";
};
NumericField NF_GRAPHICCACHE
{
HelpID = "cui:NumericField:OFA_TP_MEMORY:NF_GRAPHICCACHE";
Border = TRUE ;
Pos = MAP_APPFONT( COL3, ROW3 );
Size = MAP_APPFONT( WIDTH2, RSC_CD_TEXTBOX_HEIGHT );
Minimum = 1;
Maximum = 256;
SpinSize = 1;
Spin = TRUE ;
Repeat = TRUE ;
};
FixedText FT_GRAPHICCACHE_UNIT
{
Pos = MAP_APPFONT( COL5, OFFS_TEXTBOX_FIXEDTEXT( ROW3 ) );
Size = MAP_APPFONT( WIDTH3, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "MB";
};
FixedText FT_GRAPHICOBJECTCACHE
{
Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT( ROW4 ) );
Size = MAP_APPFONT( WIDTH1, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "Memory per object" ;
};
NumericField NF_GRAPHICOBJECTCACHE
{
HelpID = "cui:NumericField:OFA_TP_MEMORY:NF_GRAPHICOBJECTCACHE";
Border = TRUE ;
Pos = MAP_APPFONT( COL3, ROW4 );
Size = MAP_APPFONT( WIDTH2, RSC_CD_TEXTBOX_HEIGHT );
Minimum = 10;
Maximum = 2560;
SpinSize = 1;
Spin = TRUE ;
Repeat = TRUE ;
DecimalDigits = 1;
};
FixedText FT_GRAPHICOBJECTCACHE_UNIT
{
Pos = MAP_APPFONT( COL5, OFFS_TEXTBOX_FIXEDTEXT( ROW4 ) );
Size = MAP_APPFONT( WIDTH3, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "MB";
};
FixedText FT_GRAPHICOBJECTTIME
{
Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT( ROW5 ) );
Size = MAP_APPFONT( WIDTH1, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "Remove from memory after";
};
TimeField TF_GRAPHICOBJECTTIME
{
HelpID = "cui:TimeField:OFA_TP_MEMORY:TF_GRAPHICOBJECTTIME";
Border = TRUE ;
Pos = MAP_APPFONT( COL3, ROW5 );
Size = MAP_APPFONT( WIDTH2, RSC_CD_TEXTBOX_HEIGHT );
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Value = Time
{
Minute = 10;
};
Minimum = Time
{
Minute = 1;
};
Maximum = Time
{
Hour = 23 ;
Minute = 59 ;
};
First = Time
{
Minute = 10;
};
Last = Time
{
Hour = 23 ;
Minute = 59 ;
};
Format = TIMEF_NONE ;
Duration = TRUE ;
StrictFormat = TRUE ;
};
FixedText FT_GRAPHICOBJECTTIME_UNIT
{
Pos = MAP_APPFONT( COL5, OFFS_TEXTBOX_FIXEDTEXT( ROW5 ) );
Size = MAP_APPFONT( WIDTH3, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "hh:mm";
};
FixedLine GB_OLECACHE
{
Pos = MAP_APPFONT( COL0, ROW6 );
Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
Text [ en-US ] = "Cache for inserted objects";
};
FixedText FT_OLECACHE
{
Pos = MAP_APPFONT( COL1, OFFS_TEXTBOX_FIXEDTEXT( ROW7 ) );
Size = MAP_APPFONT( WIDTH1, RSC_CD_FIXEDTEXT_HEIGHT );
Text [ en-US ] = "Number of objects";
};
NumericField NF_OLECACHE
{
HelpID = "cui:NumericField:OFA_TP_MEMORY:NF_OLECACHE";
Border = TRUE ;
Pos = MAP_APPFONT( COL3, ROW7 );
Size = MAP_APPFONT( WIDTH2, RSC_CD_TEXTBOX_HEIGHT );
Minimum = 1;
Maximum = 1024;
Spin = TRUE ;
Repeat = TRUE ;
};
FixedLine FL_QUICKLAUNCH
{
Pos = MAP_APPFONT( COL0, ROW8 );
Size = MAP_APPFONT( WHOLE_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
Text [ en-US ] = "%PRODUCTNAME Quickstarter";
};
CheckBox CB_QUICKLAUNCH
{
HelpID = "cui:CheckBox:OFA_TP_MEMORY:CB_QUICKLAUNCH";
Pos = MAP_APPFONT( COL1, ROW9 );
Size = MAP_APPFONT( WHOLE_WIDTH - COL1, RSC_CD_CHECKBOX_HEIGHT );
Text [ en-US ] = "Load %PRODUCTNAME during system start-up";
};
String STR_QUICKLAUNCH_UNX
{
Text[ en-US ] = "Enable systray Quickstarter";
};
};
sw/uiconfig/swriter/ui/libmemory
.ui
→
cui/uiconfig/ui/optmemorypage
.ui
Dosyayı görüntüle @
b23887e9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment