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

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

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

revision 1831 by persson, Tue Feb 3 19:38:19 2009 UTC revision 2169 by persson, Sun Mar 6 07:51:04 2011 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 2006-2009 Andreas Persson   * Copyright (C) 2006-2011 Andreas Persson
3   *   *
4   * This program is free software; you can redistribute it and/or   * This program is free software; you can redistribute it and/or
5   * modify it under the terms of the GNU General Public License as   * modify it under the terms of the GNU General Public License as
# Line 20  Line 20 
20  #include "dimregionedit.h"  #include "dimregionedit.h"
21    
22  #include "global.h"  #include "global.h"
23    #include "compat.h"
24    
25  DimRegionEdit::DimRegionEdit() :  DimRegionEdit::DimRegionEdit() :
26      eEG1PreAttack(_("Pre-attack"), 0, 100, 2),      eEG1PreAttack(_("Pre-attack"), 0, 100, 2),
# Line 267  DimRegionEdit::DimRegionEdit() : Line 268  DimRegionEdit::DimRegionEdit() :
268      addHeader(_("Mandatory Settings"));      addHeader(_("Mandatory Settings"));
269      addString(_("Sample"), lSample, wSample);      addString(_("Sample"), lSample, wSample);
270      //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);
271    #ifdef OLD_TOOLTIPS
272      tooltips.set_tip(*wSample, _("Drop a sample here"));      tooltips.set_tip(*wSample, _("Drop a sample here"));
273    #else
274        wSample->set_tooltip_text(_("Drop a sample here"));
275    #endif
276      addProp(eUnityNote);      addProp(eUnityNote);
277      addHeader(_("Optional Settings"));      addHeader(_("Optional Settings"));
278      addProp(eSampleStartOffset);      addProp(eSampleStartOffset);
# Line 556  void DimRegionEdit::addString(const char Line 561  void DimRegionEdit::addString(const char
561                                Gtk::Entry*& widget)                                Gtk::Entry*& widget)
562  {  {
563      label = new Gtk::Label(Glib::ustring(labelText) + ":");      label = new Gtk::Label(Glib::ustring(labelText) + ":");
564      label->set_alignment(Gtk::ALIGN_LEFT);      label->set_alignment(Gtk::ALIGN_START);
565    
566      table[pageno]->attach(*label, 1, 2, rowno, rowno + 1,      table[pageno]->attach(*label, 1, 2, rowno, rowno + 1,
567                            Gtk::FILL, Gtk::SHRINK);                            Gtk::FILL, Gtk::SHRINK);
# Line 582  Gtk::Label* DimRegionEdit::addHeader(con Line 587  Gtk::Label* DimRegionEdit::addHeader(con
587      str += "</b>";      str += "</b>";
588      Gtk::Label* label = new Gtk::Label(str);      Gtk::Label* label = new Gtk::Label(str);
589      label->set_use_markup();      label->set_use_markup();
590      label->set_alignment(Gtk::ALIGN_LEFT);      label->set_alignment(Gtk::ALIGN_START);
591      table[pageno]->attach(*label, 0, 3, rowno, rowno + 1,      table[pageno]->attach(*label, 0, 3, rowno, rowno + 1,
592                            Gtk::FILL, Gtk::SHRINK);                            Gtk::FILL, Gtk::SHRINK);
593      rowno++;      rowno++;

Legend:
Removed from v.1831  
changed lines
  Added in v.2169

  ViewVC Help
Powered by ViewVC