DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2336
Version: 1.3-feature


Thank you.

If I create a widget Test_Text_Display which is subclassed from
Fl_Text_Display, will it constitute a derivative work as fltk's Software
License?

The implementation of Test_Text_Display may like this:
class My_Text:public My_Text_Display
{
 public:
  ...
  void draw();//modified
  void draw_string(...);//modified
  void old_draw(...);//only copy code
  void draw_text(...);//only copy code
  void draw_vline(...);//only copy code
  ...
};

void Test_Text_Display::draw()
{
  ...
  old_draw();
  ...
}


void Test_Text_Display::old_draw()
{
//full copy of Fl_Text_Display::draw() in Fl_Text_Display.cxx
}
void Test_Text_Display::draw_text()
{
//full copy of Fl_Text_Display::draw_text().
//The same code as the one in Fl_Text_Display.cxx.
}
void Test_Text_Display::draw_vline(...)
{
//full copy from fltk's source code without modification as above
}

void Test_Text_Display::draw_string(...)
{
//part of copy of the original Fl_Text_Display::draw_string(...).
//Do some modification, such as remove "clear_rect"
...
}

That is to say, draw_string() was modified based on the original one in
Fl_Text_Display.cxx , and all functions that call draw_string from the
original draw() was copied from Fl_Text_display to Test_Text_Display
without modification. 

I noticed that there is an exception in fltk's Software License:
"2.Widgets that are subclassed from FLTK widgets do not constitute a
derivative work."

Does implementation of Test_Text_Display like above constitute a
derivative work?

Thanks.


Link: http://www.fltk.org/str.php?L2336
Version: 1.3-feature

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to