b6fb135398
change error notification at subsystem shutdown to use just a string*
...
(this allows to memoize the error message and call the termination
handler outside the catch block)
2009-01-10 16:15:17 +01:00
3da9586824
Rewrite the GuiNotification service to operate in sync with bringing up the GUI
2009-01-10 15:29:11 +01:00
Joel Holdsworth
27ffbd1875
Retire expander_from_point
2009-01-10 12:58:58 +00:00
Joel Holdsworth
baa88abad0
Further tidied and simplified update_headers
2009-01-10 11:11:30 +00:00
Joel Holdsworth
c9420126f1
Retired iteration through the model tree in header container
2009-01-10 11:08:48 +00:00
Joel Holdsworth
ab900e6b28
Tidied TimelineHeaderContainer::update_headers
2009-01-10 11:03:12 +00:00
Joel Holdsworth
fcd5cd8117
Tidied up update_headers
2009-01-10 11:02:29 +00:00
Joel Holdsworth
dbc36cf727
Reorganised set_parent in header container
2009-01-10 10:50:44 +00:00
Joel Holdsworth
d02ce9b283
Fixed minor bug in expander animation
2009-01-09 23:28:51 +00:00
Joel Holdsworth
0697d2a83e
Retired TimelineHeaderContainer::size_request_recursive
2009-01-09 20:16:54 +00:00
Joel Holdsworth
1f73978dd4
Added is_animating function
2009-01-09 20:03:55 +00:00
Joel Holdsworth
06f2abb6fa
Transitioned TimelineWidget to use on_layout_changed
2009-01-09 20:02:09 +00:00
Joel Holdsworth
6d730ee3ae
Added on_layout_changed event handler
2009-01-09 20:00:04 +00:00
Joel Holdsworth
98568c8669
Fixed a minor formatting error
2009-01-09 19:59:13 +00:00
Joel Holdsworth
57d73eca1e
Removed an obselete constant
2009-01-09 19:49:57 +00:00
4ffa60161b
Integration with InstanceHandle
2009-01-07 12:26:44 +01:00
635b9441f4
WIP rewrite the existing solution for the GuiNotification facade
...
using this new approach (not functional yet, because laci of
automatic integration with InstanceHandle.
2009-01-06 06:40:44 +01:00
24fe4bcb70
separate and hide away implementation part into common/interfaceproxy.cpp
2009-01-06 06:18:13 +01:00
afcea26399
wrap into additional namespace lumiera::facade
2009-01-06 06:15:36 +01:00
8a40075ee8
WIP expand on this draft to build a prospective solution
2009-01-06 06:09:46 +01:00
Joel Holdsworth
b48d8fc49b
Tidied up, simplified and documented expand animation code
2009-01-05 20:03:52 +00:00
Joel Holdsworth
22c9e8b082
Merge branch 'master' of git.lumiera.org:/git/LUMIERA into gui
2009-01-05 17:59:23 +00:00
57ca80c2fc
WIP continued drafting...
2009-01-05 16:17:53 +01:00
31a112acaa
some typos
2009-01-05 16:17:17 +01:00
Christian Thaeter
9749178a06
Add some missing semicolons, the upcoming NoBug will be picky about that
2009-01-05 08:33:15 +01:00
Joel Holdsworth
43897d214d
Made animation time based not tick based
2009-01-05 00:05:14 +00:00
Joel Holdsworth
8db54f1179
Removed some debug messages
2009-01-04 23:32:29 +00:00
Joel Holdsworth
05b17a7148
Simplified the layout animation a little
2009-01-04 21:16:45 +00:00
Joel Holdsworth
f3339a538b
Tweaked the documentation for the layout_headers_recursive
2009-01-04 20:29:54 +00:00
Joel Holdsworth
e74e55df98
Tidied up TimelineLayoutHelper::layout_headers_recursive
2009-01-04 20:29:05 +00:00
8d4bc62fbe
WIP start drafting a better InterfaceProxy handling
2009-01-04 15:21:04 +01:00
Joel Holdsworth
c401207dba
Refactored creating Track::get_expander_style()
2009-01-03 21:57:24 +00:00
Joel Holdsworth
18d7290c61
Added expander button animation
2009-01-03 17:36:33 +00:00
Joel Holdsworth
932697b836
Made animation parabolic
2009-01-03 17:22:12 +00:00
Joel Holdsworth
dc9dd3fbd7
WIP: Initial track tree expand animation
2009-01-03 16:06:30 +00:00
e8229623bc
Integration: complete GTK-GUI loaded from main Lumiera App. !Yay!
2009-01-03 16:57:51 +01:00
Joel Holdsworth
2d4a341123
Transition TimelineHeaderContainer::draw_header_decoration to use the
...
layout tree
2009-01-03 15:21:04 +00:00
edb01ec8c6
Integration: Thread/sync, GUI-Plugin invoked in separate thread
2009-01-03 16:05:04 +01:00
683e1dabe1
cleanup, add further testcase (starting prerequisite subsystems)
...
SubsystemRunner considered finished.
2009-01-03 13:32:24 +01:00
f90238dba4
chased two bugs...
2009-01-03 04:29:59 +01:00
Joel Holdsworth
1d376e4292
Wrapped TimelineBody::track in a scoped_ptr
2009-01-02 16:47:29 +00:00
Joel Holdsworth
cd94bf9765
Transitioned TimelineBody and timeline tools to having reference to
...
TimelineWidget not pointers
2009-01-02 16:32:40 +00:00
Joel Holdsworth
6bfef606a0
Transition TimelineRuler to have a reference to TimelineWidget not a
...
pointer
2009-01-02 16:21:52 +00:00
Joel Holdsworth
9581fc6779
Corrected a small mistake in timeline-header-container.cpp
2009-01-02 16:18:29 +00:00
Joel Holdsworth
fa60ea76dd
Small correction to timeline-header-container.hpp
2009-01-02 16:17:10 +00:00
Joel Holdsworth
bf0cfc295e
Transitioned TimelineHeaderContainer to having a reference to
...
TimelineWidget, not a pointer
2009-01-02 16:15:42 +00:00
Joel Holdsworth
eb6f364084
Merge branch 'newlayout' into gui
2009-01-02 16:07:58 +00:00
Joel Holdsworth
dfbe3764cd
Added documentation to timeline-layout-helper.hpp
2009-01-02 15:54:32 +00:00
Joel Holdsworth
a28a901539
Added an extra const of consistency
2009-01-02 15:47:56 +00:00
Joel Holdsworth
643e1c9be1
Fixed an undefined constant
2009-01-02 15:26:12 +00:00
Joel Holdsworth
8ad308e679
Fixed the find functions so they're offset by the scroll position, not
...
absolute
2009-01-02 15:25:45 +00:00
Joel Holdsworth
2a9f1764c8
Tidied TimelineLayoutHelper
2009-01-02 13:18:09 +00:00
Joel Holdsworth
8debd21363
Squished some warnings in lib/tree.hpp
2009-01-02 13:10:56 +00:00
Joel Holdsworth
1c685a2d61
Added a new layout update infrastructure
2009-01-02 13:03:00 +00:00
Joel Holdsworth
a501616a87
Transitioned TimelineLayoutHelper::get_track_header_rect to return
...
weak_ptr
2009-01-02 12:43:21 +00:00
Joel Holdsworth
e135cb18cb
Removed TimelineBody::track_from_point
2009-01-02 12:41:30 +00:00
Joel Holdsworth
86947936a5
Tidied TimelineBody::draw_track somewhat
2009-01-02 12:20:43 +00:00
Joel Holdsworth
bcd5dababe
Transitioned TimelineBody drawing code to use the TimelineLayoutHelper
2009-01-02 12:17:19 +00:00
Joel Holdsworth
9fac0b8b46
Renamed some local variables for greater consistency
2009-01-02 11:53:32 +00:00
Joel Holdsworth
c05f0fbbfb
Added a comment
2009-01-02 11:39:45 +00:00
2aab2491aa
deal with a race regarding argument passing
2009-01-02 08:02:27 +01:00
120fbf8f01
temporary addition: signalling successful thread creation
...
(I take it the final implementation will provide something equivalent,
without such a check, failure to create the thread results in deadlock)
2009-01-02 08:01:51 +01:00
Joel Holdsworth
325a2101e7
Moved read_styles to occur earlier in the creation of
...
TimelineHeaderContainer
2009-01-02 00:47:09 +00:00
Joel Holdsworth
e3a7b896d0
Removed debug g_message calls
2009-01-02 00:45:20 +00:00
Joel Holdsworth
8285daec39
Added more strictness to the use of read_styles
2009-01-02 00:44:10 +00:00
Joel Holdsworth
85d6a19dd4
Fixed a bug caused by TimelineHeaderContainer::read_styles being called
...
at the wrong time
2009-01-02 00:33:40 +00:00
Joel Holdsworth
afb5b7298f
WIP: Applying new layout system
2009-01-01 18:43:46 +00:00
Joel Holdsworth
ac28251915
Added layout code from TimelineHeaderContainer
2009-01-01 13:31:34 +00:00
Joel Holdsworth
0f3b290b6d
Tweaked tree.hpp to improve documentation to work better in lumiera
...
doxygen
2009-01-01 12:34:39 +00:00
Joel Holdsworth
8d44b90a8b
Removed a spurious lumiera::
2008-12-31 17:29:57 +00:00
Joel Holdsworth
8d092d3b85
Added TimelineLayoutHelper::clone_tree_from_sequence
2008-12-31 17:05:32 +00:00
2f34637088
wire in the new threads implementation from backend...
2008-12-31 06:56:31 +01:00
8c892846e1
renaming etc...
2008-12-31 05:05:34 +01:00
Joel Holdsworth
78a9ebb258
Added a track tree object to the layout helper
2008-12-30 23:07:59 +00:00
Joel Holdsworth
e670f42a39
Opps - tree.hpp committed now
2008-12-30 23:07:16 +00:00
Joel Holdsworth
54ddf81afa
Moved tree into the lumiera namespace
2008-12-30 23:06:22 +00:00
Joel Holdsworth
2bea14748c
Added Kasper Peeters STL-like templated tree class to lib
2008-12-30 22:58:21 +00:00
Joel Holdsworth
77c056266f
Added empty timeline layout helper class
2008-12-30 22:27:09 +00:00
Joel Holdsworth
c32ae85a38
Small comment correction in timeline-header-container.hpp
2008-12-30 22:10:24 +00:00
Joel Holdsworth
4af80c78d8
Reimplemented nested track deleting so it work correctly
2008-12-30 21:50:18 +00:00
Joel Holdsworth
5e8620135c
Added stringifying debug methods to track tree classes, and added a big
...
tree to the sequence
2008-12-30 17:16:29 +00:00
Joel Holdsworth
a117fe99e5
Removed spurious add_child_track
2008-12-30 16:13:09 +00:00
Joel Holdsworth
910bf4b4e4
Added "Remove" to the track dropdown menu
2008-12-30 15:20:19 +00:00
Joel Holdsworth
cdf26d3fe6
Tidied up the displayer code and added some documentation
2008-12-30 13:06:08 +00:00
Joel Holdsworth
8cb48a7298
Squished a whole load of warnings
2008-12-30 12:35:58 +00:00
5114d09156
fix after merge/rebase
2008-12-30 08:35:26 +01:00
71aa88df62
add some error checking
...
makes the dummy Gui plugin "work" again, but now with enabled locking.
2008-12-30 08:19:33 +01:00
4b3d567ca0
Switch Singleton template to use the threadsafe version (Fix)
2008-12-30 08:19:32 +01:00
7a2bbefb1d
typos
2008-12-30 08:19:32 +01:00
75bdc877dc
reconsider synchronisation and switch some parts to instance based locks.
2008-12-30 08:19:32 +01:00
00a5e7028d
care for copy operations
2008-12-30 08:19:32 +01:00
33ae97b50d
switch in the new recursive mutex/condition impl from backend
2008-12-30 08:17:05 +01:00
075b3c8d6a
fix some warnings...
2008-12-30 07:28:34 +01:00
Joel Holdsworth
70e6394cf6
Added a TODO next to ftruncate
2008-12-29 20:48:06 +00:00
Joel Holdsworth
1802512371
Reinstated -Werror and fixed the ftruncate warning
2008-12-29 20:41:47 +00:00
Joel Holdsworth
90d14d12f7
Merged in LUMIERA master and gui branches
2008-12-29 19:13:58 +00:00
Joel Holdsworth
ad957ef9e3
Merge branch 'master' of git://git.lumiera.org/LUMIERA into gui
...
Conflicts:
src/gui/Makefile.am
2008-12-29 18:46:06 +00:00
Joel Holdsworth
e17cf45b08
Added an arrow to the MenuButton class
2008-12-29 16:29:30 +00:00
Christian Thaeter
66fb3afe83
Fix: new nobug renamed some macros
2008-12-29 02:52:46 +01:00
Christian Thaeter
532f609ea1
experimental thread implementation
...
* This spawns a thread, almost as proposed
* The condition variable for finishing is not yet implemented
* Most Parameters are ignored
2008-12-29 01:50:38 +01:00
9f9ef10c11
add a temporary impl for recursive conditions just for test
...
(can be removed when the implemented in the backend)
2008-12-28 02:05:04 +01:00
Joel Holdsworth
b4ce796c94
Added track name setting
2008-12-27 22:02:18 +00:00
Christian Thaeter
23f89b027a
fixes for new NoBug (mandatory upgrade)
...
I managed to break some interface compatibility with NoBug finally. The
new NOBUG_ALPHA_COMMA macros shall stay there now.
2008-12-27 18:42:10 +01:00
Christian Thaeter
1a792ac328
add reccondition variable, condition vars which use a recursive mutex
...
not tested yet
2008-12-27 16:25:07 +01:00
Christian Thaeter
07cec0a44d
make the uses of pthread_once faster by checking the once var first
2008-12-27 16:25:07 +01:00
16adff318d
Comments
2008-12-27 07:44:28 +01:00
250e3ba4df
add a convenience shortcut for waiting on a bool member function
2008-12-27 06:58:13 +01:00
8ec25c1f45
TEMPORARY hack: link against Gui libs to get gthread and glib
...
** please undo this change when we are ready to use our own thread service!
2008-12-27 01:32:31 +01:00
af8d70c2bc
include fix
2008-12-27 01:30:48 +01:00
4e4d6f9fb2
fix Automake
2008-12-27 01:11:17 +01:00
93c4a282cc
Merge object monitor locking
2008-12-27 01:04:20 +01:00
e921b1658c
error.hpp belongs to src/lib
2008-12-27 00:53:35 +01:00
cbbc298fe9
kill some warnings
2008-12-26 23:17:51 +01:00
e0b698d25a
additions to make threads.c compile (empty)
2008-12-26 22:27:47 +01:00
Joel Holdsworth
9354c7e6ca
Stopped the stylesheet from forcing the font
2008-12-26 20:47:54 +00:00
Joel Holdsworth
7a838fc4eb
Added a name dialog for track
2008-12-26 19:51:41 +00:00
Joel Holdsworth
ea89f27668
Tidied up name-chooser.hpp
2008-12-26 19:10:31 +00:00
Joel Holdsworth
33afd58b8e
Converted all ASSERTs to REQUIREs
2008-12-26 18:58:29 +00:00
Joel Holdsworth
b75e6a982b
Converted to the SequenceName dialog to a generic name chooser dialog:
...
NameChooser
2008-12-26 18:49:28 +00:00
Joel Holdsworth
58d2f05db4
Added some documentation to menu-bbutton.hpp
2008-12-26 18:14:45 +00:00
Joel Holdsworth
be8d7644ed
Added the MenuButton class for buttons with popup menus
2008-12-26 18:10:28 +00:00
bd2ead37d5
Refactoring V: get lifecycle of a class-based monitor correct.
2008-12-26 05:44:49 +01:00
2173698e75
splitt off the (somewhat problematic) class locking case into a separate header
2008-12-26 04:25:01 +01:00
90150b1350
tie AssetManager locking to the Asset DB impl object
2008-12-26 03:47:49 +01:00
eaedab90ea
Refactoring IV: move the (still problematic) ClassLock out of the Sync compound
...
(no semantic change, but better notation)
2008-12-26 03:47:12 +01:00
54e88e6914
Refactoring III: Recursive/Nonrecursive and Waitable as policy classes
...
pass test again
2008-12-26 01:50:32 +01:00
1ff7f0c656
Refactoring II: encapsulate the variants probvieded by the backend as base classes
2008-12-24 23:23:23 +01:00
Christian Thaeter
072ea60352
Fix: use implicit nobug flag for releasing
...
needs new NoBug as well, I should check my code before pushing it to master
2008-12-24 03:59:08 +01:00
be2daf64ff
whitespace
...
(trying to compare LUMIERA_MUTEX_SECTION and LUMIERA_RECMUTEX_SECTION)
2008-12-24 03:42:36 +01:00
Christian Thaeter
7e13ca33d5
Condition Variable makeover
...
* Improved the Documentation
* add an CONDITION_UNLOCK macro to exoplicitly unlock the condition mutex
* Add ENSUREs to check that the mutex is locked
* Fix the CONDITION_WAIT, takes the missing condition expression now
* Fix, document and improve SIGNAL and BROADCAST macros
* remove the signal and broadcast functions
2008-12-24 03:40:55 +01:00
2650216d9b
Refactoring I: better put the timeout explicitly separate
2008-12-24 03:31:35 +01:00
ee9cd8b632
typos
2008-12-24 03:30:34 +01:00
Christian Thaeter
c0bc3cffb7
add a LUMIERA_RESOURCE_CPU to the resource-collector
2008-12-24 00:38:19 +01:00
Christian Thaeter
c9d83d97c3
Moved the resourcecollector from backend to lib
2008-12-24 00:26:32 +01:00
Christian Thaeter
2126b25604
Flag to make thread jobs optional
2008-12-23 09:06:55 +01:00
Christian Thaeter
121599dc89
lowest level thread api proposal
2008-12-23 08:44:30 +01:00
Christian Thaeter
8e1f64a284
gui Makefile rework, remove _DEPENDENCIES vars
...
_DEPENDENCIES supresses all automatic generated dependencies which is not
what we wanted here, instead use dist_pkgdata_DATA which looks right.
Add some clean rules to cleanup generated/copied data.
I am not sure if this is completely right now, but looks (and works) much
better than before.
2008-12-23 07:24:55 +01:00
36704a856e
basic wait/notify impl added, waiting-test pass
2008-12-23 04:27:11 +01:00
59a7270f5d
draft test for wait/notify, fails without the implementation
2008-12-23 01:32:01 +01:00
43521e3945
building block for the Condition part of the Monitor pattern
2008-12-23 00:03:04 +01:00
2b8cd00ab5
yet another renaming. call it "Sync"...
2008-12-22 17:00:15 +01:00
Joel Holdsworth
125db978ba
WIP: Experimenting with track headers
2008-12-22 11:36:46 +00:00
67e95884d5
preliminary implementation using pthread primitives. Locking test pass.
2008-12-22 07:23:48 +01:00
9240da002f
WIP
2008-12-22 05:02:52 +01:00
79b1515f71
typo
2008-12-22 05:02:52 +01:00
6031ac2465
FIX after rebase
2008-12-22 05:02:52 +01:00
751e1be596
better invocation, get rid of the template parameter
2008-12-22 05:02:52 +01:00
c4df935113
add draft impl for Monitor storage; dummy impl running
...
todo: actually do any locking, improve handling of the forThis parameter
2008-12-22 05:02:52 +01:00
2512f04f3f
WIP yet another namespace change. Now refer it from the test
2008-12-22 05:02:51 +01:00
112cd475b7
WIP draft the basic pattern
2008-12-22 05:02:51 +01:00