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
9b367930
Kaydet (Commit)
9b367930
authored
Haz 10, 2015
tarafından
Pranav Kant
Kaydeden (comit)
Miklos Vajna
Haz 15, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lokdocview, gtktiledviewer: Port to gtk3
Change-Id: I57f2d7b9383790e5c34fc517a905dd537519598f
üst
2a6bf436
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
24 deletions
+31
-24
Executable_gtktiledviewer.mk
libreofficekit/Executable_gtktiledviewer.mk
+8
-1
Library_libreofficekitgtk.mk
libreofficekit/Library_libreofficekitgtk.mk
+8
-4
Module_libreofficekit.mk
libreofficekit/Module_libreofficekit.mk
+2
-2
gtktiledviewer.cxx
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+2
-4
lokdocview.cxx
libreofficekit/source/gtk/lokdocview.cxx
+11
-13
No files found.
libreofficekit/Executable_gtktiledviewer.mk
Dosyayı görüntüle @
9b367930
...
@@ -16,7 +16,14 @@ $(eval $(call gb_Executable_set_include,gtktiledviewer,\
...
@@ -16,7 +16,14 @@ $(eval $(call gb_Executable_set_include,gtktiledviewer,\
$(eval $(call gb_Executable_use_externals,gtktiledviewer,\
$(eval $(call gb_Executable_use_externals,gtktiledviewer,\
boost_headers \
boost_headers \
gtk \
))
$(eval $(call gb_Executable_add_cxxflags,gtktiledviewer,\
$$(GTK3_CFLAGS) \
))
$(eval $(call gb_Executable_add_libs,gtktiledviewer,\
$(GTK3_LIBS) \
))
))
$(eval $(call gb_Executable_use_libraries,gtktiledviewer,\
$(eval $(call gb_Executable_use_libraries,gtktiledviewer,\
...
...
libreofficekit/Library_libreofficekitgtk.mk
Dosyayı görüntüle @
9b367930
...
@@ -11,15 +11,19 @@ $(eval $(call gb_Library_Library,libreofficekitgtk))
...
@@ -11,15 +11,19 @@ $(eval $(call gb_Library_Library,libreofficekitgtk))
$(eval $(call gb_Library_use_sdk_api,libreofficekitgtk))
$(eval $(call gb_Library_use_sdk_api,libreofficekitgtk))
$(eval $(call gb_Library_use_externals,libreofficekitgtk,\
gtk \
))
$(eval $(call gb_Library_add_exception_objects,libreofficekitgtk,\
$(eval $(call gb_Library_add_exception_objects,libreofficekitgtk,\
libreofficekit/source/gtk/lokdocview \
libreofficekit/source/gtk/lokdocview \
libreofficekit/source/gtk/tilebuffer \
libreofficekit/source/gtk/tilebuffer \
))
))
$(eval $(call gb_Library_add_cxxflags,libreofficekitgtk,\
$$(GTK3_CFLAGS) \
))
$(eval $(call gb_Library_add_libs,libreofficekitgtk,\
$(GTK3_LIBS) \
))
ifeq ($(OS),LINUX)
ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_libs,libreofficekitgtk,\
$(eval $(call gb_Library_add_libs,libreofficekitgtk,\
-ldl \
-ldl \
...
...
libreofficekit/Module_libreofficekit.mk
Dosyayı görüntüle @
9b367930
...
@@ -15,7 +15,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,libreofficekit,\
...
@@ -15,7 +15,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,libreofficekit,\
CppunitTest_libreofficekit_tiledrendering \
CppunitTest_libreofficekit_tiledrendering \
))
))
ifneq ($(ENABLE_GTK),)
ifneq ($(ENABLE_GTK
3
),)
$(eval $(call gb_Module_add_targets,libreofficekit,\
$(eval $(call gb_Module_add_targets,libreofficekit,\
Library_libreofficekitgtk \
Library_libreofficekitgtk \
Executable_gtktiledviewer \
Executable_gtktiledviewer \
...
@@ -24,7 +24,7 @@ $(eval $(call gb_Module_add_targets,libreofficekit,\
...
@@ -24,7 +24,7 @@ $(eval $(call gb_Module_add_targets,libreofficekit,\
$(eval $(call gb_Module_add_targets,libreofficekit,\
$(eval $(call gb_Module_add_targets,libreofficekit,\
Executable_tilebench \
Executable_tilebench \
))
))
endif # ($(ENABLE_GTK),)
endif # ($(ENABLE_GTK
3
),)
endif # ($(OS),LINUX)
endif # ($(OS),LINUX)
...
...
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
Dosyayı görüntüle @
9b367930
...
@@ -14,9 +14,7 @@
...
@@ -14,9 +14,7 @@
#include <map>
#include <map>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <LibreOfficeKit/LibreOfficeKitGtk.h>
#include <LibreOfficeKit/LibreOfficeKitGtk.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
...
@@ -208,13 +206,13 @@ static gboolean signalFindbar(GtkWidget* /*pWidget*/, GdkEventKey* pEvent, gpoin
...
@@ -208,13 +206,13 @@ static gboolean signalFindbar(GtkWidget* /*pWidget*/, GdkEventKey* pEvent, gpoin
gtk_label_set_text
(
GTK_LABEL
(
pFindbarLabel
),
""
);
gtk_label_set_text
(
GTK_LABEL
(
pFindbarLabel
),
""
);
switch
(
pEvent
->
keyval
)
switch
(
pEvent
->
keyval
)
{
{
case
GDK_Return
:
case
GDK_
KEY_
Return
:
{
{
// Search forward.
// Search forward.
doSearch
(
/*bBackwards=*/
false
);
doSearch
(
/*bBackwards=*/
false
);
return
TRUE
;
return
TRUE
;
}
}
case
GDK_Escape
:
case
GDK_
KEY_
Escape
:
{
{
// Hide the findbar.
// Hide the findbar.
gtk_widget_hide
(
pFindbar
);
gtk_widget_hide
(
pFindbar
);
...
...
libreofficekit/source/gtk/lokdocview.cxx
Dosyayı görüntüle @
9b367930
...
@@ -13,8 +13,6 @@
...
@@ -13,8 +13,6 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gdk/gdkkeysyms.h>
#include <com/sun/star/awt/Key.hpp>
#include <com/sun/star/awt/Key.hpp>
#define LOK_USE_UNSTABLE_API
#define LOK_USE_UNSTABLE_API
#include <LibreOfficeKit/LibreOfficeKit.h>
#include <LibreOfficeKit/LibreOfficeKit.h>
...
@@ -336,7 +334,7 @@ void LOKDocView_Impl::onExposedImpl(GdkEventExpose* event)
...
@@ -336,7 +334,7 @@ void LOKDocView_Impl::onExposedImpl(GdkEventExpose* event)
guint
nRows
=
ceil
((
double
)
nDocumentHeightPixels
/
nTileSizePixels
);
guint
nRows
=
ceil
((
double
)
nDocumentHeightPixels
/
nTileSizePixels
);
guint
nColumns
=
ceil
((
double
)
nDocumentWidthPixels
/
nTileSizePixels
);
guint
nColumns
=
ceil
((
double
)
nDocumentWidthPixels
/
nTileSizePixels
);
GdkRectangle
aVisibleArea
=
event
->
area
;
GdkRectangle
aVisibleArea
=
event
->
area
;
cairo_t
*
pcairo
=
gdk_cairo_create
(
GTK_WIDGET
(
m_pDocView
)
->
window
);
cairo_t
*
pcairo
=
gdk_cairo_create
(
gtk_widget_get_window
(
GTK_WIDGET
(
m_pDocView
))
);
aVisibleArea
.
x
=
pixelToTwip
(
aVisibleArea
.
x
,
m_fZoom
);
aVisibleArea
.
x
=
pixelToTwip
(
aVisibleArea
.
x
,
m_fZoom
);
aVisibleArea
.
y
=
pixelToTwip
(
aVisibleArea
.
y
,
m_fZoom
);
aVisibleArea
.
y
=
pixelToTwip
(
aVisibleArea
.
y
,
m_fZoom
);
...
@@ -401,33 +399,33 @@ void LOKDocView_Impl::signalKey(GdkEventKey* pEvent)
...
@@ -401,33 +399,33 @@ void LOKDocView_Impl::signalKey(GdkEventKey* pEvent)
switch
(
pEvent
->
keyval
)
switch
(
pEvent
->
keyval
)
{
{
case
GDK_BackSpace
:
case
GDK_
KEY_
BackSpace
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
BACKSPACE
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
BACKSPACE
;
break
;
break
;
case
GDK_Return
:
case
GDK_
KEY_
Return
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
RETURN
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
RETURN
;
break
;
break
;
case
GDK_Escape
:
case
GDK_
KEY_
Escape
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
ESCAPE
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
ESCAPE
;
break
;
break
;
case
GDK_Tab
:
case
GDK_
KEY_
Tab
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
TAB
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
TAB
;
break
;
break
;
case
GDK_Down
:
case
GDK_
KEY_
Down
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
DOWN
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
DOWN
;
break
;
break
;
case
GDK_Up
:
case
GDK_
KEY_
Up
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
UP
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
UP
;
break
;
break
;
case
GDK_Left
:
case
GDK_
KEY_
Left
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
LEFT
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
LEFT
;
break
;
break
;
case
GDK_Right
:
case
GDK_
KEY_
Right
:
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
RIGHT
;
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
RIGHT
;
break
;
break
;
default
:
default
:
if
(
pEvent
->
keyval
>=
GDK_
F1
&&
pEvent
->
keyval
<=
GDK
_F26
)
if
(
pEvent
->
keyval
>=
GDK_
KEY_F1
&&
pEvent
->
keyval
<=
GDK_KEY
_F26
)
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
F1
+
(
pEvent
->
keyval
-
GDK_F1
);
nKeyCode
=
com
::
sun
::
star
::
awt
::
Key
::
F1
+
(
pEvent
->
keyval
-
GDK_
KEY_
F1
);
else
else
nCharCode
=
gdk_keyval_to_unicode
(
pEvent
->
keyval
);
nCharCode
=
gdk_keyval_to_unicode
(
pEvent
->
keyval
);
}
}
...
...
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