X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Finput.cpp;h=26bf9f2bfc521165e24d4ae2c5cb7afd22092e29;hb=62ce775d9af8f3321dbdebd6243b551fbbb0b976;hp=e2b0ae0e06a175f8215b8299248fd07709ddfd49;hpb=17c219cff8f859978ec1274786319478cc99450c;p=r2c2.git diff --git a/source/designer/input.cpp b/source/designer/input.cpp index e2b0ae0..26bf9f2 100644 --- a/source/designer/input.cpp +++ b/source/designer/input.cpp @@ -16,26 +16,24 @@ using namespace std; using namespace Msp; InputDialog::InputDialog(Designer &d, const string &title, const string &text): - GLtk::Widget(d.get_ui_resources()), - GLtk::Dialog(d.get_ui_resources()), designer(d) { set_size(300, 100); GLtk::Label *lbl; - add(*(lbl=new GLtk::Label(res, title))); + add(*(lbl=new GLtk::Label(title))); lbl->set_geometry(GLtk::Geometry(10, geom.h-30, geom.w-20, 20)); - add(*(entry=new GLtk::Entry(res, text))); + add(*(entry=new GLtk::Entry(text))); entry->set_geometry(GLtk::Geometry(10, geom.h-60, geom.w-20, 20)); GLtk::Button *btn; - add_button(*(btn=new GLtk::Button(res, "Cncl")), 0); + add_button(*(btn=new GLtk::Button("Cncl")), 0); btn->set_geometry(GLtk::Geometry(geom.w-90, 10, 40, 24)); btn->set_style("red"); - add_button(*(btn=new GLtk::Button(res, "OK")), 1); + add_button(*(btn=new GLtk::Button("OK")), 1); btn->set_geometry(GLtk::Geometry(geom.w-50, 10, 40, 24)); btn->set_style("green");