eWindow::eWindow(eWidgetDesktop *desktop, int z): eWidget(0)
{
m_flags = 0;
+ m_animation_mode = 0x11;
m_desktop = desktop;
/* ask style manager for current style */
ePtr<eWindowStyleManager> mgr;
return eWidget::event(event, data, data2);
}
+void eWindow::show()
+{
+ if (m_animation_mode & 0x01)
+ m_desktop->sendShow(position(), size());
+ eWidget::show();
+}
+
+void eWindow::hide()
+{
+ if (m_animation_mode & 0x10)
+ m_desktop->sendHide(position(), size());
+ eWidget::hide();
+}
+
+void eWindow::setAnimationMode(int mode)
+{
+ /*
+ * 0x00 = animation off
+ * 0x01 = show on
+ * 0x10 = hide on
+ * 0x11 = animation on
+ */
+ m_animation_mode = mode;
+}