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
33ad001f
Kaydet (Commit)
33ad001f
authored
Eyl 29, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert connpooloptions to .ui + adapt code.
Change-Id: Idf76635180f73716f3d476975d9738edad464348
üst
b84c89bb
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
314 additions
and
231 deletions
+314
-231
UIConfig_cui.mk
cui/UIConfig_cui.mk
+1
-0
cuires.hrc
cui/source/inc/cuires.hrc
+6
-0
connpooloptions.cxx
cui/source/options/connpooloptions.cxx
+63
-70
connpooloptions.hrc
cui/source/options/connpooloptions.hrc
+0
-41
connpooloptions.hxx
cui/source/options/connpooloptions.hxx
+9
-18
connpooloptions.src
cui/source/options/connpooloptions.src
+18
-102
connpooloptions.ui
cui/uiconfig/ui/connpooloptions.ui
+213
-0
libreoffice-catalog.xml.in
extras/source/glade/libreoffice-catalog.xml.in
+4
-0
No files found.
cui/UIConfig_cui.mk
Dosyayı görüntüle @
33ad001f
...
...
@@ -37,6 +37,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/formatnumberdialog \
cui/uiconfig/ui/gradientpage \
cui/uiconfig/ui/colorconfigwin \
cui/uiconfig/ui/connpooloptions \
cui/uiconfig/ui/dbregisterpage \
cui/uiconfig/ui/effectspage \
cui/uiconfig/ui/hatchpage \
...
...
cui/source/inc/cuires.hrc
Dosyayı görüntüle @
33ad001f
...
...
@@ -448,6 +448,12 @@
#define RID_SVXSTR_TYPE (RID_SVX_START + 1244)
#define RID_SVXSTR_PATH (RID_SVX_START + 1245)
#define RID_SVXSTR_DRIVER_NAME (RID_SVX_START + 1246)
#define RID_SVXSTR_POOLED_FLAG (RID_SVX_START + 1247)
#define RID_SVXSTR_POOL_TIMEOUT (RID_SVX_START + 1248)
#define RID_SVXSTR_YES (RID_SVX_START + 1249)
#define RID_SVXSTR_NO (RID_SVX_START + 1250)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/options/connpooloptions.cxx
Dosyayı görüntüle @
33ad001f
...
...
@@ -18,7 +18,6 @@
*/
#include "connpooloptions.hxx"
#include "connpooloptions.hrc"
#include <svtools/editbrowsebox.hxx>
#include <vcl/field.hxx>
#include "connpoolsettings.hxx"
...
...
@@ -27,16 +26,12 @@
#include "helpid.hrc"
#include <dialmgr.hxx>
//........................................................................
using
::
svt
::
EditBrowseBox
;
namespace
offapp
{
//........................................................................
//====================================================================
//= DriverListControl
//====================================================================
typedef
::
svt
::
EditBrowseBox
DriverListControl_Base
;
class
DriverListControl
:
public
DriverListControl_Base
/// Widget for the Connection Pool options page
class
DriverListControl
:
public
EditBrowseBox
{
using
Window
::
Update
;
protected
:
...
...
@@ -50,7 +45,7 @@ namespace offapp
Link
m_aRowChangeHandler
;
public
:
DriverListControl
(
Window
*
_pParent
,
const
ResId
&
_rId
);
DriverListControl
(
Window
*
_pParent
);
virtual
void
Init
();
void
Update
(
const
DriverPoolingSettings
&
_rSettings
);
...
...
@@ -94,11 +89,11 @@ namespace offapp
};
//--------------------------------------------------------------------
DriverListControl
::
DriverListControl
(
Window
*
_pParent
,
const
ResId
&
_rId
)
:
DriverListControl_Base
(
_pParent
,
_rId
,
EBBF_NOROWPICTURE
,
BROWSER_AUTO_VSCROLL
|
BROWSER_AUTO_HSCROLL
|
BROWSER_HIDECURSOR
|
BROWSER_AUTOSIZE_LASTCOL
)
DriverListControl
::
DriverListControl
(
Window
*
_pParent
)
:
EditBrowseBox
(
_pParent
,
EBBF_NOROWPICTURE
,
BROWSER_AUTO_VSCROLL
|
BROWSER_AUTO_HSCROLL
|
BROWSER_HIDECURSOR
|
BROWSER_AUTOSIZE_LASTCOL
)
,
m_aSeekRow
(
m_aSettings
.
end
())
,
m_sYes
(
ResId
(
STR_YES
,
*
_rId
.
GetResMgr
()
))
,
m_sNo
(
ResId
(
STR_NO
,
*
_rId
.
GetResMgr
()
))
,
m_sYes
(
CUI_RES
(
RID_SVXSTR_YES
))
,
m_sNo
(
CUI_RES
(
RID_SVXSTR_NO
))
{
SetStyle
((
GetStyle
()
&
~
WB_HSCROLL
)
|
WB_AUTOHSCROLL
);
...
...
@@ -106,6 +101,11 @@ namespace offapp
GetDataWindow
().
SetHelpId
(
HID_OFA_CONNPOOL_DRIVERLIST
);
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeDriverListControl
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
{
return
new
DriverListControl
(
pParent
);
}
//--------------------------------------------------------------------
sal_Bool
DriverListControl
::
IsTabAllowed
(
sal_Bool
/*_bForward*/
)
const
{
...
...
@@ -134,21 +134,21 @@ namespace offapp
//--------------------------------------------------------------------
void
DriverListControl
::
Init
()
{
DriverListControl_Base
::
Init
();
EditBrowseBox
::
Init
();
Size
aColWidth
=
LogicToPixel
(
Size
(
160
,
0
),
MAP_APPFONT
);
InsertDataColumn
(
1
,
String
(
CUI_RES
(
STR_DRIVER_NAME
)),
aColWidth
.
Width
());
InsertDataColumn
(
1
,
String
(
CUI_RES
(
RID_SVX
STR_DRIVER_NAME
)),
aColWidth
.
Width
());
aColWidth
=
LogicToPixel
(
Size
(
30
,
0
),
MAP_APPFONT
);
InsertDataColumn
(
2
,
String
(
CUI_RES
(
STR_POOLED_FLAG
)),
aColWidth
.
Width
());
InsertDataColumn
(
2
,
String
(
CUI_RES
(
RID_SVX
STR_POOLED_FLAG
)),
aColWidth
.
Width
());
aColWidth
=
LogicToPixel
(
Size
(
60
,
0
),
MAP_APPFONT
);
InsertDataColumn
(
3
,
String
(
CUI_RES
(
STR_POOL_TIMEOUT
)),
aColWidth
.
Width
());
InsertDataColumn
(
3
,
String
(
CUI_RES
(
RID_SVX
STR_POOL_TIMEOUT
)),
aColWidth
.
Width
());
// Attention: the resource of the string is local to the resource of the enclosing dialog!
}
//--------------------------------------------------------------------
void
DriverListControl
::
CursorMoved
()
{
DriverListControl_Base
::
CursorMoved
();
EditBrowseBox
::
CursorMoved
();
// call the row change handler
if
(
m_aRowChangeHandler
.
IsSet
()
)
...
...
@@ -238,7 +238,7 @@ namespace offapp
{
if
(
STATE_CHANGE_ENABLE
==
nStateChange
)
Window
::
Invalidate
(
INVALIDATE_UPDATE
);
DriverListControl_Base
::
StateChanged
(
nStateChange
);
EditBrowseBox
::
StateChanged
(
nStateChange
);
}
//--------------------------------------------------------------------
...
...
@@ -277,7 +277,7 @@ namespace offapp
//--------------------------------------------------------------------
sal_Bool
DriverListControl
::
SeekRow
(
long
_nRow
)
{
DriverListControl_Base
::
SeekRow
(
_nRow
);
EditBrowseBox
::
SeekRow
(
_nRow
);
if
(
_nRow
<
m_aSettings
.
size
())
m_aSeekRow
=
m_aSettings
.
begin
()
+
_nRow
;
...
...
@@ -317,24 +317,26 @@ namespace offapp
//====================================================================
//--------------------------------------------------------------------
ConnectionPoolOptionsPage
::
ConnectionPoolOptionsPage
(
Window
*
_pParent
,
const
SfxItemSet
&
_rAttrSet
)
:
SfxTabPage
(
_pParent
,
CUI_RES
(
RID_OFAPAGE_CONNPOOLOPTIONS
),
_rAttrSet
)
,
m_aFrame
(
this
,
CUI_RES
(
FL_POOLING
))
,
m_aEnablePooling
(
this
,
CUI_RES
(
CB_POOL_CONNS
))
,
m_aDriversLabel
(
this
,
CUI_RES
(
FT_DRIVERS
))
,
m_pDriverList
(
new
DriverListControl
(
this
,
CUI_RES
(
CTRL_DRIVER_LIST
)))
,
m_aDriverLabel
(
this
,
CUI_RES
(
FT_DRIVERLABEL
))
,
m_aDriver
(
this
,
CUI_RES
(
FT_DRIVER
))
,
m_aDriverPoolingEnabled
(
this
,
CUI_RES
(
CB_DRIVERPOOLING
))
,
m_aTimeoutLabel
(
this
,
CUI_RES
(
FT_TIMEOUT
))
,
m_aTimeout
(
this
,
CUI_RES
(
NF_TIMEOUT
))
:
SfxTabPage
(
_pParent
,
"ConnPoolPage"
,
"cui/ui/connpooloptions.ui"
,
_rAttrSet
)
{
get
(
m_pEnablePooling
,
"connectionpooling"
);
get
(
m_pDriversLabel
,
"driverslabel"
);
get
(
m_pDriverList
,
"driverlist"
);
get
(
m_pDriverLabel
,
"driverlabel"
);
get
(
m_pDriver
,
"driver"
);
get
(
m_pDriverPoolingEnabled
,
"enablepooling"
);
get
(
m_pTimeoutLabel
,
"timeoutlabel"
);
get
(
m_pTimeout
,
"timeout"
);
Size
aControlSize
(
248
,
100
);
aControlSize
=
LogicToPixel
(
aControlSize
,
MAP_APPFONT
);
m_pDriverList
->
set_width_request
(
aControlSize
.
Width
());
m_pDriverList
->
set_height_request
(
aControlSize
.
Height
());
m_pDriverList
->
Init
();
m_pDriverList
->
Show
();
FreeResource
();
m_aEnablePooling
.
SetClickHdl
(
LINK
(
this
,
ConnectionPoolOptionsPage
,
OnEnabledDisabled
)
);
m_aDriverPoolingEnabled
.
SetClickHdl
(
LINK
(
this
,
ConnectionPoolOptionsPage
,
OnEnabledDisabled
)
);
m_pEnablePooling
->
SetClickHdl
(
LINK
(
this
,
ConnectionPoolOptionsPage
,
OnEnabledDisabled
)
);
m_pDriverPoolingEnabled
->
SetClickHdl
(
LINK
(
this
,
ConnectionPoolOptionsPage
,
OnEnabledDisabled
)
);
m_pDriverList
->
SetRowChangeHandler
(
LINK
(
this
,
ConnectionPoolOptionsPage
,
OnDriverRowChanged
)
);
}
...
...
@@ -345,21 +347,15 @@ namespace offapp
return
new
ConnectionPoolOptionsPage
(
_pParent
,
_rAttrSet
);
}
//--------------------------------------------------------------------
ConnectionPoolOptionsPage
::~
ConnectionPoolOptionsPage
()
{
delete
m_pDriverList
;
}
//--------------------------------------------------------------------
void
ConnectionPoolOptionsPage
::
implInitControls
(
const
SfxItemSet
&
_rSet
,
sal_Bool
/*_bFromReset*/
)
{
// the enabled flag
SFX_ITEMSET_GET
(
_rSet
,
pEnabled
,
SfxBoolItem
,
SID_SB_POOLING_ENABLED
,
sal_True
);
OSL_ENSURE
(
pEnabled
,
"ConnectionPoolOptionsPage::implInitControls: missing the Enabled item!"
);
m_
aEnablePooling
.
Check
(
pEnabled
?
pEnabled
->
GetValue
()
:
sal_True
);
m_
pEnablePooling
->
Check
(
pEnabled
?
pEnabled
->
GetValue
()
:
sal_True
);
m_
aEnablePooling
.
SaveValue
();
m_
pEnablePooling
->
SaveValue
();
// the settings for the single drivers
SFX_ITEMSET_GET
(
_rSet
,
pDriverSettings
,
DriverPoolingSettingsItem
,
SID_SB_DRIVER_TIMEOUTS
,
sal_True
);
...
...
@@ -373,14 +369,14 @@ namespace offapp
m_pDriverList
->
saveValue
();
// reflect the new settings
OnEnabledDisabled
(
&
m_a
EnablePooling
);
OnEnabledDisabled
(
m_p
EnablePooling
);
}
//--------------------------------------------------------------------
long
ConnectionPoolOptionsPage
::
Notify
(
NotifyEvent
&
_rNEvt
)
{
if
(
EVENT_LOSEFOCUS
==
_rNEvt
.
GetType
())
if
(
m_
aTimeout
.
IsWindowOrChild
(
_rNEvt
.
GetWindow
()))
if
(
m_
pTimeout
->
IsWindowOrChild
(
_rNEvt
.
GetWindow
()))
commitTimeoutField
();
return
SfxTabPage
::
Notify
(
_rNEvt
);
...
...
@@ -393,9 +389,9 @@ namespace offapp
sal_Bool
bModified
=
sal_False
;
// the enabled flag
if
(
m_
aEnablePooling
.
GetSavedValue
()
!=
m_aEnablePooling
.
IsChecked
())
if
(
m_
pEnablePooling
->
GetSavedValue
()
!=
m_pEnablePooling
->
IsChecked
())
{
_rSet
.
Put
(
SfxBoolItem
(
SID_SB_POOLING_ENABLED
,
m_
aEnablePooling
.
IsChecked
()),
SID_SB_POOLING_ENABLED
);
_rSet
.
Put
(
SfxBoolItem
(
SID_SB_POOLING_ENABLED
,
m_
pEnablePooling
->
IsChecked
()),
SID_SB_POOLING_ENABLED
);
bModified
=
sal_True
;
}
...
...
@@ -426,23 +422,23 @@ namespace offapp
IMPL_LINK
(
ConnectionPoolOptionsPage
,
OnDriverRowChanged
,
const
void
*
,
_pRowIterator
)
{
sal_Bool
bValidRow
=
(
NULL
!=
_pRowIterator
);
m_
aDriverPoolingEnabled
.
Enable
(
bValidRow
&&
m_aEnablePooling
.
IsChecked
());
m_
aTimeoutLabel
.
Enable
(
bValidRow
);
m_
aTimeout
.
Enable
(
bValidRow
);
m_
pDriverPoolingEnabled
->
Enable
(
bValidRow
&&
m_pEnablePooling
->
IsChecked
());
m_
pTimeoutLabel
->
Enable
(
bValidRow
);
m_
pTimeout
->
Enable
(
bValidRow
);
if
(
!
bValidRow
)
{
// positioned on an invalid row
m_
aDriver
.
SetText
(
String
());
m_
pDriver
->
SetText
(
String
());
}
else
{
const
DriverPooling
*
pDriverPos
=
static_cast
<
const
DriverPooling
*>
(
_pRowIterator
);
m_
aDriver
.
SetText
(
pDriverPos
->
sName
);
m_
aDriverPoolingEnabled
.
Check
(
pDriverPos
->
bEnabled
);
m_
aTimeout
.
SetText
(
OUString
::
number
(
pDriverPos
->
nTimeoutSeconds
));
m_
pDriver
->
SetText
(
pDriverPos
->
sName
);
m_
pDriverPoolingEnabled
->
Check
(
pDriverPos
->
bEnabled
);
m_
pTimeout
->
SetText
(
OUString
::
number
(
pDriverPos
->
nTimeoutSeconds
));
OnEnabledDisabled
(
&
m_a
DriverPoolingEnabled
);
OnEnabledDisabled
(
m_p
DriverPoolingEnabled
);
}
return
0L
;
...
...
@@ -453,7 +449,7 @@ namespace offapp
{
if
(
DriverPooling
*
pCurrentDriver
=
m_pDriverList
->
getCurrentRow
())
{
pCurrentDriver
->
nTimeoutSeconds
=
static_cast
<
long
>
(
m_
aTimeout
.
GetValue
());
pCurrentDriver
->
nTimeoutSeconds
=
static_cast
<
long
>
(
m_
pTimeout
->
GetValue
());
m_pDriverList
->
updateCurrentRow
();
}
}
...
...
@@ -461,36 +457,33 @@ namespace offapp
//--------------------------------------------------------------------
IMPL_LINK
(
ConnectionPoolOptionsPage
,
OnEnabledDisabled
,
const
CheckBox
*
,
_pCheckBox
)
{
sal_Bool
bGloballyEnabled
=
m_
aEnablePooling
.
IsChecked
();
sal_Bool
bLocalDriverChanged
=
&
m_a
DriverPoolingEnabled
==
_pCheckBox
;
sal_Bool
bGloballyEnabled
=
m_
pEnablePooling
->
IsChecked
();
sal_Bool
bLocalDriverChanged
=
m_p
DriverPoolingEnabled
==
_pCheckBox
;
if
(
&
m_a
EnablePooling
==
_pCheckBox
)
if
(
m_p
EnablePooling
==
_pCheckBox
)
{
m_
aDriversLabel
.
Enable
(
bGloballyEnabled
);
m_
pDriversLabel
->
Enable
(
bGloballyEnabled
);
m_pDriverList
->
Enable
(
bGloballyEnabled
);
m_
aDriverLabel
.
Enable
(
bGloballyEnabled
);
m_
aDriver
.
Enable
(
bGloballyEnabled
);
m_
aDriverPoolingEnabled
.
Enable
(
bGloballyEnabled
);
m_
pDriverLabel
->
Enable
(
bGloballyEnabled
);
m_
pDriver
->
Enable
(
bGloballyEnabled
);
m_
pDriverPoolingEnabled
->
Enable
(
bGloballyEnabled
);
}
else
OSL_ENSURE
(
bLocalDriverChanged
,
"ConnectionPoolOptionsPage::OnEnabledDisabled: where did this come from?"
);
m_
aTimeoutLabel
.
Enable
(
bGloballyEnabled
&&
m_aDriverPoolingEnabled
.
IsChecked
());
m_
aTimeout
.
Enable
(
bGloballyEnabled
&&
m_aDriverPoolingEnabled
.
IsChecked
());
m_
pTimeoutLabel
->
Enable
(
bGloballyEnabled
&&
m_pDriverPoolingEnabled
->
IsChecked
());
m_
pTimeout
->
Enable
(
bGloballyEnabled
&&
m_pDriverPoolingEnabled
->
IsChecked
());
if
(
bLocalDriverChanged
)
{
// update the list
m_pDriverList
->
getCurrentRow
()
->
bEnabled
=
m_
aDriverPoolingEnabled
.
IsChecked
();
m_pDriverList
->
getCurrentRow
()
->
bEnabled
=
m_
pDriverPoolingEnabled
->
IsChecked
();
m_pDriverList
->
updateCurrentRow
();
}
return
0L
;
}
//........................................................................
}
// namespace offapp
//........................................................................
}
// namespace offapp
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/options/connpooloptions.hrc
deleted
100644 → 0
Dosyayı görüntüle @
b84c89bb
/* -*- 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 .
*/
#ifndef _OFFAPP_CONNPOOLOPTIONS_HRC_
#define _OFFAPP_CONNPOOLOPTIONS_HRC_
#define FL_POOLING 1
#define CB_POOL_CONNS 2
#define FT_DRIVERS 3
#define CTRL_DRIVER_LIST 4
#define FT_DRIVERLABEL 5
#define FT_DRIVER 6
#define CB_DRIVERPOOLING 7
#define FT_TIMEOUT 8
#define NF_TIMEOUT 9
#define STR_DRIVER_NAME 1
#define STR_POOLED_FLAG 2
#define STR_POOL_TIMEOUT 3
#define STR_YES 4
#define STR_NO 5
#endif // _OFFAPP_CONNPOOLOPTIONS_HRC_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/options/connpooloptions.hxx
Dosyayı görüntüle @
33ad001f
...
...
@@ -27,11 +27,8 @@
#include <vcl/field.hxx>
#include <svx/databaseregistrationui.hxx>
//........................................................................
namespace
offapp
{
//........................................................................
//====================================================================
//= ConnectionPoolOptionsPage
//====================================================================
...
...
@@ -41,15 +38,14 @@ namespace offapp
using
TabPage
::
ActivatePage
;
protected
:
FixedLine
m_aFrame
;
CheckBox
m_aEnablePooling
;
FixedText
m_aDriversLabel
;
CheckBox
*
m_pEnablePooling
;
FixedText
*
m_pDriversLabel
;
DriverListControl
*
m_pDriverList
;
FixedText
m_a
DriverLabel
;
FixedText
m_a
Driver
;
CheckBox
m_a
DriverPoolingEnabled
;
FixedText
m_a
TimeoutLabel
;
NumericField
m_a
Timeout
;
FixedText
*
m_p
DriverLabel
;
FixedText
*
m_p
Driver
;
CheckBox
*
m_p
DriverPoolingEnabled
;
FixedText
*
m_p
TimeoutLabel
;
NumericField
*
m_p
Timeout
;
protected
:
ConnectionPoolOptionsPage
(
Window
*
_pParent
,
const
SfxItemSet
&
_rAttrSet
);
...
...
@@ -57,12 +53,10 @@ namespace offapp
public
:
static
SfxTabPage
*
Create
(
Window
*
_pParent
,
const
SfxItemSet
&
_rAttrSet
);
~
ConnectionPoolOptionsPage
();
protected
:
virtual
long
Notify
(
NotifyEvent
&
_rNEvt
);
virtual
sal_Bool
FillItemSet
(
SfxItemSet
&
_rSet
);
virtual
sal_Bool
FillItemSet
(
SfxItemSet
&
_rSet
);
virtual
void
Reset
(
const
SfxItemSet
&
_rSet
);
virtual
void
ActivatePage
(
const
SfxItemSet
&
_rSet
);
...
...
@@ -75,11 +69,8 @@ namespace offapp
void
commitTimeoutField
();
};
//........................................................................
}
// namespace offapp
//........................................................................
}
// namespace offapp
#endif // _OFFAPP_CONNPOOLOPTIONS_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/options/connpooloptions.src
Dosyayı görüntüle @
33ad001f
...
...
@@ -17,111 +17,27 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "connpooloptions.hrc"
#include <cuires.hrc>
#define PAGE_SIZE_X TP_WIDTH
#define PAGE_SIZE_Y TP_HEIGHT
#define LIST_SIZE_Y 100
TabPage RID_OFAPAGE_CONNPOOLOPTIONS
String RID_SVXSTR_DRIVER_NAME
{
HelpID = "cui:TabPage:RID_OFAPAGE_CONNPOOLOPTIONS";
OutputSize = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( PAGE_SIZE_X, PAGE_SIZE_Y ) ;
SVLook = TRUE ;
Hide = TRUE ;
FixedLine FL_POOLING
{
Pos = MAP_APPFONT( 4, 3 );
Size = MAP_APPFONT( PAGE_SIZE_X - 8, 8 );
Text [ en-US ] = "Connection pool";
};
CheckBox CB_POOL_CONNS
{
HelpID = "cui:CheckBox:RID_OFAPAGE_CONNPOOLOPTIONS:CB_POOL_CONNS";
Pos = MAP_APPFONT( 7, 15 );
Size = MAP_APPFONT( PAGE_SIZE_X - 14, 10 );
Text [ en-US ] = "Connection pooling enabled";
};
FixedText FT_DRIVERS
{
Pos = MAP_APPFONT( 17, 28 );
Size = MAP_APPFONT( PAGE_SIZE_X - 14 - 8, 8 );
Text [ en-US ] = "Drivers known in %PRODUCTNAME";
};
Control CTRL_DRIVER_LIST
{
Pos = MAP_APPFONT( 17, 39 );
Size = MAP_APPFONT( PAGE_SIZE_X - 14 - 8, LIST_SIZE_Y );
TabStop = TRUE;
Border = TRUE;
SVLook = TRUE;
};
FixedText FT_DRIVERLABEL
{
Pos = MAP_APPFONT( 17, 39 + LIST_SIZE_Y + 4 );
Size = MAP_APPFONT( 70, 8 );
Text [ en-US ] = "Current driver:";
};
FixedText FT_DRIVER
{
Pos = MAP_APPFONT( 17 + 70 + 3, 39 + LIST_SIZE_Y + 4 );
Size = MAP_APPFONT( PAGE_SIZE_X - ( 15 + 70 + 3 ) - 7, 8 );
};
CheckBox CB_DRIVERPOOLING
{
HelpID = "cui:CheckBox:RID_OFAPAGE_CONNPOOLOPTIONS:CB_DRIVERPOOLING";
Pos = MAP_APPFONT( 17, 39 + LIST_SIZE_Y + 4 + 8 + 3 );
Size = MAP_APPFONT( PAGE_SIZE_X - 23, 10 );
Text [ en-US ] = "Enable pooling for this driver";
};
FixedText FT_TIMEOUT
{
Pos = MAP_APPFONT( 27, 39 + LIST_SIZE_Y + 4 + 8 + 3 + 10 + 3 + 2 );
Size = MAP_APPFONT( 100, 8 );
Text [ en-US ] = "Timeout (seconds)";
};
NumericField NF_TIMEOUT
{
HelpID = "cui:NumericField:RID_OFAPAGE_CONNPOOLOPTIONS:NF_TIMEOUT";
Pos = MAP_APPFONT( 27 + 100 + 3, 39 + LIST_SIZE_Y + 4 + 8 + 3 + 10 + 3 );
Size = MAP_APPFONT( 40, 12 );
SvLook = TRUE;
Border = TRUE;
Right = TRUE;
Spin = TRUE;
Repeat = TRUE;
Minimum = 30;
Maximum = 600;
StrictFormat = TRUE;
DecimalDigits = 0;
SpinSize = 1;
};
String STR_DRIVER_NAME
{
Text [ en-US ] = "Driver name";
};
String STR_POOLED_FLAG
{
Text [ en-US ] = "Pool";
};
String STR_POOL_TIMEOUT
{
Text [ en-US ] = "Timeout";
};
String STR_YES
{
Text [ en-US ] = "Yes";
};
String STR_NO
{
Text [ en-US ] = "No";
};
Text [ en-US ] = "Driver name";
};
String RID_SVXSTR_POOLED_FLAG
{
Text [ en-US ] = "Pool";
};
String RID_SVXSTR_POOL_TIMEOUT
{
Text [ en-US ] = "Timeout";
};
String RID_SVXSTR_YES
{
Text [ en-US ] = "Yes";
};
String RID_SVXSTR_NO
{
Text [ en-US ] = "No";
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/uiconfig/ui/connpooloptions.ui
0 → 100644
Dosyayı görüntüle @
33ad001f
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkAdjustment"
id=
"adjustment1"
>
<property
name=
"lower"
>
30
</property>
<property
name=
"upper"
>
600
</property>
<property
name=
"value"
>
60
</property>
<property
name=
"step_increment"
>
1
</property>
<property
name=
"page_increment"
>
10
</property>
</object>
<object
class=
"GtkGrid"
id=
"ConnPoolPage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"row_spacing"
>
12
</property>
<child>
<object
class=
"GtkFrame"
id=
"frame1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"margin_top"
>
6
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"top_padding"
>
6
</property>
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"GtkBox"
id=
"box1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkCheckButton"
id=
"connectionpooling"
>
<property
name=
"label"
translatable=
"yes"
>
Connection pooling enabled
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"draw_indicator"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkBox"
id=
"box2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"margin_left"
>
12
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"driverslabel"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Drivers known in %PRODUCTNAME
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"cuilo-DriverListControl"
id=
"driverlist"
>
<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=
"GtkBox"
id=
"box3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"driverlabel"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Current driver:
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"driver"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
<child>
<object
class=
"GtkCheckButton"
id=
"enablepooling"
>
<property
name=
"label"
translatable=
"yes"
>
Enable pooling for this driver
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"draw_indicator"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
</packing>
</child>
<child>
<object
class=
"GtkBox"
id=
"box4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"margin_left"
>
12
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"timeoutlabel"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_Timeout (seconds)
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
timeout
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"timeout"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
●
</property>
<property
name=
"invisible_char_set"
>
True
</property>
<property
name=
"adjustment"
>
adjustment1
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
4
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Registered databases
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
</object>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
</interface>
extras/source/glade/libreoffice-catalog.xml.in
Dosyayı görüntüle @
33ad001f
...
...
@@ -527,5 +527,9 @@
generic-name=
"Template Icon View"
parent=
"GtkIconView"
icon-name=
"widget-gtk-iconview"
/>
<glade-widget-class
title=
"Driver List Control"
name=
"cuilo-DriverListControl"
generic-name=
"DriverListControl"
parent=
"GtkEntry"
icon-name=
"widget-gtk-combobox"
/>
</glade-widget-classes>
</glade-catalog>
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