Hallo Dmitry,
thanks for your suggestion. Do you also know how i can connect a
update method with the loop mechanism from wt.The emit call has to be
only on one place of the mainloop. Each nextPage-Call only set the
update Flag of a signal. The check method which is called each update
check the Flag and emit the signals. Any idea, where i can implement
or override such a method?
Thanks, Sven
Am 23.04.2010 um 17:48 schrieb Dmitriy Igrishin <[email protected]>:
You may do it by implementing the widget (container) with a slot
inside, which will replace the current widget ("page") with next
widget
("page") in some place on the page where you want.
class MyWidget : public Wt::WContainerWidget {
// code
private:
Wt::WContainerWidget* page_;
Wt::WContainerWidget* paginator_; // emits the signal, e.g.,
"internalPathChanged", or clicked....
void nextPage(); // slot. Loads new page to the page_
// code
};
Regards,
Dmitriy Igrishin
2010/4/23 Sven Knoblich <[email protected]>
Thanks for your response. I was wrong by using The internal
EventSignal. Are there possibilities to register my Signals on the
existing signal handler of WApplication or WContainerWidget? I want
to handle my own Signals on à Central place. Currently i have a page
handler which inherits from WApplication an Pages which inherit from
WContainerWidget. When i want to load the next page, i want to call
a method from my pagehandler "nextpage()". To avoid a selfdestruct
ion by a call from a page i want to set the updateflag of The Signal
to true. When now The Signal handler ask for this flag, the signal
will be called by call emit.
Any idea where to integrate ore which handler i can use?
Many thanks in advance,
Sven
---
---
---
---------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest
---
---
---
---------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest