home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wvis0626.zip / warpvision_20020626.zip / wvision.rc < prev   
Text File  |  2002-06-19  |  3KB  |  102 lines

  1. /*
  2.     OS/2 DIVE class library: resource file
  3.     Copyright (C) 1997 by Andrew Zabolotny <bit@eltech.ru>
  4.  
  5.     This library is free software; you can redistribute it and/or
  6.     modify it under the terms of the GNU Library General Public
  7.     License as published by the Free Software Foundation; either
  8.     version 2 of the License, or (at your option) any later version.
  9.  
  10.     This library is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.     Library General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU Library General Public
  16.     License along with this library; if not, write to the Free
  17.     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19.  
  20. #include "os2.h"
  21. #include "libDIVE.h"
  22. #include "wvision.h"
  23.  
  24. // Define DIVE window menu
  25. MENU idDive DISCARDABLE
  26. BEGIN
  27.   SUBMENU "Window", idDive
  28.   BEGIN
  29.     SUBMENU "~Align", cmdAlign
  30.     BEGIN
  31.       MENUITEM "~Top", cmdAlignTop
  32.       MENUITEM "~Bottom", cmdAlignBottom
  33.       MENUITEM "~Left", cmdAlignLeft
  34.       MENUITEM "~Right", cmdAlignRight
  35.       MENUITEM SEPARATOR
  36.       MENUITEM "~Center\tCtrl+Alt+`", cmdAlignCenter
  37.     END
  38.   END
  39. END
  40.  
  41. // Define an accelerator table for DIVE window
  42. ACCELTABLE idDive DISCARDABLE
  43. BEGIN
  44.   "1",      cmdSnap1to1,    ALT, CONTROL
  45.   "2",      cmdSnap2to1,    ALT, CONTROL
  46.   "3",      cmdSnap3to1,    ALT, CONTROL
  47.   "4",      cmdSnap4to1,    ALT, CONTROL
  48.   "`",      cmdAlignCenter, ALT, CONTROL
  49.   VK_HOME,  cmdFullScreen,  VIRTUALKEY, ALT
  50. END
  51.  
  52. MENU idDiveMenu DISCARDABLE
  53. BEGIN
  54.   MENUITEM "~Full screen"       , cmdFullScreen2
  55.   MENUITEM "~Keep aspect ratio" , cmdToggleAspect
  56.   MENUITEM "~Pause"             , cmdPause2
  57.   MENUITEM "Gamma Correction"   , cmdGamma
  58.  
  59.   SUBMENU "S~eek", -1
  60.   BEGIN
  61.      MENUITEM "Seek 10s forward"   , cmdSeek10sFwd
  62.      MENUITEM "Seek 60s forward"   , cmdSeek60sFwd
  63.      MENUITEM "Seek 10min forward" , cmdSeek60sFwd
  64.      MENUITEM "Seek 10s backward"  , cmdSeek10sBack
  65.      MENUITEM "Seek 60s backward"  , cmdSeek60sBack
  66.      MENUITEM "Seek 10min backward", cmdSeek60sBack
  67.   END
  68.  
  69.   SUBMENU "~Snap", -1
  70.   BEGIN
  71.     MENUITEM "Snap to\t~1:1", cmdSnap1to1
  72.     MENUITEM "Snap to\t~2:1", cmdSnap2to1
  73.     MENUITEM "Snap to\t~3:1", cmdSnap3to1
  74.     MENUITEM "Snap to\t~4:1", cmdSnap4to1
  75.   END
  76.  
  77.   SUBMENU "~Align", -1
  78.   BEGIN
  79.     MENUITEM "~Top"   , cmdAlignTop
  80.     MENUITEM "~Bottom", cmdAlignBottom
  81.     MENUITEM "~Left"  , cmdAlignLeft
  82.     MENUITEM "~Right" , cmdAlignRight
  83.     MENUITEM SEPARATOR
  84.     MENUITEM "~Center\tCtrl+Alt+`", cmdAlignCenter
  85.   END
  86.  
  87.   MENUITEM SEPARATOR
  88.   MENUITEM "~Close", cmdClose
  89. END
  90.  
  91. DLGTEMPLATE ID_SET_DLG
  92. BEGIN
  93.     DIALOG  "Gamma correction", ID_SET_DLG, 81, 58, 152, 53, WS_VISIBLE,
  94.             FCF_NOBYTEALIGN | FCF_DLGBORDER | FCF_TITLEBAR | FCF_SYSMENU | FCF_TASKLIST | FCF_ICON | FCF_NOMOVEWITHOWNER
  95.     BEGIN
  96.         SLIDER     ID_GAMMA, 6, 22, 140, 16, WS_GROUP
  97.                    CTLDATA 12, 0, 33, 0, 33, 0
  98.         PUSHBUTTON "~Close", ID_CLOSE, 59, 1, 40, 14
  99.     END
  100. END
  101.  
  102.