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

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

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

revision 2541 by schoenebeck, Wed Apr 23 16:49:05 2014 UTC revision 2844 by persson, Sun Sep 20 08:49:40 2015 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 2006-2014 Andreas Persson   * Copyright (C) 2006-2015 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 19  Line 19 
19    
20  #include <cstring>  #include <cstring>
21    
22    #include <glibmmconfig.h>
23    // threads.h must be included first to be able to build with
24    // G_DISABLE_DEPRECATED
25    #if (GLIBMM_MAJOR_VERSION == 2 && GLIBMM_MINOR_VERSION == 31 && GLIBMM_MICRO_VERSION >= 2) || \
26        (GLIBMM_MAJOR_VERSION == 2 && GLIBMM_MINOR_VERSION > 31) || GLIBMM_MAJOR_VERSION > 2
27    #include <glibmm/threads.h>
28    #endif
29    
30  #include "paramedit.h"  #include "paramedit.h"
31    
32  #include "global.h"  #include "global.h"
# Line 161  void LabelWidget::set_sensitive(bool sen Line 169  void LabelWidget::set_sensitive(bool sen
169      widget.set_sensitive(sensitive);      widget.set_sensitive(sensitive);
170  }  }
171    
172    ReadOnlyLabelWidget::ReadOnlyLabelWidget(const char* leftHandText)
173        : LabelWidget(leftHandText, text)
174    {
175        text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START);
176    }
177    
178    ReadOnlyLabelWidget::ReadOnlyLabelWidget(const char* leftHandText, const char* rightHandText)
179       : LabelWidget(leftHandText, text)
180    {
181        text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START);
182        text.set_text(rightHandText);
183    }
184    
185  NumEntry::NumEntry(const char* labelText, double lower, double upper,  NumEntry::NumEntry(const char* labelText, double lower, double upper,
186                     int decimals) :                     int decimals) :
187      LabelWidget(labelText, box),      LabelWidget(labelText, box),

Legend:
Removed from v.2541  
changed lines
  Added in v.2844

  ViewVC Help
Powered by ViewVC