예제 #1
0
        protected virtual void OnAddClick(object sender, System.EventArgs e)
        {
            FilterDialog dlg = new FilterDialog();

            dlg.Filter = new FilterList();
            dlg.Title  = Catalog.GetString("Add Condition...");
            if ((int)ResponseType.Ok == dlg.Run())
            {
                m_Store.AppendValues(dlg.Filter);
                this.QueueDraw();
            }
            dlg.Hide();
            dlg.Dispose();
        }
예제 #2
0
 protected virtual void OnEditClicked(object sender, System.EventArgs e)
 {
     Gtk.TreeIter  itr;
     Gtk.TreeModel model;
     if (conditionList.Selection.GetSelected(out model, out itr))
     {
         FilterList   condition = (FilterList)model.GetValue(itr, 0);
         FilterDialog dlg       = new FilterDialog();
         dlg.Title  = Catalog.GetString("Edit Condition...");
         dlg.Filter = condition;
         if ((int)ResponseType.Ok == dlg.Run())
         {
             m_Store.SetValue(itr, 0, dlg.Filter);
         }
     }
 }
예제 #3
0
 protected virtual void OnAddClick(object sender, System.EventArgs e)
 {
     FilterDialog dlg = new FilterDialog();
     dlg.Filter = new FilterList();
     dlg.Title = Catalog.GetString("Add Condition...");
     if ((int) ResponseType.Ok == dlg.Run())
     {
         m_Store.AppendValues(dlg.Filter);
         this.QueueDraw();
     }
     dlg.Hide();
     dlg.Dispose();
 }
예제 #4
0
 protected virtual void OnEditClicked(object sender, System.EventArgs e)
 {
     Gtk.TreeIter itr;
     Gtk.TreeModel model;
     if (conditionList.Selection.GetSelected (out model, out itr))
     {
         FilterList condition = (FilterList)model.GetValue (itr, 0);
         FilterDialog dlg = new FilterDialog();
         dlg.Title = Catalog.GetString("Edit Condition...");
         dlg.Filter = condition;
         if ((int) ResponseType.Ok == dlg.Run())
         {
             m_Store.SetValue(itr, 0, dlg.Filter);
         }
     }
 }
예제 #5
0
 public void AddAdvancedFilter()
 {
     FilterDialog dlg = new FilterDialog();
     dlg.MainWin = this;
     dlg.Filter = m_app.CacheStore.AdvancedFilters;
     if (((int) ResponseType.Ok) == dlg.Run())
     {
         m_app.CacheStore.AdvancedFilters = dlg.Filter;
         CacheList.Refresh();
     }
 }