[xiph-commits] r8076 - in trunk/oggdsf: docs src/lib/plugin/axAnxOggPlayer

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Sun Oct 24 00:29:23 PDT 2004


Author: illiminable
Date: 2004-10-24 00:29:23 -0700 (Sun, 24 Oct 2004)
New Revision: 8076

Modified:
   trunk/oggdsf/docs/activeX.txt
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.aps
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc
Log:
* Added pause and stop button.

Modified: trunk/oggdsf/docs/activeX.txt
===================================================================
--- trunk/oggdsf/docs/activeX.txt	2004-10-24 07:18:05 UTC (rev 8075)
+++ trunk/oggdsf/docs/activeX.txt	2004-10-24 07:29:23 UTC (rev 8076)
@@ -37,6 +37,9 @@
   mDialog.Create(IDD_DIALOG1, this);
   mDialog.ShowWindow(TRUE);
 
+
+Adding a play button
+====================
 Go back to resource view.. open the dialog.
 
 Add a button.
@@ -44,7 +47,7 @@
 Double click the button... a new method should be generated.
 Check the message map to ensure the following has been added.
 ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
-If it hasn't add it manually.
+If it hasn't add it manually, ensuring you use the correct IDC and function name.
 
 
 Grabbing a browser instance...
@@ -84,6 +87,7 @@
 		mBrowser->Release();
 	}
 
+Repeat procedure for adding play button to add pause and stop button.
 
 
 

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp	2004-10-24 07:18:05 UTC (rev 8075)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp	2004-10-24 07:29:23 UTC (rev 8076)
@@ -14,10 +14,12 @@
 	: CDialog(CControlDialog::IDD, pParent)
 	, mBrowser(NULL)
 {
+	debugLog.open("G:\\logs\\axanx.log", ios_base::out);
 }
 
 CControlDialog::~CControlDialog()
 {
+	debugLog.close();
 	if (mBrowser != NULL) {
 		mBrowser->Release();
 	}
@@ -31,6 +33,8 @@
 
 BEGIN_MESSAGE_MAP(CControlDialog, CDialog)
 	ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
+	ON_BN_CLICKED(IDC_BUTTON2, OnBnClickedButton2)
+	ON_BN_CLICKED(IDC_BUTTON3, OnBnClickedButton3)
 END_MESSAGE_MAP()
 
 
@@ -39,11 +43,24 @@
 void CControlDialog::OnBnClickedButton1()
 {
 	//PLay button.
-	// TODO: Add your control notification handler code here
+	debugLog<<"Play button pushed"<<endl;
 
 }
 
 void CControlDialog::setBrowser(IWebBrowser2* inBrowser) {
+	debugLog<<"Setting browser instance to "<<(int)inBrowser<<endl;
 	mBrowser = inBrowser;
 
 }
+
+void CControlDialog::OnBnClickedButton2()
+{
+	//Pause button
+	debugLog<<"Pause button pushed..."<<endl;
+}
+
+void CControlDialog::OnBnClickedButton3()
+{
+	//Stop button
+	debugLog<<"Stop button pushed.."<<endl;
+}

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h	2004-10-24 07:18:05 UTC (rev 8075)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h	2004-10-24 07:29:23 UTC (rev 8076)
@@ -1,6 +1,7 @@
 #pragma once
 
-
+#include <fstream>
+using namespace std;
 // CControlDialog dialog
 
 class CControlDialog : public CDialog
@@ -17,9 +18,12 @@
 protected:
 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
 	IWebBrowser2* mBrowser;
+	fstream debugLog;
 	DECLARE_MESSAGE_MAP()
 public:
 	afx_msg void OnBnClickedButton1();
 
 	void setBrowser(IWebBrowser2* inBrowser);
+	afx_msg void OnBnClickedButton2();
+	afx_msg void OnBnClickedButton3();
 };

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h	2004-10-24 07:18:05 UTC (rev 8075)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h	2004-10-24 07:29:23 UTC (rev 8076)
@@ -11,6 +11,8 @@
 #define IDD_PROPPAGE_AXANXOGGPLAYER     200
 #define IDD_DIALOG1                     201
 #define IDC_BUTTON1                     201
+#define IDC_BUTTON2                     202
+#define IDC_BUTTON3                     203
 
 // Next default values for new objects
 // 
@@ -18,7 +20,7 @@
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        202
 #define _APS_NEXT_COMMAND_VALUE         32768
-#define _APS_NEXT_CONTROL_VALUE         202
+#define _APS_NEXT_CONTROL_VALUE         204
 #define _APS_NEXT_SYMED_VALUE           101
 #endif
 #endif

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.aps
===================================================================
(Binary files differ)

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc	2004-10-24 07:18:05 UTC (rev 8075)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc	2004-10-24 07:29:23 UTC (rev 8076)
@@ -133,7 +133,9 @@
 FONT 8, "MS Shell Dlg", 400, 0, 0x1
 BEGIN
     LTEXT           "Static",IDC_STATIC,131,107,80,18
-    PUSHBUTTON      "Play",IDC_BUTTON1,7,290,59,18
+    PUSHBUTTON      "Play",IDC_BUTTON1,7,7,59,18
+    PUSHBUTTON      "Pause",IDC_BUTTON2,77,7,53,19
+    PUSHBUTTON      "Stop",IDC_BUTTON3,145,7,60,19
 END
 
 



More information about the commits mailing list