C# Class UtilGtk, chronojump

显示文件 Open project: GNOME/chronojump Class Usage Examples

Public Properties

Property Type Description
BLACK Gdk.Color
BLUE Gdk.Color
BLUE_CHRONOJUMP Gdk.Color
BLUE_CLEAR Gdk.Color
BLUE_DARK Gdk.Color
BLUE_LIGHT Gdk.Color
BLUE_PLOTS Gdk.Color
ColorBad string
ColorGood string
ColorNothing string
GRAY Gdk.Color
GREEN_DARK Gdk.Color
GREEN_LIGHT Gdk.Color
GREEN_PLOTS Gdk.Color
LIGHT_BLUE_PLOTS Gdk.Color
RED_DARK Gdk.Color
RED_LIGHT Gdk.Color
RED_PLOTS Gdk.Color
SELECTED Gdk.Color
WHITE Gdk.Color
YELLOW Gdk.Color

Public Methods

Method Description
ChronopicColors ( Gtk v, Gtk l1, Gtk l2, bool connected ) : void
ClearDrawingArea ( Gtk da, Gdk px ) : void
ColorsCheckOnlyPrelight ( Gtk c ) : void
ColorsCheckbox ( Gtk v, Gtk c ) : void
ColorsMenuLabel ( Gtk v, Gtk l ) : void
ColorsRadio ( Gtk v, Gtk r ) : void
ColorsTestLabel ( Gtk v, Gtk l ) : void
ColorsTreeView ( Gtk v, Gtk tv ) : void
ComboAdd ( ComboBox myCombo, string str ) : void
ComboDelThisValue ( ComboBox myCombo, string toRemove ) : void
ComboGetActive ( ComboBox myCombo ) : string
ComboGetActivePos ( ComboBox myCombo ) : int
ComboMakeActive ( ComboBox myCombo, string searched ) : int
ComboMakeActive ( string allValues, string searched ) : int
ComboPackShowAndSensitive ( Gtk box, Gtk combo ) : void
ComboShowAll ( ComboBox myCombo ) : void
ComboUpdate ( ComboBox myCombo, string myData, string strDefault ) : int
ComboUpdate ( ComboBox myCombo, ArrayList, array ) : void
ComboUpdate ( ComboBox myCombo, List list ) : void
ComboUpdate ( ComboBox myCombo, List list ) : void
ComboUpdate ( ComboBox myCombo, string myData ) : void
CountRows ( Gtk ls ) : int
CreateCols ( Gtk tv, Gtk store, string name, int verticalPos, bool visible ) : void
ErasePaint ( Gtk da, Gdk px ) : void
GetBackgroundColorSelected ( ) : Gdk.Color
GetCol ( Gtk tv, int colWanted ) : string
GetCols ( Gtk tv, int first ) : string[]
GetSelectedRowUniqueID ( Gtk tv, Gtk store, int uniqueIDcol ) : int
IconWindow ( Gtk myWindow ) : void
IconWindowGraph ( Gtk myWindow ) : void
IdColumnCompare ( TreeModel model, Gtk.TreeIter iter1, Gtk.TreeIter iter2 ) : int
OpenImageSafe ( string filename, Gtk image ) : Gtk.Image
OpenPixbufSafe ( string filename, Gdk pixbuf ) : Gdk.Pixbuf
PrintLabelWithTooltip ( Gtk l, string s ) : void
RemoveColumns ( Gtk tv ) : Gtk.TreeView
RemoveRow ( Gtk tv, Gtk store ) : TreeStore
ResizeIfNeeded ( Gtk win ) : void
ScreenHeightFitted ( bool fit ) : int
TVNumPrint ( string num, int start, int dec ) : string
TextViewPrint ( string message ) : TextBuffer
TreeviewAddRow ( Gtk tv, TreeStore store, string row, bool startOrEnd ) : void
TreeviewScrollToLastRow ( Gtk tv, Gtk store, int nrows ) : void
TreeviewSelectRowWithID ( Gtk tv, Gtk store, int colNum, int id, bool scrollToRow ) : bool
WidgetHeight ( Gtk w ) : int
WidgetWidth ( Gtk w ) : int

Private Methods

Method Description
ScreenHeight ( ) : int
comboDelAll ( ComboBox myCombo ) : void
getRowNumOfThisID ( Gtk store, int colNum, int searchedID ) : int
imageFileWaitUntilCreated ( string filename ) : void

Method Details

ChronopicColors() public static method

