]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - threebar.h
2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
[cygwin-apps/setup.git] / threebar.h
index 186bb949b05f2e820534f36fc1a1f219552ac97d..84212485664626f59cce7329ec0ced64585accec 100644 (file)
@@ -1,81 +1,81 @@
-#ifndef CINSTALL_THREEBAR_H\r
-#define CINSTALL_THREEBAR_H\r
-\r
-/*\r
- * Copyright (c) 2001, Gary R. Van Sickle.\r
- *\r
- *     This program is free software; you can redistribute it and/or modify\r
- *     it under the terms of the GNU General Public License as published by\r
- *     the Free Software Foundation; either version 2 of the License, or\r
- *     (at your option) any later version.\r
- *\r
- *     A copy of the GNU General Public License can be found at\r
- *     http://www.gnu.org/\r
- *\r
- * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>\r
- *\r
- */\r
-\r
-// This is the header for the ThreeBarProgressPage class.  It is a fairly generic\r
-// progress indicator property page with three progress bars.\r
-\r
-\r
-#include "win32.h"\r
-#include "proppage.h"\r
-\r
-#define WM_APP_START_DOWNLOAD              WM_APP+0\r
-#define WM_APP_DOWNLOAD_THREAD_COMPLETE    WM_APP+1\r
-#define WM_APP_START_INSTALL               WM_APP+2\r
-#define WM_APP_INSTALL_THREAD_COMPLETE     WM_APP+3\r
-#define WM_APP_START_SITE_INFO_DOWNLOAD    WM_APP+4\r
-#define WM_APP_SITE_INFO_DOWNLOAD_COMPLETE WM_APP+5\r
-#define WM_APP_START_SETUP_INI_DOWNLOAD    WM_APP+6\r
-#define WM_APP_SETUP_INI_DOWNLOAD_COMPLETE WM_APP+7\r
-\r
-class ThreeBarProgressPage:public PropertyPage\r
-{\r
-  HWND ins_dialog;\r
-  HWND ins_action;\r
-  HWND ins_pkgname;\r
-  HWND ins_filename;\r
-  HWND ins_pprogress;\r
-  HWND ins_iprogress;\r
-  HWND ins_diskfull;\r
-  HWND ins_bl_package;\r
-  HWND ins_bl_total;\r
-  HWND ins_bl_disk;\r
-\r
-  int task;\r
-\r
-  void EnableSingleBar (bool enable = true);\r
-\r
-public:\r
-    ThreeBarProgressPage ()\r
-  {\r
-  };\r
-  virtual ~ ThreeBarProgressPage ()\r
-  {\r
-  };\r
-\r
-  bool Create ();\r
-\r
-  virtual void OnInit ();\r
-  virtual void OnActivate ();\r
-  virtual bool OnMessageApp (UINT uMsg, WPARAM wParam, LPARAM lParam);\r
-\r
-  void SetText1 (const TCHAR * t);\r
-  void SetText2 (const TCHAR * t);\r
-  void SetText3 (const TCHAR * t);\r
-\r
-  void SetBar1 (long progress, long max = 100);\r
-  void SetBar2 (long progress, long max = 100);\r
-  void SetBar3 (long progress, long max = 100);\r
-\r
-  void SetActivateTask (int t)\r
-  {\r
-    task = t;\r
-  };\r
-};\r
-\r
-\r
-#endif // CINSTALL_THREEBAR_H\r
+#ifndef CINSTALL_THREEBAR_H
+#define CINSTALL_THREEBAR_H
+
+/*
+ * Copyright (c) 2001, Gary R. Van Sickle.
+ *
+ *     This program is free software; you can redistribute it and/or modify
+ *     it under the terms of the GNU General Public License as published by
+ *     the Free Software Foundation; either version 2 of the License, or
+ *     (at your option) any later version.
+ *
+ *     A copy of the GNU General Public License can be found at
+ *     http://www.gnu.org/
+ *
+ * Written by Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
+ *
+ */
+
+// This is the header for the ThreeBarProgressPage class.  It is a fairly generic
+// progress indicator property page with three progress bars.
+
+
+#include "win32.h"
+#include "proppage.h"
+
+#define WM_APP_START_DOWNLOAD              WM_APP+0
+#define WM_APP_DOWNLOAD_THREAD_COMPLETE    WM_APP+1
+#define WM_APP_START_INSTALL               WM_APP+2
+#define WM_APP_INSTALL_THREAD_COMPLETE     WM_APP+3
+#define WM_APP_START_SITE_INFO_DOWNLOAD    WM_APP+4
+#define WM_APP_SITE_INFO_DOWNLOAD_COMPLETE WM_APP+5
+#define WM_APP_START_SETUP_INI_DOWNLOAD    WM_APP+6
+#define WM_APP_SETUP_INI_DOWNLOAD_COMPLETE WM_APP+7
+
+class ThreeBarProgressPage:public PropertyPage
+{
+  HWND ins_dialog;
+  HWND ins_action;
+  HWND ins_pkgname;
+  HWND ins_filename;
+  HWND ins_pprogress;
+  HWND ins_iprogress;
+  HWND ins_diskfull;
+  HWND ins_bl_package;
+  HWND ins_bl_total;
+  HWND ins_bl_disk;
+
+  int task;
+
+  void EnableSingleBar (bool enable = true);
+
+public:
+    ThreeBarProgressPage ()
+  {
+  };
+  virtual ~ ThreeBarProgressPage ()
+  {
+  };
+
+  bool Create ();
+
+  virtual void OnInit ();
+  virtual void OnActivate ();
+  virtual bool OnMessageApp (UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+  void SetText1 (const TCHAR * t);
+  void SetText2 (const TCHAR * t);
+  void SetText3 (const TCHAR * t);
+
+  void SetBar1 (long progress, long max = 100);
+  void SetBar2 (long progress, long max = 100);
+  void SetBar3 (long progress, long max = 100);
+
+  void SetActivateTask (int t)
+  {
+    task = t;
+  };
+};
+
+
+#endif // CINSTALL_THREEBAR_H
This page took 0.027654 seconds and 5 git commands to generate.