Menu

#111 taurusform --config does not restore the widget with stored size

Jan16
resolved
None
bug
2016-02-01
2014-10-24
marc
No

taurusform size problem:
taurusform --config does not restore the widget with stored size

How to reproduce it:
1) Create a taurusform with an attribute:
taurusform sys/tg_test/1/short_scalar

2) Change the size of the taurusform with the mouse

3) Store the taurusform configuration: right-click on the taurusform and 'save current settings'. This will save a TaurusForm.pck

4) Close the taurusform

5) open the taurusform by charging the config by doing:
taurusform --config=TaurusForm.pck

6) The taurusform is opened with the attribute sys/tg_test/1/short_scalar but the size of the widget is not the previously stored one. It reopens to the default size.

Discussion

  • Carlos Pascual

    Carlos Pascual - 2015-02-03
    • Milestone: Jan15 --> unassigned
     
  • Tiago Coutinho

    Tiago Coutinho - 2015-03-30

    Ticket moved from /p/sardana/tickets/257/

    Can't be converted:

    • _category: taurus-qt
     
  • Carlos Pascual

    Carlos Pascual - 2016-01-19

    Suggestion for fix:

    In TaurusFormMain, call

    dialog.registerConfigProperty(dialog.saveGeometry, dialog.restoreGeometry, 'MainWindowGeometry')
    

    Note: Taurustrend and taurusplot can also benefit from something similar, but since they reimplement the createConfig and applyConfig methods, the solution needs to be done there instead of in the main method

     
    • Carlos Pascual

      Carlos Pascual - 2016-01-19

      Patch sent to devel-list for taurusform..
      I created a separate ticket for taurusplot/trend: [#250]

       

      Related

      OLD Tickets: #250


      Last edit: Carlos Pascual 2016-01-20
  • Carlos Pascual

    Carlos Pascual - 2016-01-19
    • Category: unassigned --> Jan16,
     
  • Carlos Pascual

    Carlos Pascual - 2016-02-01
    • status: waiting --> resolved
    • assigned_to: Carlos Pascual
    • Milestone: Jan16 --> Jan16
     
  • Carlos Pascual

    Carlos Pascual - 2016-02-01

    Patch applied to develop