public static ChronopicColors ( Gtk v, Gtk l1, Gtk l2, bool connected ) : void
v Gtk
l1 Gtk
l2 Gtk
connected bool
return void

ClearDrawingArea() public static method

public static ClearDrawingArea ( Gtk da, Gdk px ) : void
da Gtk
px Gdk
return void

ColorsCheckOnlyPrelight() public static method

public static ColorsCheckOnlyPrelight ( Gtk c ) : void
c Gtk
return void

ColorsCheckbox() public static method

public static ColorsCheckbox ( Gtk v, Gtk c ) : void
v Gtk
c Gtk
return void

ColorsMenuLabel() public static method

public static ColorsMenuLabel ( Gtk v, Gtk l ) : void
v Gtk
l Gtk
return void

ColorsRadio() public static method

public static ColorsRadio ( Gtk v, Gtk r ) : void
v Gtk
r Gtk
return void

ColorsTestLabel() public static method

public static ColorsTestLabel ( Gtk v, Gtk l ) : void
v Gtk
l Gtk
return void

ColorsTreeView() public static method

public static ColorsTreeView ( Gtk v, Gtk tv ) : void
v Gtk
tv Gtk
return void

ComboAdd() public static method

public static ComboAdd ( ComboBox myCombo, string str ) : void
myCombo ComboBox
str string
return void

ComboDelThisValue() public static method

public static ComboDelThisValue ( ComboBox myCombo, string toRemove ) : void
myCombo ComboBox
toRemove string
return void

ComboGetActive() public static method

public static ComboGetActive ( ComboBox myCombo ) : string
myCombo ComboBox
return string

ComboGetActivePos() public static method

public static ComboGetActivePos ( ComboBox myCombo ) : int
myCombo ComboBox
return int

ComboMakeActive() public static method

public static ComboMakeActive ( ComboBox myCombo, string searched ) : int
myCombo ComboBox
searched string
return int

ComboMakeActive() public static method

public static ComboMakeActive ( string allValues, string searched ) : int
allValues string
searched string
return int

ComboPackShowAndSensitive() public static method

public static ComboPackShowAndSensitive ( Gtk box, Gtk combo ) : void
box Gtk
combo Gtk
return void

ComboShowAll() public static method

public static ComboShowAll ( ComboBox myCombo ) : void
myCombo ComboBox
return void

ComboUpdate() public static method

public static ComboUpdate ( ComboBox myCombo, string myData, string strDefault ) : int
myCombo ComboBox
myData string
strDefault string
return int

ComboUpdate() public static method

public static ComboUpdate ( ComboBox myCombo, ArrayList, array ) : void
myCombo ComboBox
array ArrayList,
return void

ComboUpdate() public static method

public static ComboUpdate ( ComboBox myCombo, List list ) : void
myCombo ComboBox
list List
return void

ComboUpdate() public static method

public static ComboUpdate ( ComboBox myCombo, List list ) : void
myCombo ComboBox
list List
return void

ComboUpdate() public static method

public static ComboUpdate ( ComboBox myCombo, string myData ) : void
myCombo ComboBox
myData string
return void

CountRows() public static method

public static CountRows ( Gtk ls ) : int
ls Gtk
return int

CreateCols() public static method

public static CreateCols ( Gtk tv, Gtk store, string name, int verticalPos, bool visible ) : void
tv Gtk
store Gtk
name string
verticalPos int
visible bool
return void

ErasePaint() public static method

public static ErasePaint ( Gtk da, Gdk px ) : void
da Gtk
px Gdk
return void

GetBackgroundColorSelected() public static method

public static GetBackgroundColorSelected ( ) : Gdk.Color
return Gdk.Color

GetCol() public static method

public static GetCol ( Gtk tv, int colWanted ) : string
tv Gtk
colWanted int
return string

GetCols() public static method

public static GetCols ( Gtk tv, int first ) : string[]
tv Gtk
first int
return string[]

GetSelectedRowUniqueID() public static method

public static GetSelectedRowUniqueID ( Gtk tv, Gtk store, int uniqueIDcol ) : int
tv Gtk
store Gtk
uniqueIDcol int
return int

IconWindow() public static method

public static IconWindow ( Gtk myWindow ) : void
myWindow Gtk
return void

IconWindowGraph() public static method

public static IconWindowGraph ( Gtk myWindow ) : void
myWindow Gtk
return void

IdColumnCompare() public static method

public static IdColumnCompare ( TreeModel model, Gtk.TreeIter iter1, Gtk.TreeIter iter2 ) : int
model TreeModel
iter1 Gtk.TreeIter
iter2 Gtk.TreeIter
return int

