public object GetBookmarkImage(object host) { Host h = (Host)host; return(IconCache.GetProtocolDisk(h.getProtocol(), PreferencesFactory.get().getInteger("bookmark.icon.size"))); }
public virtual object GetCreateImage(TransferItem item) { if (!GetStatus(item).isExists()) { return(IconCache.IconForName("plus")); } return(null); }
public object GetIcon(Path path) { if (path.isVolume()) { return(IconCache.GetProtocolDisk(_controller.Session.getHost().getProtocol(), IconCache.IconSize.Small)); } return(IconCache.IconForPath(path, IconCache.IconSize.Small)); }
public override void cleanup() { if (null != _favicon) { _controller.View.Favicon = _favicon; } else { _controller.View.Favicon = IconCache.IconForName("site", 16); } }
private BookmarkController(T view, Host host, LoginInputValidator validator, LoginOptions options) : base(validator) { _host = host; _validator = validator; _options = options; View = view; _ticklerReachability = new Timer(OnRechability, null, Timeout.Infinite, Timeout.Infinite); _ticklerFavicon = new Timer(OnFavicon, null, Timeout.Infinite, Timeout.Infinite); View.ToggleOptions += View_ToggleOptions; View.OptionsVisible = PreferencesFactory.get().getBoolean(ToggleProperty); //set default favicon View.Favicon = IconCache.IconForName("site", 16); InitProtocols(); InitPrivateKeys(); InitConnectModes(); InitEncodings(); InitTimezones(); InitTransferModes(); Update(); View.ChangedProtocolEvent += View_ChangedProtocolEvent; View.ChangedProtocolEvent += ReadPasswordFromKeychain; View.ChangedPortEvent += View_ChangedPortEvent; View.ChangedUsernameEvent += View_ChangedUsernameEvent; View.ChangedUsernameEvent += ReadPasswordFromKeychain; View.ChangedServerEvent += View_ChangedServerEvent; View.ChangedServerEvent += ReadPasswordFromKeychain; View.ChangedEncodingEvent += View_ChangedEncodingEvent; View.ChangedPathEvent += View_ChangedPathEvent; View.ChangedTimezoneEvent += View_ChangedTimezoneEvent; View.ChangedConnectModeEvent += View_ChangedConnectModeEvent; View.ChangedTransferEvent += View_ChangedTransferEvent; View.ChangedAnonymousCheckboxEvent += View_ChangedAnonymousCheckboxEvent; View.ChangedPrivateKeyEvent += View_ChangedPrivateKeyEvent; View.OpenPrivateKeyBrowserEvent += View_OpenPrivateKeyBrowserEvent; View.ChangedClientCertificateEvent += View_ChangedClientCertificateEvent; View.ChangedNicknameEvent += View_ChangedNicknameEvent; View.ChangedWebURLEvent += View_ChangedWebURLEvent; View.ChangedCommentEvent += View_ChangedCommentEvent; View.ChangedBrowserDownloadPathEvent += View_ChangedBrowserDownloadPathEvent; View.OpenDownloadFolderBrowserEvent += View_OpenDownloadFolderBrowserEvent; View.OpenDownloadFolderEvent += View_OpenDownloadFolderEvent; View.OpenUrl += View_OpenUrl; View.OpenWebUrl += View_OpenWebUrl; }
public override object GetSyncGetter(TransferItem item) { Comparison compare = ((SyncTransfer)Transfer).compare(item); if (compare.equals(Comparison.remote)) { return(IconCache.IconForName("transfer-download", 16)); } if (compare.equals(Comparison.local)) { return(IconCache.IconForName("transfer-upload", 16)); } return(null); }
protected override Image GetImage(object imageSelector) { Image img = base.GetImage(imageSelector); if (null != img) { return(img); } if (imageSelector is string) { return (IconCache.IconForName((string)imageSelector, 0)); } return(null); }
public object GetBookmarkStatusImage(object rowobject) { SessionPool session = _controller.Session; if (((Host)rowobject).Equals(session.getHost())) { if (session.getState().Equals(Session.State.open)) { return(IconCache.IconForName("statusGreen", 16)); } if (session.getState().Equals(Session.State.closing) || session.getState().Equals(Session.State.opening)) { return(IconCache.IconForName("statusYellow", 16)); } } return(null); }
public object GetIcon(TransferItem item) { return(IconCache.IconForPath(item.remote, IconCache.IconSize.Small)); }