/[svn]/gigedit/trunk/src/dimregionedit.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/dimregionedit.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1196 by persson, Fri May 18 10:19:36 2007 UTC revision 1197 by persson, Fri May 18 16:07:18 2007 UTC
# Line 161  DimRegionEdit::DimRegionEdit() : Line 161  DimRegionEdit::DimRegionEdit() :
161      //TODO: the following would break drag&drop:   wSample->property_editable().set_value(false);  or this:    wSample->set_editable(false);      //TODO: the following would break drag&drop:   wSample->property_editable().set_value(false);  or this:    wSample->set_editable(false);
162      tooltips.set_tip(*wSample, _("Drop a sample here"));      tooltips.set_tip(*wSample, _("Drop a sample here"));
163      addProp(eUnityNote);      addProp(eUnityNote);
     // prop_table.addProp(eUnityNote);  
164      addHeader(_("Optional Settings"));      addHeader(_("Optional Settings"));
165      addProp(eSampleStartOffset);      addProp(eSampleStartOffset);
166      addProp(eChannelOffset);      addProp(eChannelOffset);
# Line 182  DimRegionEdit::DimRegionEdit() : Line 181  DimRegionEdit::DimRegionEdit() :
181      addProp(eSampleLoopInfinite);      addProp(eSampleLoopInfinite);
182      addProp(eSampleLoopPlayCount);      addProp(eSampleLoopPlayCount);
183    
     Gtk::Requisition req = table[0]->size_request();  
     printf("w=%d h=%d\n", req.width, req.height);  
     req = eCrossfade_out_end.widget.size_request();  
     printf("widget: w=%d h=%d\n", req.width, req.height);  
   
     Gtk::Allocation all = table[0]->get_allocation();  
     printf("allocation: w=%d h=%d\n", all.get_width(), all.get_height());  
   
184      nextPage();      nextPage();
185    
186      addHeader(_("General Amplitude Settings"));      addHeader(_("General Amplitude Settings"));
# Line 510  void DimRegionEdit::addProp(BoolEntry& b Line 501  void DimRegionEdit::addProp(BoolEntry& b
501      rowno++;      rowno++;
502  }  }
503    
 void DimRegionEdit::addProp(BoolEntryPlus6& boolentry)  
 {  
     table[pageno]->attach(boolentry.widget, 1, 3, rowno, rowno + 1,  
                           Gtk::FILL, Gtk::SHRINK);  
     rowno++;  
 }  
   
 PropTable::PropTable()  
 {  
     rowno = 0;  
     firstRowInBlock = 0;  
   
     table = new Gtk::Table(3, 1);  
     table->set_col_spacings(7);  
     tables.push_back(table);  
 }  
   
 void PropTable::addProp(LabelWidget& prop)  
 {  
     table->attach(prop.label, 1, 2, rowno, rowno + 1,  
                   Gtk::FILL, Gtk::SHRINK);  
     table->attach(prop.widget, 2, 3, rowno, rowno + 1,  
                   Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK);  
     rowno++;  
 }  
   
 void PropTable::nextPage()  
 {  
     if (firstRowInBlock < rowno - 1)  
     {  
         Gtk::Label* filler = new Gtk::Label("    ");  
         table->attach(*filler, 0, 1, firstRowInBlock, rowno,  
                       Gtk::FILL, Gtk::SHRINK);  
     }  
     table = new Gtk::Table(3, 1);  
     table->set_col_spacings(7);  
     tables.push_back(table);  
     rowno = 0;  
     firstRowInBlock = 0;  
 }  
   
504  void DimRegionEdit::addProp(LabelWidget& prop)  void DimRegionEdit::addProp(LabelWidget& prop)
505  {  {
506      table[pageno]->attach(prop.label, 1, 2, rowno, rowno + 1,      table[pageno]->attach(prop.label, 1, 2, rowno, rowno + 1,

Legend:
Removed from v.1196  
changed lines
  Added in v.1197

  ViewVC Help
Powered by ViewVC