]> Shamusworld >> Repos - apple2/blobdiff - src/gui/gui.cpp
Preliminary workings of a disk handling window. Added element visibility,
[apple2] / src / gui / gui.cpp
index d61cfe4e620cd870b143a095754a3aa1d7a229c0..7c6e219782d001fbd2c7c7680964c0abb341b267 100755 (executable)
@@ -23,6 +23,7 @@
 #include "window.h"
 #include "button.h"
 #include "text.h"
+#include "diskwindow.h"
 #include "video.h"
 #include "apple2.h"
 
@@ -45,7 +46,7 @@ If disk in drive, MO shows eject graphic, otherwise show load graphic.
 If hit 'new blank image':
        If disk in drive, ask if want to save if modified
        else, load it
-
+If hit 'swap disks', swap disks.
 */
 
 
@@ -60,6 +61,7 @@ GUI::GUI(SDL_Surface * surface): menuItem(new MenuItems())
        windowList.push_back(new Button(30, 250, "Click!"));
        windowList.push_back(new Text(30, 20, floppyDrive.GetImageName(0)));
        windowList.push_back(new Text(30, 130, floppyDrive.GetImageName(1)));
+       windowList.push_back(new DiskWindow(&floppyDrive, 240, 20));
 }
 
 GUI::~GUI()