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
af4ca5a8
Kaydet (Commit)
af4ca5a8
authored
Agu 20, 2012
tarafından
Timothy Pearson
Kaydeden (comit)
Caolán McNamara
Agu 20, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix TDE VCL interface
Change-Id: Ifd28ab758ba8be89a57c152d3fb9d361715bb33f
üst
5eac8941
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
8 deletions
+34
-8
salplug.cxx
vcl/unx/generic/plugadapt/salplug.cxx
+0
-3
UnxFilePicker.cxx
vcl/unx/kde/UnxFilePicker.cxx
+8
-0
kdefilepicker.cxx
vcl/unx/kde/fpicker/kdefilepicker.cxx
+22
-5
kdefilepicker.hxx
vcl/unx/kde/fpicker/kdefilepicker.hxx
+4
-0
salnativewidgets-kde.cxx
vcl/unx/kde/salnativewidgets-kde.cxx
+0
-0
No files found.
vcl/unx/generic/plugadapt/salplug.cxx
Dosyayı görüntüle @
af4ca5a8
...
...
@@ -189,10 +189,7 @@ static SalInstance* autodetect_plugin()
else
if
(
desktop
==
DESKTOP_GNOME
)
pList
=
pStandardFallbackList
;
else
if
(
desktop
==
DESKTOP_TDE
)
{
pList
=
pTDEFallbackList
;
nListEntry
=
1
;
}
else
if
(
desktop
==
DESKTOP_KDE
)
{
pList
=
pKDEFallbackList
;
...
...
vcl/unx/kde/UnxFilePicker.cxx
Dosyayı görüntüle @
af4ca5a8
...
...
@@ -81,7 +81,11 @@ namespace
uno
::
Sequence
<
rtl
::
OUString
>
aRet
(
3
);
aRet
[
0
]
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.ui.dialogs.FilePicker"
));
aRet
[
1
]
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.ui.dialogs.SystemFilePicker"
));
#ifdef ENABLE_TDE
aRet
[
2
]
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.ui.dialogs.TDEFilePicker"
));
#else // ENABLE_TDE
aRet
[
2
]
=
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.ui.dialogs.KDEFilePicker"
));
#endif // ENABLE_TDE
return
aRet
;
}
}
...
...
@@ -717,7 +721,11 @@ void UnxFilePicker::initFilePicker()
#endif
// The executable name
#ifdef ENABLE_TDE
rtl
::
OUString
helperurl
(
RTL_CONSTASCII_USTRINGPARAM
(
"${ORIGIN}/tdefilepicker"
));
#else // ENABLE_TDE
rtl
::
OUString
helperurl
(
RTL_CONSTASCII_USTRINGPARAM
(
"${ORIGIN}/kdefilepicker"
));
#endif // ENABLE_TDE
rtl
::
Bootstrap
::
expandMacros
(
helperurl
);
rtl
::
OUString
helperpath
;
osl
::
FileBase
::
getSystemPathFromFileURL
(
helperurl
,
helperpath
);
...
...
vcl/unx/kde/fpicker/kdefilepicker.cxx
Dosyayı görüntüle @
af4ca5a8
...
...
@@ -85,6 +85,14 @@
#endif // ENABLE_TDE
#ifdef ENABLE_TDE
#define QCheckBox_String "TQCheckBox"
#define QComboBox_String "TQComboBox"
#else // ENABLE_TDE
#define QCheckBox_String "QCheckBox"
#define QComboBox_String "QComboBox"
#endif // ENABLE_TDE
#include <algorithm>
#include <iostream>
...
...
@@ -104,8 +112,13 @@ KDEFileDialog::KDEFileDialog( const QString &startDir, const QString &filter,
m_bIsExecuting
(
false
),
m_bCanNotifySelection
(
true
)
{
#ifdef ENABLE_TDE
connect
(
this
,
SIGNAL
(
fileHighlighted
(
const
TQString
&
)
),
this
,
SLOT
(
fileHighlightedCommand
(
const
TQString
&
)
)
);
#else // ENABLE_TDE
connect
(
this
,
SIGNAL
(
fileHighlighted
(
const
QString
&
)
),
this
,
SLOT
(
fileHighlightedCommand
(
const
QString
&
)
)
);
#endif // ENABLE_TDE
connect
(
this
,
SIGNAL
(
selectionChanged
()
),
this
,
SLOT
(
selectionChangedCommand
()
)
);
...
...
@@ -434,7 +447,7 @@ void KDEFileDialog::getValue( const QString &rId, const QString &rAction )
if
(
pWidget
)
{
QCString
qClassName
=
pWidget
->
className
();
if
(
qClassName
==
"QCheckBox"
)
if
(
qClassName
==
QCheckBox_String
)
{
QCheckBox
*
pCheckBox
=
static_cast
<
QCheckBox
*
>
(
pWidget
);
...
...
@@ -443,7 +456,7 @@ void KDEFileDialog::getValue( const QString &rId, const QString &rAction )
else
qString
.
append
(
" bool false"
);
}
else
if
(
qClassName
==
"QComboBox"
)
else
if
(
qClassName
==
QComboBox_String
)
{
QComboBox
*
pComboBox
=
static_cast
<
QComboBox
*
>
(
pWidget
);
if
(
rAction
==
"getItems"
)
...
...
@@ -480,14 +493,14 @@ void KDEFileDialog::setValue( const QString &rId, const QString &rAction, const
if
(
pWidget
)
{
QCString
qClassName
=
pWidget
->
className
();
if
(
qClassName
==
"QCheckBox"
)
if
(
qClassName
==
QCheckBox_String
)
{
QCheckBox
*
pCheckBox
=
static_cast
<
QCheckBox
*
>
(
pWidget
);
bool
bValue
=
(
!
rValue
.
isEmpty
()
)
&&
(
rValue
.
front
().
lower
()
==
"true"
);
pCheckBox
->
setChecked
(
bValue
);
}
else
if
(
qClassName
==
"QComboBox"
)
else
if
(
qClassName
==
QComboBox_String
)
{
QComboBox
*
pComboBox
=
static_cast
<
QComboBox
*
>
(
pWidget
);
if
(
rAction
==
"addItem"
)
...
...
@@ -562,7 +575,7 @@ QString KDEFileDialog::addExtension( const QString &rFileName ) const
QString
qExtension
;
QWidget
*
pExtensionWidget
=
findControl
(
"100"
);
// CHECKBOX_AUTOEXTENSION
QCheckBox
*
pExtensionCB
=
pExtensionWidget
?
static_cast
<
QCheckBox
*
>
(
pExtensionWidget
->
qt_cast
(
"QCheckBox"
)
)
:
NULL
;
QCheckBox
*
pExtensionCB
=
pExtensionWidget
?
static_cast
<
QCheckBox
*
>
(
pExtensionWidget
->
qt_cast
(
QCheckBox_String
)
)
:
NULL
;
if
(
pExtensionCB
&&
pExtensionCB
->
isChecked
()
)
{
// FIXME: qFilter can be a MIME; we ignore it now...
...
...
@@ -660,7 +673,11 @@ QString KDEFileDialog::localCopy( const QString &rFileName ) const
return
qDestURL
.
url
();
}
#ifdef ENABLE_TDE
void
KDEFileDialog
::
fileHighlightedCommand
(
const
TQString
&
)
#else // ENABLE_TDE
void
KDEFileDialog
::
fileHighlightedCommand
(
const
QString
&
)
#endif // ENABLE_TDE
{
if
(
canNotifySelection
()
)
{
...
...
vcl/unx/kde/fpicker/kdefilepicker.hxx
Dosyayı görüntüle @
af4ca5a8
...
...
@@ -114,7 +114,11 @@ protected:
bool
canNotifySelection
(
void
)
const
{
return
m_bCanNotifySelection
;
}
protected
slots
:
#ifdef ENABLE_TDE
void
fileHighlightedCommand
(
const
TQString
&
);
#else // ENABLE_TDE
void
fileHighlightedCommand
(
const
QString
&
);
#endif // ENABLE_TDE
void
selectionChangedCommand
();
protected
:
...
...
vcl/unx/kde/salnativewidgets-kde.cxx
Dosyayı görüntüle @
af4ca5a8
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