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
c8956a1e
Kaydet (Commit)
c8956a1e
authored
May 18, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: implement tree header bar area
Change-Id: I9f4ef42eb35524714a170e9f4a4d5ef13e198efd
üst
4b5091cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
gtkgdi.hxx
vcl/inc/unx/gtk/gtkgdi.hxx
+1
-0
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+31
-4
No files found.
vcl/inc/unx/gtk/gtkgdi.hxx
Dosyayı görüntüle @
c8956a1e
...
...
@@ -88,6 +88,7 @@ private:
static
GtkStyleContext
*
mpFrameOutStyle
;
static
GtkStyleContext
*
mpFixedHoriLineStyle
;
static
GtkStyleContext
*
mpFixedVertLineStyle
;
static
GtkStyleContext
*
mpTreeHeaderButtonStyle
;
static
Rectangle
NWGetScrollButtonRect
(
ControlPart
nPart
,
Rectangle
aAreaRect
);
static
Rectangle
NWGetSpinButtonRect
(
ControlPart
nPart
,
Rectangle
aAreaRect
);
...
...
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
c8956a1e
...
...
@@ -44,6 +44,7 @@ GtkStyleContext* GtkSalGraphics::mpFrameInStyle = NULL;
GtkStyleContext
*
GtkSalGraphics
::
mpFrameOutStyle
=
NULL
;
GtkStyleContext
*
GtkSalGraphics
::
mpFixedHoriLineStyle
=
NULL
;
GtkStyleContext
*
GtkSalGraphics
::
mpFixedVertLineStyle
=
NULL
;
GtkStyleContext
*
GtkSalGraphics
::
mpTreeHeaderButtonStyle
=
NULL
;
bool
GtkSalGraphics
::
style_loaded
=
false
;
/************************************************************************
...
...
@@ -814,6 +815,7 @@ static GtkWidget* gFrameIn;
static
GtkWidget
*
gFrameOut
;
static
GtkWidget
*
gMenuBarWidget
;
static
GtkWidget
*
gMenuItemMenuBarWidget
;
static
GtkWidget
*
gTreeViewWidget
;
bool
GtkSalGraphics
::
drawNativeControl
(
ControlType
nType
,
ControlPart
nPart
,
const
Rectangle
&
rControlRegion
,
ControlState
nState
,
const
ImplControlValue
&
rValue
,
...
...
@@ -987,6 +989,10 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
case
CTRL_FIXEDLINE
:
context
=
nPart
==
PART_SEPARATOR_HORZ
?
mpFixedHoriLineStyle
:
mpFixedVertLineStyle
;
renderType
=
RENDER_SEPERATOR
;
break
;
case
CTRL_LISTHEADER
:
context
=
mpTreeHeaderButtonStyle
;
break
;
default
:
return
false
;
}
...
...
@@ -1789,10 +1795,10 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
return
true
;
break
;
//
case CTRL_LISTHEADER:
// if(nPart == PART_BUTTON || nPart == PART_ARROW
)
//
return true;
//
break;
case
CTRL_LISTHEADER
:
if
(
nPart
==
PART_BUTTON
/*|| nPart == PART_ARROW*/
)
return
true
;
break
;
}
printf
(
"Unhandled is native supported for Type: %d, Part %d
\n
"
,
...
...
@@ -1984,6 +1990,27 @@ GtkSalGraphics::GtkSalGraphics( GtkSalFrame *pFrame, GtkWidget *pWindow )
getStyleContext
(
&
mpFixedHoriLineStyle
,
gtk_separator_new
(
GTK_ORIENTATION_HORIZONTAL
));
getStyleContext
(
&
mpFixedVertLineStyle
,
gtk_separator_new
(
GTK_ORIENTATION_VERTICAL
));
/* Tree List */
gTreeViewWidget
=
gtk_tree_view_new
();
gtk_container_add
(
GTK_CONTAINER
(
gDumbContainer
),
gTreeViewWidget
);
GtkTreeViewColumn
*
firstTreeViewColumn
=
gtk_tree_view_column_new
();
gtk_tree_view_column_set_title
(
firstTreeViewColumn
,
"M"
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
gTreeViewWidget
),
firstTreeViewColumn
);
GtkTreeViewColumn
*
middleTreeViewColumn
=
gtk_tree_view_column_new
();
gtk_tree_view_column_set_title
(
middleTreeViewColumn
,
"M"
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
gTreeViewWidget
),
middleTreeViewColumn
);
GtkTreeViewColumn
*
lastTreeViewColumn
=
gtk_tree_view_column_new
();
gtk_tree_view_column_set_title
(
lastTreeViewColumn
,
"M"
);
gtk_tree_view_append_column
(
GTK_TREE_VIEW
(
gTreeViewWidget
),
lastTreeViewColumn
);
/* Use the middle column's header for our button */
GtkWidget
*
pTreeHeaderCellWidget
=
gtk_tree_view_column_get_button
(
middleTreeViewColumn
);
mpTreeHeaderButtonStyle
=
gtk_widget_get_style_context
(
pTreeHeaderCellWidget
);
gtk_widget_show_all
(
gDumbContainer
);
}
...
...
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