Mercurial > projects > mde
diff mde/scheduler/Init.d @ 45:0fd51d2c6c8a
Several changes to resising windows and layout widgets. This commit still has some bugs.
Moved the implementable widgets from mde.gui.widget.Widget to miscWidgets, leaving base widgets in Widget.
Rewrote some of GridLayoutWidget's implementation. Made many operations general to work for either columns or rows. Some optimisations were intended but ended up being removed due to problems.
Allowed layout's to resize from either direction (only with window resizes).
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 22 May 2008 11:34:09 +0100 |
parents | 1530d9c04d4d |
children | f000d6cd0f74 |
line wrap: on
line diff
--- a/mde/scheduler/Init.d Fri May 16 12:22:10 2008 +0100 +++ b/mde/scheduler/Init.d Thu May 22 11:34:09 2008 +0100 @@ -212,6 +212,7 @@ const LOG_CF_MSG = "Cleanup function "; const LOG_F_START = " - running"; const LOG_F_END = " - completed"; + const LOG_F_BAD = " - failed"; const LOG_F_FAIL = " - failed: "; /* Runs all functions consecutively, first-to-last. * If any function fails, halts immediately. */ @@ -221,7 +222,7 @@ try { debug logger.trace (LOG_IF_MSG ~ func.name ~ LOG_F_START); func.func(); - debug logger.trace (LOG_IF_MSG ~ func.name ~ LOG_F_END); + debug logger.trace (LOG_IF_MSG ~ func.name ~ (initFailure ? LOG_F_BAD : LOG_F_END)); } catch (Exception e) { logger.fatal (LOG_IF_MSG ~ func.name ~ LOG_F_FAIL ~ ((e.msg is null || e.msg == "") ? "(no failure message)" : e.msg) ); @@ -239,7 +240,7 @@ try { debug logger.trace (LOG_CF_MSG ~ func.name ~ LOG_F_START); func.func(); - debug logger.trace (LOG_CF_MSG ~ func.name ~ LOG_F_END); + debug logger.trace (LOG_CF_MSG ~ func.name ~ (initFailure ? LOG_F_BAD : LOG_F_END)); } catch (Exception e) { logger.fatal (LOG_CF_MSG ~ func.name ~ LOG_F_FAIL ~ ((e.msg is null || e.msg == "") ? "(no failure message)" : e.msg) ); @@ -260,7 +261,7 @@ foreach (func; s.funcs) { // Start all threads debug logger.trace (LOG_IF_MSG ~ func.name ~ LOG_F_START); tg.create(func.func); - debug logger.trace (LOG_IF_MSG ~ func.name ~ LOG_F_END); + debug logger.trace (LOG_IF_MSG ~ func.name ~ (initFailure ? LOG_F_BAD : LOG_F_END)); } } catch (ThreadException e) { // Problem with threading; try without threads logger.error ("Caught ThreadException while trying to create threads:");