+
+
+ WindowSettings *ws = p_intf->p_sys->p_window_settings;
+ wxPoint p;
+ wxSize s;
+ bool b_shown;
+
+#define INIT( id, w, N, S ) \
+ if( ws->GetSettings( WindowSettings::id, b_shown, p, s ) && b_shown ) \
+ { \
+ if( !w ) \
+ w = N; \
+ w->SetSize( s ); \
+ w->Move( p ); \
+ w->S( true ); \
+ }
+
+ INIT( ID_PLAYLIST, p_playlist_dialog, new Playlist(p_intf,this), ShowPlaylist );
+ INIT( ID_MESSAGES, p_messages_dialog, new Messages(p_intf,this), Show );
+ INIT( ID_FILE_INFO, p_fileinfo_dialog, new FileInfo(p_intf,this), Show );
+ INIT( ID_BOOKMARKS, p_bookmarks_dialog, BookmarksDialog(p_intf,this), Show);
+#undef INIT