本文整理汇总了C#中Gtk.ScrolledWindow.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# ScrolledWindow.Hide方法的具体用法?C# ScrolledWindow.Hide怎么用?C# ScrolledWindow.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.ScrolledWindow
的用法示例。
在下文中一共展示了ScrolledWindow.Hide方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SearchResultWidget
//.........这里部分代码省略.........
store = new ListStore (typeof (SearchResult),
typeof (bool) // didRead
);
treeviewSearchResults = new PadTreeView () {
Model = store,
HeadersClickable = true,
RulesHint = true,
};
treeviewSearchResults.Selection.Mode = Gtk.SelectionMode.Multiple;
resultsScroll.Add (treeviewSearchResults);
var projectColumn = new TreeViewColumn {
Resizable = true,
SortColumnId = 1,
Title = GettextCatalog.GetString ("Project"),
Sizing = TreeViewColumnSizing.Fixed,
FixedWidth = 100
};
var projectPixbufRenderer = new CellRendererImage ();
projectColumn.PackStart (projectPixbufRenderer, false);
projectColumn.SetCellDataFunc (projectPixbufRenderer, ResultProjectIconDataFunc);
var renderer = treeviewSearchResults.TextRenderer;
renderer.Ellipsize = Pango.EllipsizeMode.End;
projectColumn.PackStart (renderer, true);
projectColumn.SetCellDataFunc (renderer, ResultProjectDataFunc);
treeviewSearchResults.AppendColumn (projectColumn);
var fileNameColumn = new TreeViewColumn {
Resizable = true,
SortColumnId = 2,
Title = GettextCatalog.GetString ("File"),
Sizing = TreeViewColumnSizing.Fixed,
FixedWidth = 200
};
var fileNamePixbufRenderer = new CellRendererImage ();
fileNameColumn.PackStart (fileNamePixbufRenderer, false);
fileNameColumn.SetCellDataFunc (fileNamePixbufRenderer, FileIconDataFunc);
fileNameColumn.PackStart (renderer, true);
fileNameColumn.SetCellDataFunc (renderer, FileNameDataFunc);
treeviewSearchResults.AppendColumn (fileNameColumn);
TreeViewColumn textColumn = treeviewSearchResults.AppendColumn (GettextCatalog.GetString ("Text"),
renderer, ResultTextDataFunc);
textColumn.Resizable = true;
textColumn.Sizing = TreeViewColumnSizing.Fixed;
textColumn.FixedWidth = 300;
pathColumn = treeviewSearchResults.AppendColumn (GettextCatalog.GetString ("Path"),
renderer, ResultPathDataFunc);
pathColumn.SortColumnId = 3;
pathColumn.Resizable = true;
pathColumn.Sizing = TreeViewColumnSizing.Fixed;
pathColumn.FixedWidth = 500;
store.DefaultSortFunc = DefaultSortFunc;
store.SetSortFunc (1, CompareProjectFileNames);
store.SetSortFunc (2, CompareFileNames);
store.SetSortFunc (3, CompareFilePaths);
treeviewSearchResults.RowActivated += TreeviewSearchResultsRowActivated;
buttonStop = new ToolButton (new ImageView (Gui.Stock.Stop, Gtk.IconSize.Menu), null) { Sensitive = false };
buttonStop.Clicked += ButtonStopClicked;
buttonStop.TooltipText = GettextCatalog.GetString ("Stop");
toolbar.Insert (buttonStop, -1);
var buttonClear = new ToolButton (new ImageView (Gui.Stock.Clear, Gtk.IconSize.Menu), null);
buttonClear.Clicked += ButtonClearClicked;
buttonClear.TooltipText = GettextCatalog.GetString ("Clear results");
toolbar.Insert (buttonClear, -1);
var buttonOutput = new ToggleToolButton ();
buttonOutput.IconWidget = new ImageView (Gui.Stock.OutputIcon, Gtk.IconSize.Menu);
buttonOutput.Clicked += ButtonOutputClicked;
buttonOutput.TooltipText = GettextCatalog.GetString ("Show output");
toolbar.Insert (buttonOutput, -1);
buttonPin = new ToggleToolButton ();
buttonPin.IconWidget = new ImageView (Gui.Stock.PinUp, Gtk.IconSize.Menu);
buttonPin.Clicked += ButtonPinClicked;
buttonPin.TooltipText = GettextCatalog.GetString ("Pin results pad");
toolbar.Insert (buttonPin, -1);
// store.SetSortColumnId (3, SortType.Ascending);
ShowAll ();
scrolledwindowLogView.Hide ();
treeviewSearchResults.FixedHeightMode = true;
UpdateStyles ();
IdeApp.Preferences.ColorScheme.Changed += UpdateStyles;
}
示例2: SearchResultWidget
//.........这里部分代码省略.........
this.PackStart (vbox, true, true, 0);
this.PackStart (toolbar, false, false, 0);
labelStatus = new Label () {
Xalign = 0,
Justify = Justification.Left,
};
var hpaned = new HPaned ();
vbox.PackStart (hpaned, true, true, 0);
vbox.PackStart (labelStatus, false, false, 0);
var resultsScroll = new CompactScrolledWindow ();
hpaned.Pack1 (resultsScroll, true, true);
scrolledwindowLogView = new CompactScrolledWindow ();
hpaned.Pack2 (scrolledwindowLogView, true, true);
textviewLog = new TextView () {
Editable = false,
};
scrolledwindowLogView.Add (textviewLog);
store = new ListStore (typeof (SearchResult),
typeof (bool) // didRead
);
treeviewSearchResults = new PadTreeView () {
Model = store,
HeadersClickable = true,
RulesHint = true,
};
treeviewSearchResults.Selection.Mode = Gtk.SelectionMode.Multiple;
resultsScroll.Add (treeviewSearchResults);
this.ShowAll ();
var fileNameColumn = new TreeViewColumn {
Resizable = true,
SortColumnId = 0,
Title = GettextCatalog.GetString("File")
};
fileNameColumn.FixedWidth = 200;
var fileNamePixbufRenderer = new CellRendererPixbuf ();
fileNameColumn.PackStart (fileNamePixbufRenderer, false);
fileNameColumn.SetCellDataFunc (fileNamePixbufRenderer, FileIconDataFunc);
fileNameColumn.PackStart (treeviewSearchResults.TextRenderer, true);
fileNameColumn.SetCellDataFunc (treeviewSearchResults.TextRenderer, FileNameDataFunc);
treeviewSearchResults.AppendColumn (fileNameColumn);
// TreeViewColumn lineColumn = treeviewSearchResults.AppendColumn (GettextCatalog.GetString ("Line"), new CellRendererText (), ResultLineDataFunc);
// lineColumn.SortColumnId = 1;
// lineColumn.FixedWidth = 50;
//
TreeViewColumn textColumn = treeviewSearchResults.AppendColumn (GettextCatalog.GetString ("Text"),
treeviewSearchResults.TextRenderer, ResultTextDataFunc);
textColumn.SortColumnId = 2;
textColumn.Resizable = true;
textColumn.FixedWidth = 300;
TreeViewColumn pathColumn = treeviewSearchResults.AppendColumn (GettextCatalog.GetString ("Path"),
treeviewSearchResults.TextRenderer, ResultPathDataFunc);
pathColumn.SortColumnId = 3;
pathColumn.Resizable = true;
pathColumn.FixedWidth = 500;
store.SetSortFunc (0, CompareFileNames);
// store.SetSortFunc (1, CompareLineNumbers);
store.SetSortFunc (3, CompareFilePaths);
treeviewSearchResults.RowActivated += TreeviewSearchResultsRowActivated;
buttonStop = new ToolButton (Stock.Stop) { Sensitive = false };
buttonStop.Clicked += ButtonStopClicked;
buttonStop.TooltipText = GettextCatalog.GetString ("Stop");
toolbar.Insert (buttonStop, -1);
var buttonClear = new ToolButton (Gtk.Stock.Clear);
buttonClear.Clicked += ButtonClearClicked;
buttonClear.TooltipText = GettextCatalog.GetString ("Clear results");
toolbar.Insert (buttonClear, -1);
var buttonOutput = new ToggleToolButton (Gui.Stock.OutputIcon);
buttonOutput.Clicked += ButtonOutputClicked;
buttonOutput.TooltipText = GettextCatalog.GetString ("Show output");
toolbar.Insert (buttonOutput, -1);
buttonPin = new ToggleToolButton (Gui.Stock.PinUp);
buttonPin.Clicked += ButtonPinClicked;
buttonPin.TooltipText = GettextCatalog.GetString ("Pin results pad");
toolbar.Insert (buttonPin, -1);
store.SetSortColumnId (3, SortType.Ascending);
ShowAll ();
scrolledwindowLogView.Hide ();
}
示例3: SearchResultPad
public SearchResultPad()
{
// Toolbar
Toolbar toolbar = new Toolbar ();
toolbar.IconSize = IconSize.SmallToolbar;
toolbar.Orientation = Orientation.Vertical;
toolbar.ToolbarStyle = ToolbarStyle.Icons;
buttonStop = new ToolButton ("gtk-stop");
buttonStop.Clicked += new EventHandler (OnButtonStopClick);
buttonStop.SetTooltip (tips, "Stop", "Stop");
toolbar.Insert (buttonStop, -1);
ToolButton buttonClear = new ToolButton ("gtk-clear");
buttonClear.Clicked += new EventHandler (OnButtonClearClick);
buttonClear.SetTooltip (tips, "Clear results", "Clear results");
toolbar.Insert (buttonClear, -1);
buttonOutput = new ToggleToolButton (MonoDevelop.Gui.Stock.OutputIcon);
buttonOutput.Clicked += new EventHandler (OnButtonOutputClick);
buttonOutput.SetTooltip (tips, "Show output", "Show output");
toolbar.Insert (buttonOutput, -1);
// Results list
store = new Gtk.ListStore (
typeof (Gdk.Pixbuf), // image
typeof (int), // line
typeof (int), // column
typeof (string), // desc
typeof (string), // file
typeof (string), // path
typeof (string), // full path
typeof (bool), // read?
typeof (int), // read? -- use Pango weight
typeof (bool)); // is file
view = new Gtk.TreeView (store);
view.RulesHint = true;
AddColumns ();
sw = new Gtk.ScrolledWindow ();
sw.ShadowType = ShadowType.In;
sw.Add (view);
// Log view
logBuffer = new Gtk.TextBuffer (new Gtk.TextTagTable ());
logTextView = new Gtk.TextView (logBuffer);
logTextView.Editable = false;
logScroller = new Gtk.ScrolledWindow ();
logScroller.ShadowType = ShadowType.In;
logScroller.Add (logTextView);
// HPaned
Gtk.HPaned paned = new Gtk.HPaned ();
paned.Pack1 (sw, true, true);
paned.Pack2 (logScroller, true, true);
// HBox
status = new Label ();
status.Xalign = 0.0f;
VBox vbox = new VBox ();
vbox.PackStart (paned, true, true, 0);
vbox.PackStart (status, false, false, 3);
HBox hbox = new HBox ();
hbox.PackStart (vbox, true, true, 0);
hbox.PackStart (toolbar, false, false, 0);
control = hbox;
Control.ShowAll ();
logScroller.Hide ();
view.RowActivated += new RowActivatedHandler (OnRowActivated);
}
示例4: ForumView
//.........这里部分代码省略.........
textviewbtn.Active = true;
textviewbtn.Toggled += textviewbtn_Toggled;
SeparatorToolItem sepSpacer = new SeparatorToolItem ();
sepSpacer.Expand = true;
sepSpacer.Draw = false;
sepFullsize = new SeparatorToolItem ();
imageSortAscending = new ToggleToolButton (Stock.SortAscending);
imageSortAscending.TooltipText = "Show earliest images first";
imageSortAscending.Active = true;
imageSortAscending.Toggled += imageSortAscending_Toggled;
imageSortDescending = new ToggleToolButton (Stock.SortDescending);
imageSortDescending.TooltipText = "Show latest images first";
imageSortDescending.Toggled += imageSortDescending_Toggled;
imageLoadingProgress = new ProgressBar ();
ToolItem progressItem = new ToolItem ();
progressItem.Expand = false;
progressItem.Add (imageLoadingProgress);
imageLoadingProgress.Fraction = 0;
toolbar.Add (imageSortAscending);
toolbar.Add (imageSortDescending);
toolbar.Add (progressItem);
toolbar.Add (firstbtn);
toolbar.Add (prevbtn);
toolbar.Add (textItem);
toolbar.Add (nextbtn);
toolbar.Add (lastbtn);
toolbar.Add (sepFullsize);
toolbar.Add (savebtn);
toolbar.Add (rotatebtn);
toolbar.Add (sepSpacer);
toolbar.Add (imageviewbtn);
toolbar.Add (textviewbtn);
toolbar.Add (closebtn);
toolbar.Add (upbtn);
toolbar.Add (downbtn);
threadwindow = new ScrolledWindow ();
threadbrowser = new WebView ();
threadbrowser.Editable = false;
threadbrowser.NavigationRequested += threadbrowser_NavigationRequested;
threadwindow.Add (threadbrowser);
iconStore = new ListStore (typeof(string), typeof(Gdk.Pixbuf), typeof(string), typeof(string), typeof(int), typeof(int));
iconview = new IconView (iconStore);
iconview.Margin = 1;
iconview.Spacing = 1;
iconview.BorderWidth = 0;
iconview.ColumnSpacing = 1;
iconview.RowSpacing = 1;
iconview.PixbufColumn = 1;
iconview.TooltipColumn = 2;
iconview.SelectionMode = SelectionMode.Multiple;
iconview.ItemActivated += iconview_ItemActivated;
iconview.ButtonPressEvent += iconView_ButtonPress;
iconview.Model = iconStore;
iconview.ModifyBase (StateType.Normal, new Gdk.Color (0x66, 0x66, 0x66));
iconwindow = new ScrolledWindow ();
iconwindow.ShadowType = ShadowType.EtchedIn;
iconwindow.SetPolicy (PolicyType.Automatic, PolicyType.Automatic);
iconwindow.Add (iconview);
imagewindow = new EventBox ();
fullSizeImage = new Image ();
// JICE TEST
fullsizeLayout = new Layout (null, null);
fullsizeLayout.Add (fullSizeImage);
fullsizeLayout.SizeRequested += fullsizeLayout_SizeRequested;
imagewindow.ModifyBase (StateType.Normal, new Gdk.Color (0x66, 0x66, 0x66));
imagewindow.Add (fullsizeLayout);
imagewindow.CanFocus = true;
imagewindow.KeyPressEvent += imagewindow_keyPressEvent;
imagewindow.SizeRequested += imagewindow_sizeAllocated;
// imagewindow.Add(fullSizeImage);
contentBox.PackStart (toolbar, false, false, 0);
contentBox.PackStart (iconwindow);
contentBox.PackStart (imagewindow);
contentBox.PackStart (threadwindow);
this.Add2 (contentBox);
this.ShowAll ();
imageSortAscending.Hide ();
imageSortDescending.Hide ();
iconwindow.Hide ();
imagewindow.Hide ();
closebtn.Hide ();
rotatebtn.Hide ();
savebtn.Hide ();
sepFullsize.Hide ();
downbtn.Hide ();
imageLoadingProgress.Hide ();
String favouriteThreads = UserSettings.getValue ("Site" + site.forumName + ".Forum" + forum + ".Favourites");
favThreads = favouriteThreads.Split (';');
treestoreTopics = new TreeStore (typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(Gdk.Pixbuf));
topicsLoaded = 0;
loadTopics ();
treeviewTopics.Model = treestoreTopics;
}