Rename GridLines property to GridLinesVisible
This commit is contained in:
Родитель
b7bd51ceb4
Коммит
848bb44f6a
|
@ -48,7 +48,7 @@ namespace Samples
|
|||
// Custom list box
|
||||
|
||||
ListBox customList = new ListBox ();
|
||||
customList.GridLines = true;
|
||||
customList.GridLinesVisible = true;
|
||||
ListStore store = new ListStore (name, icon);
|
||||
customList.DataSource = store;
|
||||
customList.Views.Add (new ImageCellView (icon));
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace Samples
|
|||
{
|
||||
PackStart (new Label ("The listview should have a red background"));
|
||||
ListView list = new ListView ();
|
||||
list.GridLines = GridLines.Both;
|
||||
list.GridLinesVisible = GridLines.Both;
|
||||
ListStore store = new ListStore (name, icon, text, icon2, progress);
|
||||
list.DataSource = store;
|
||||
list.Columns.Add ("Name", icon, name);
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Samples
|
|||
|
||||
ListStore store = new ListStore(editableActiveField, nonEditableActiveField, textField, textField2, editableField, somewhatEditableData);
|
||||
list.DataSource = store;
|
||||
list.GridLines = GridLines.Horizontal;
|
||||
list.GridLinesVisible = GridLines.Horizontal;
|
||||
|
||||
list.Columns.Add (new ListViewColumn("Editable", new CheckBoxCellView { Editable = true, ActiveField = editableActiveField }));
|
||||
list.Columns.Add (new ListViewColumn("Not Editable", new CheckBoxCellView { Editable = false, ActiveField = nonEditableActiveField }));
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace Samples
|
|||
{
|
||||
TreeView view = new TreeView ();
|
||||
TreeStore store = new TreeStore (triState, check, text, desc);
|
||||
view.GridLines = GridLines.Both;
|
||||
view.GridLinesVisible = GridLines.Both;
|
||||
|
||||
var triStateCellView = new CheckBoxCellView (triState) { Editable = true, AllowMixed = true };
|
||||
triStateCellView.Toggled += (object sender, WidgetEventArgs e) => {
|
||||
|
|
|
@ -37,12 +37,12 @@ namespace Xwt.GtkBackend
|
|||
{
|
||||
}
|
||||
|
||||
public new bool GridLines {
|
||||
public new bool GridLinesVisible {
|
||||
get {
|
||||
return (base.GridLines == Xwt.GridLines.Horizontal || base.GridLines == Xwt.GridLines.Both);
|
||||
return (base.GridLinesVisible == Xwt.GridLines.Horizontal || base.GridLinesVisible == Xwt.GridLines.Both);
|
||||
}
|
||||
set {
|
||||
base.GridLines = value ? Xwt.GridLines.Horizontal : Xwt.GridLines.None;
|
||||
base.GridLinesVisible = value ? Xwt.GridLines.Horizontal : Xwt.GridLines.None;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ namespace Xwt.GtkBackend
|
|||
}
|
||||
}
|
||||
|
||||
public GridLines GridLines
|
||||
public GridLines GridLinesVisible
|
||||
{
|
||||
get { return Widget.EnableGridLines.ToXwtValue (); }
|
||||
set { Widget.EnableGridLines = value.ToGtkValue (); }
|
||||
|
|
|
@ -37,12 +37,12 @@ namespace Xwt.Mac
|
|||
{
|
||||
}
|
||||
|
||||
public new bool GridLines {
|
||||
public new bool GridLinesVisible {
|
||||
get {
|
||||
return (base.GridLines == Xwt.GridLines.Horizontal || base.GridLines == Xwt.GridLines.Both);
|
||||
return (base.GridLinesVisible == Xwt.GridLines.Horizontal || base.GridLinesVisible == Xwt.GridLines.Both);
|
||||
}
|
||||
set {
|
||||
base.GridLines = value ? Xwt.GridLines.Horizontal : Xwt.GridLines.None;
|
||||
base.GridLinesVisible = value ? Xwt.GridLines.Horizontal : Xwt.GridLines.None;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -252,7 +252,7 @@ namespace Xwt.Mac
|
|||
}
|
||||
}
|
||||
|
||||
public GridLines GridLines
|
||||
public GridLines GridLinesVisible
|
||||
{
|
||||
get { return Table.GridStyleMask.ToXwtValue (); }
|
||||
set { Table.GridStyleMask = value.ToMacValue (); }
|
||||
|
|
|
@ -52,13 +52,13 @@ namespace Xwt.WPFBackend
|
|||
}
|
||||
}
|
||||
|
||||
bool gridLines;
|
||||
public bool GridLines {
|
||||
bool gridLinesVisible;
|
||||
public bool GridLinesVisible {
|
||||
get {
|
||||
return gridLines;
|
||||
return gridLinesVisible;
|
||||
}
|
||||
set {
|
||||
gridLines = value;
|
||||
gridLinesVisible = value;
|
||||
if (!value) {
|
||||
if (this.ListBox.ItemContainerStyle != null) {
|
||||
this.ListBox.ItemContainerStyle.Setters.Remove (GridHorizontalSetter);
|
||||
|
|
|
@ -109,13 +109,13 @@ namespace Xwt.WPFBackend
|
|||
}
|
||||
}
|
||||
|
||||
GridLines gridLines;
|
||||
public GridLines GridLines {
|
||||
GridLines gridLinesVisible;
|
||||
public GridLines GridLinesVisible {
|
||||
get {
|
||||
return gridLines;
|
||||
return gridLinesVisible;
|
||||
}
|
||||
set {
|
||||
gridLines = value;
|
||||
gridLinesVisible = value;
|
||||
// we support only horizontal grid lines for now
|
||||
// vertical lines are tricky and have to be drawn manually...
|
||||
if (value == GridLines.None) {
|
||||
|
|
|
@ -113,14 +113,13 @@ namespace Xwt.WPFBackend
|
|||
}
|
||||
}
|
||||
|
||||
GridLines gridLines;
|
||||
|
||||
public GridLines GridLines {
|
||||
GridLines gridLinesVisible;
|
||||
public GridLines GridLinesVisible {
|
||||
get {
|
||||
return gridLines;
|
||||
return gridLinesVisible;
|
||||
}
|
||||
set {
|
||||
gridLines = value;
|
||||
gridLinesVisible = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace Xwt.Backends
|
|||
int[] SelectedRows { get; }
|
||||
void SelectRow (int pos);
|
||||
void UnselectRow (int pos);
|
||||
bool GridLines { get; set; }
|
||||
bool GridLinesVisible { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace Xwt.Backends
|
|||
void UnselectRow (int pos);
|
||||
|
||||
bool BorderVisible { get; set; }
|
||||
GridLines GridLines { get; set; }
|
||||
GridLines GridLinesVisible { get; set; }
|
||||
bool HeadersVisible { get; set; }
|
||||
|
||||
int GetRowAtPosition (Point p);
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace Xwt.Backends
|
|||
void ExpandToRow (TreePosition pos);
|
||||
|
||||
bool HeadersVisible { get; set; }
|
||||
GridLines GridLines { get; set; }
|
||||
GridLines GridLinesVisible { get; set; }
|
||||
|
||||
bool GetDropTargetRow (double x, double y, out RowDropPosition pos, out TreePosition nodePosition);
|
||||
|
||||
|
|
|
@ -144,10 +144,10 @@ namespace Xwt
|
|||
}
|
||||
}
|
||||
|
||||
public bool GridLines
|
||||
public bool GridLinesVisible
|
||||
{
|
||||
get { return Backend.GridLines; }
|
||||
set { Backend.GridLines = value; }
|
||||
get { return Backend.GridLinesVisible; }
|
||||
set { Backend.GridLinesVisible = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -95,10 +95,10 @@ namespace Xwt
|
|||
set { Backend.BorderVisible = value; }
|
||||
}
|
||||
|
||||
public GridLines GridLines
|
||||
public GridLines GridLinesVisible
|
||||
{
|
||||
get { return Backend.GridLines; }
|
||||
set { Backend.GridLines = value; }
|
||||
get { return Backend.GridLinesVisible; }
|
||||
set { Backend.GridLinesVisible = value; }
|
||||
}
|
||||
|
||||
public ScrollPolicy VerticalScrollPolicy {
|
||||
|
|
|
@ -187,10 +187,10 @@ namespace Xwt
|
|||
}
|
||||
}
|
||||
|
||||
public GridLines GridLines
|
||||
public GridLines GridLinesVisible
|
||||
{
|
||||
get { return Backend.GridLines; }
|
||||
set { Backend.GridLines = value; }
|
||||
get { return Backend.GridLinesVisible; }
|
||||
set { Backend.GridLinesVisible = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче