public LogViewerWidget()
 {
     this.Build ();
     m_logPane = new HTMLWidget ();
     logAlign.Add(m_logPane);
     m_mon = UIMonitor.getInstance ();
 }
 public OffLineLogViewer(UIMonitor mon)
 {
     this.Build ();
     BuildLogTreeWidget();
     m_monitor = mon;
     m_caches = new Dictionary<string, Geocache>();
     fnFieldNotesLabel.Text = String.Format(Catalog.GetString("File Location: {0}"), m_monitor.Configuration.FieldNotesFile);
     this.ShowAll();
 }
Пример #3
0
 public BrowserWidget()
 {
     this.Build();
     m_view.NavigationRequested += HandleM_browserNavigationRequested;
     m_view.LoadStarted += HandleM_browserLoadStarted;
     m_view.LoadProgressChanged += HandleM_browserLoadProgressChanged;
     m_view.LoadFinished += HandleM_browserLoadFinished;
     browserAlign.Add(m_view);
     m_monitor = UIMonitor.getInstance();
 }
Пример #4
0
 /// <summary>
 /// 清理所有正在使用的资源。
 /// </summary>
 /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         UIMonitor.Dispose();
     }
     catch { }
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #5
0
	public MainWindow () : base(Gtk.WindowType.Toplevel)
	{	
		Build ();
		BuildBookMarkMenu();
		m_monitor = UIMonitor.getInstance ();
		m_monitor.Main = this;
		m_monitor.StatusProgress = statProgBar;
		m_monitor.GeoPane = cachePane;
		m_monitor.StatusBar = statusbar1;
		m_monitor.CacheListPane = cacheList;
		m_monitor.CentreLabel = coordLabel;
		m_monitor.Map = mapPane;
		this.ShowAll();
	}
Пример #6
0
 public CacheList()
 {
     this.Build ();
     comboBox.Remove(infoComboBox);
     advancedBox.Remove(infoHbox);
     treeview1 = new OCMTreeView();
     treeview1.ButtonPressEvent += DoButtonPress;
     cachescroll.Add(treeview1);
     BuildList ();
     m_monitor = UIMonitor.getInstance ();
     m_monitor.CacheListPane = this;
     refreshTimer = new Timer ();
     refreshTimer.AutoReset = false;
     refreshTimer.Elapsed += HandleRefreshTimerElapsed;
 }
Пример #7
0
 public WaypointWidget()
 {
     this.Build ();
     BuildWPTList ();
     m_mon = UIMonitor.getInstance ();
 }
Пример #8
0
 /// <summary>
 /// Gets the icon name for the corresponding cache type
 /// </summary>
 /// <param name="type">
 /// A geocache type <see cref="Geocache.CacheType"/>
 /// </param>
 /// <returns>
 /// Icon file name <see cref="System.String"/>
 /// </returns>
 public static string GetMapIcon(Geocache cache, String ownerId, UIMonitor mon)
 {
     if (cache.Found)
     {
         if (cache.FTF)
             return FTF_MI;
         return FOUND_MI;
     }
     if ((cache.OwnerID == ownerId) ||(cache.CacheOwner == ownerId))
         return OWNED_MI;
     if ((cache.HasCorrected || cache.HasFinal))
     {
         if (mon.Configuration.SolvedModeState == SolvedMode.ALL)
             return CORRECTED_MI;
         else if (mon.Configuration.SolvedModeState == SolvedMode.PUZZLES &&
                  cache.TypeOfCache == Geocache.CacheType.MYSTERY)
             return CORRECTED_MI;
     }
     else if (cache.DNF && mon.Configuration.ShowDNFIcon)
     {
         return DNF_MI;
     }
     switch (cache.TypeOfCache) {
         case Geocache.CacheType.TRADITIONAL:
             return TRAD_MI;
         case Geocache.CacheType.MYSTERY:
             return UNKNOWN_MI;
         case Geocache.CacheType.MULTI:
             return MULTI_MI;
         case Geocache.CacheType.LETTERBOX:
             return LETTRBOX_MI;
         case Geocache.CacheType.EARTH:
             return EARH_MI;
         case Geocache.CacheType.CITO:
             return CITO_MI;
         case Geocache.CacheType.VIRTUAL:
             return VIRTUAL_MI;
         case Geocache.CacheType.MEGAEVENT:
             return MEGA_MI;
         case Geocache.CacheType.EVENT:
             return EVENT_MI;
         case Geocache.CacheType.WEBCAM:
             return WEBCAM_MI;
         case Geocache.CacheType.WHERIGO:
             return WHERIGO_MI;
         case Geocache.CacheType.GENERIC:
             return GENERIC_MI;
         default:
             return OTHER_MI;
     }
 }
Пример #9
0
 public ImagesWidget()
 {
     this.Build ();
     m_monitor = UIMonitor.getInstance();
 }
 public GeocacheInfoPanel()
 {
     this.Build ();
     m_monitor = UIMonitor.getInstance ();
     updateCacheInfo();
 }