diff --git a/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj b/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj
index 070048f2..4cf39045 100644
--- a/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj
+++ b/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj
@@ -111,6 +111,7 @@
+
diff --git a/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj.filters b/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj.filters
index 78cee943..471a7a91 100644
--- a/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj.filters
+++ b/Tutorial/GacUI_Controls/TextEditor/TextEditor.vcxproj.filters
@@ -87,5 +87,8 @@
Resource Files\Images
+
+ Resource Files\Images
+
\ No newline at end of file
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Images/Folder.xml b/Tutorial/GacUI_Controls/TextEditor/UI/Images/Folder.xml
index b9fdfb92..773985a8 100644
--- a/Tutorial/GacUI_Controls/TextEditor/UI/Images/Folder.xml
+++ b/Tutorial/GacUI_Controls/TextEditor/UI/Images/Folder.xml
@@ -5,6 +5,7 @@
NewXml.png
Open.png
Save.png
+ SaveAs.png
EditCopy.png
EditCut.png
EditDelete.png
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Images/SaveAs.png b/Tutorial/GacUI_Controls/TextEditor/UI/Images/SaveAs.png
new file mode 100644
index 00000000..4b16b07d
Binary files /dev/null and b/Tutorial/GacUI_Controls/TextEditor/UI/Images/SaveAs.png differ
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Resource.xml b/Tutorial/GacUI_Controls/TextEditor/UI/Resource.xml
index dd0084fe..eb8d1785 100644
--- a/Tutorial/GacUI_Controls/TextEditor/UI/Resource.xml
+++ b/Tutorial/GacUI_Controls/TextEditor/UI/Resource.xml
@@ -16,7 +16,7 @@
-
+
@@ -34,9 +34,12 @@
commandFileOpenXml_Executed
-
+
commandFileSave_Executed
+
+ commandFileSaveAs_Executed
+
commandFileExit_Executed
@@ -69,6 +72,27 @@
commandAbout_Executed
+
+
+
+
+
+
@@ -93,6 +117,7 @@
+
@@ -136,6 +161,7 @@
+
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.cpp b/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.cpp
index a678920b..a7f0a8a0 100644
--- a/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.cpp
+++ b/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.cpp
@@ -38,6 +38,7 @@ namespace vl
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpenText_Executed, vl::presentation::compositions::GuiEventArgs)
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpenXml_Executed, vl::presentation::compositions::GuiEventArgs)
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileOpen_Executed, vl::presentation::compositions::GuiEventArgs)
+ CLASS_MEMBER_GUIEVENT_HANDLER(commandFileSaveAs_Executed, vl::presentation::compositions::GuiEventArgs)
CLASS_MEMBER_GUIEVENT_HANDLER(commandFileSave_Executed, vl::presentation::compositions::GuiEventArgs)
END_CLASS_MEMBER(demo::MainWindow)
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.h b/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.h
index f9ce06d6..7daba260 100644
--- a/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.h
+++ b/Tutorial/GacUI_Controls/TextEditor/UI/Source/DemoPartialClasses.h
@@ -39,6 +39,11 @@ namespace demo
vl::presentation::controls::GuiToolstripCommand* commandFileOpenText;
vl::presentation::controls::GuiToolstripCommand* commandFileOpenXml;
vl::presentation::controls::GuiToolstripCommand* commandFileSave;
+ vl::presentation::controls::GuiToolstripCommand* commandFileSaveAs;
+ vl::presentation::controls::GuiOpenFileDialog* dialogOpen;
+ vl::presentation::controls::GuiMessageDialog* dialogQueryClose;
+ vl::presentation::controls::GuiSaveFileDialog* dialogSave;
+ vl::presentation::controls::GuiWindow* self;
vl::presentation::controls::GuiMultilineTextBox* textBox;
void InitializeComponents()
@@ -61,6 +66,11 @@ namespace demo
GUI_INSTANCE_REFERENCE(commandFileOpenText);
GUI_INSTANCE_REFERENCE(commandFileOpenXml);
GUI_INSTANCE_REFERENCE(commandFileSave);
+ GUI_INSTANCE_REFERENCE(commandFileSaveAs);
+ GUI_INSTANCE_REFERENCE(dialogOpen);
+ GUI_INSTANCE_REFERENCE(dialogQueryClose);
+ GUI_INSTANCE_REFERENCE(dialogSave);
+ GUI_INSTANCE_REFERENCE(self);
GUI_INSTANCE_REFERENCE(textBox);
}
else
@@ -87,6 +97,11 @@ namespace demo
,commandFileOpenText(0)
,commandFileOpenXml(0)
,commandFileSave(0)
+ ,commandFileSaveAs(0)
+ ,dialogOpen(0)
+ ,dialogQueryClose(0)
+ ,dialogSave(0)
+ ,self(0)
,textBox(0)
{
}
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp b/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp
index f1f3f978..14e4cda5 100644
--- a/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp
+++ b/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.cpp
@@ -72,6 +72,10 @@ namespace demo
{
}
+ void MainWindow::commandFileSaveAs_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
+ {
+ }
+
void MainWindow::commandFileSave_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments)
{
}
@@ -88,4 +92,3 @@ namespace demo
ClearSubscriptions();
}
}
-
diff --git a/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.h b/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.h
index f8b9d3ec..05a9d0dc 100644
--- a/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.h
+++ b/Tutorial/GacUI_Controls/TextEditor/UI/Source/MainWindow.h
@@ -35,6 +35,7 @@ namespace demo
void commandFileOpenText_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void commandFileOpenXml_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void commandFileOpen_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
+ void commandFileSaveAs_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
void commandFileSave_Executed(GuiGraphicsComposition* sender, vl::presentation::compositions::GuiEventArgs& arguments);
// #endregion CLASS_MEMBER_GUIEVENT_HANDLER
public:
diff --git a/Tutorial/GacUI_Controls/UIRes/TextEditor.bin b/Tutorial/GacUI_Controls/UIRes/TextEditor.bin
index 844bf43b..a0c76b79 100644
Binary files a/Tutorial/GacUI_Controls/UIRes/TextEditor.bin and b/Tutorial/GacUI_Controls/UIRes/TextEditor.bin differ