On Friday, September 12, 2014 4:32:39 PM UTC-5, Edward K. Ream wrote: > I have refactored the style-reload command so it uses a separate class.
And now that class has been renamed StyleSheetManager (SSM) and moved to qt_gui.py, where it belongs. The style-reload command now passes checks when no new changes have been made ;-) Here is the cheking log for rev b674bb4, Saturday, September 13, 2014 8:44:04 AM: QQQ Packaging and substantive work re loading/reloading style sheets. - All tests pass, and hand tests pass with both --gui=qt and --gui=qttabs, but perhaps caution may be advised. - Corrected bugs that would cause crashers when --gui=qt. - Created the StyleSheetManager class in qt_gui.py to handle all aspects of Qt style sheets in Leo. - Created LeoQtGui.reloadStyleSheets and LeoQtGui.setStyleSheets access methods. For example, the style-reload command now simply calls g.app.gui.reloadStyleSheets. - SSM.munge now does a good job of approximating what Qt does, which makes stylesheet checks work. - Added more useful tracing when checks fail. This helped improved SSM.munge. Leo build: 20140913084405 QQQ One thing not highlighted in the checkin log: SSM.set_style_sheets and SSM.check_stylesheet now use different code to discover the top-level widget when getting/setting stylesheets. The old code failed with --gui=qt. As I write this, it may be possible to abstract out the logic that calculates this widget into a separate method. I expect more work is needed on the StyleSheetManager class, but it's coming along nicely. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