OpenImageSafe() public static method

public static OpenImageSafe ( string filename, Gtk image ) : Gtk.Image
filename string
image Gtk
return Gtk.Image

OpenPixbufSafe() public static method

public static OpenPixbufSafe ( string filename, Gdk pixbuf ) : Gdk.Pixbuf
filename string
pixbuf Gdk
return Gdk.Pixbuf

PrintLabelWithTooltip() public static method

public static PrintLabelWithTooltip ( Gtk l, string s ) : void
l Gtk
s string
return void

RemoveColumns() public static method

public static RemoveColumns ( Gtk tv ) : Gtk.TreeView
tv Gtk
return Gtk.TreeView

RemoveRow() public static method

public static RemoveRow ( Gtk tv, Gtk store ) : TreeStore
tv Gtk
store Gtk
return Gtk.TreeStore

ResizeIfNeeded() public static method

public static ResizeIfNeeded ( Gtk win ) : void
win Gtk
return void

ScreenHeightFitted() public static method

public static ScreenHeightFitted ( bool fit ) : int
fit bool
return int

TVNumPrint() public static method

public static TVNumPrint ( string num, int start, int dec ) : string
num string
start int
dec int
return string

TextViewPrint() public static method

public static TextViewPrint ( string message ) : TextBuffer
message string
return TextBuffer

TreeviewAddRow() public static method

public static TreeviewAddRow ( Gtk tv, TreeStore store, string row, bool startOrEnd ) : void
tv Gtk
store TreeStore
row string
startOrEnd bool
return void

TreeviewScrollToLastRow() public static method

public static TreeviewScrollToLastRow ( Gtk tv, Gtk store, int nrows ) : void
tv Gtk
store Gtk
nrows int
return void

TreeviewSelectRowWithID() public static method

public static TreeviewSelectRowWithID ( Gtk tv, Gtk store, int colNum, int id, bool scrollToRow ) : bool
tv Gtk
store Gtk
colNum int
id int
scrollToRow bool
return bool

WidgetHeight() public static method

public static WidgetHeight ( Gtk w ) : int
w Gtk
return int

WidgetWidth() public static method

public static WidgetWidth ( Gtk w ) : int
w Gtk
return int

Property Details

BLACK public_oe static_oe property

public static Color,Gdk BLACK
return Gdk.Color

BLUE public_oe static_oe property

public static Color,Gdk BLUE
return Gdk.Color

BLUE_CHRONOJUMP public_oe static_oe property

public static Color,Gdk BLUE_CHRONOJUMP
return Gdk.Color

BLUE_CLEAR public_oe static_oe property

public static Color,Gdk BLUE_CLEAR
return Gdk.Color

BLUE_DARK public_oe static_oe property

public static Color,Gdk BLUE_DARK
return Gdk.Color

BLUE_LIGHT public_oe static_oe property

public static Color,Gdk BLUE_LIGHT
return Gdk.Color

BLUE_PLOTS public_oe static_oe property

public static Color,Gdk BLUE_PLOTS
return Gdk.Color

ColorBad public_oe static_oe property

public static string ColorBad
return string

ColorGood public_oe static_oe property

public static string ColorGood
return string

ColorNothing public_oe static_oe property

public static string ColorNothing
return string

GRAY public_oe static_oe property

public static Color,Gdk GRAY
return Gdk.Color

GREEN_DARK public_oe static_oe property

public static Color,Gdk GREEN_DARK
return Gdk.Color

GREEN_LIGHT public_oe static_oe property

public static Color,Gdk GREEN_LIGHT
return Gdk.Color

GREEN_PLOTS public_oe static_oe property

public static Color,Gdk GREEN_PLOTS
return Gdk.Color

LIGHT_BLUE_PLOTS public_oe static_oe property

public static Color,Gdk LIGHT_BLUE_PLOTS
return Gdk.Color

RED_DARK public_oe static_oe property

public static Color,Gdk RED_DARK
return Gdk.Color

RED_LIGHT public_oe static_oe property

public static Color,Gdk RED_LIGHT
return Gdk.Color

RED_PLOTS public_oe static_oe property

public static Color,Gdk RED_PLOTS
return Gdk.Color

SELECTED public_oe static_oe property

public static Color,Gdk SELECTED
return Gdk.Color

WHITE public_oe static_oe property

public static Color,Gdk WHITE
return Gdk.Color

YELLOW public_oe static_oe property

public static Color,Gdk YELLOW
return Gdk.Color