fzeet 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/examples/Dialog/Dialog.rbw +2 -2
  2. data/examples/Raw/UIRibbon/Command.dll +0 -0
  3. data/examples/Raw/UIRibbon/Command.rb +17 -11
  4. data/examples/Raw/UIRibbon/Command.xml +6 -0
  5. data/examples/Raw/UIRibbon/Minimal.dll +0 -0
  6. data/examples/Raw/UIRibbon/Minimal.rb +10 -6
  7. data/examples/Raw/UIRibbon/Minimal.xml +4 -0
  8. data/examples/UIRibbon/Color.rbw +12 -0
  9. data/examples/UIRibbon/Command.dll +0 -0
  10. data/examples/UIRibbon/Command.rb +17 -11
  11. data/examples/UIRibbon/Command.xml +6 -0
  12. data/examples/UIRibbon/ContextPopup.dll +0 -0
  13. data/examples/UIRibbon/ContextPopup.rb +23 -0
  14. data/examples/UIRibbon/ContextPopup.rbw +12 -0
  15. data/examples/UIRibbon/ContextPopup.xml +83 -0
  16. data/examples/UIRibbon/Minimal.dll +0 -0
  17. data/examples/UIRibbon/Minimal.rb +10 -6
  18. data/examples/UIRibbon/Minimal.xml +4 -0
  19. data/examples/Version.rbw +5 -0
  20. data/examples/res/go-next-big.bmp +0 -0
  21. data/examples/res/go-previous-big.bmp +0 -0
  22. data/lib/fzeet/Accelerator.rb +23 -3
  23. data/lib/fzeet/Application.rb +1 -1
  24. data/lib/fzeet/{common.rb → Common.rb} +2 -50
  25. data/lib/fzeet/{ControlButton.rb → Control/Button.rb} +1 -1
  26. data/lib/fzeet/{ControlCommon.rb → Control/Common.rb} +1 -1
  27. data/lib/fzeet/Control.rb +1 -1
  28. data/lib/fzeet/Dialog/Common.rb +5 -0
  29. data/lib/fzeet/{DialogFileDialog.rb → Dialog/FileDialog.rb} +1 -43
  30. data/lib/fzeet/Dialog/FolderDialog.rb +45 -0
  31. data/lib/fzeet/Dialog.rb +2 -1
  32. data/lib/fzeet/Menu.rb +77 -77
  33. data/lib/fzeet/UIRibbon.rb +86 -1
  34. data/lib/fzeet/{WindowCommon.rb → Window/Common.rb} +52 -2
  35. data/lib/fzeet/{WindowDialog.rb → Window/Dialog.rb} +6 -6
  36. data/lib/fzeet/{WindowWindow.rb → Window/Window.rb} +1 -1
  37. data/lib/fzeet/{WindowMethods.rb → Window/WindowMethods.rb} +49 -43
  38. data/lib/fzeet/Window.rb +2 -2
  39. data/lib/fzeet/windows/com.rb +97 -15
  40. data/lib/fzeet/windows/{comctlbutton.rb → comctl/Button.rb} +1 -1
  41. data/lib/fzeet/windows/{comctlcommon.rb → comctl/Common.rb} +1 -1
  42. data/lib/fzeet/windows/comctl.rb +1 -1
  43. data/lib/fzeet/windows/{comdlgcommon.rb → comdlg/Common.rb} +1 -1
  44. data/lib/fzeet/windows/{comdlgofn.rb → comdlg/FileDialog.rb} +1 -1
  45. data/lib/fzeet/windows/comdlg.rb +1 -1
  46. data/lib/fzeet/windows/common.rb +80 -5
  47. data/lib/fzeet/windows/gdi.rb +30 -0
  48. data/lib/fzeet/windows/kernel.rb +74 -21
  49. data/lib/fzeet/windows/ole.rb +60 -0
  50. data/lib/fzeet/windows/propsys.rb +40 -0
  51. data/lib/fzeet/windows/shell/Common.rb +10 -0
  52. data/lib/fzeet/windows/shell/FolderDialog.rb +39 -0
  53. data/lib/fzeet/windows/shell.rb +1 -43
  54. data/lib/fzeet/windows/uiribbon.rb +275 -18
  55. data/lib/fzeet/windows/user/Accelerator.rb +182 -0
  56. data/lib/fzeet/windows/user/Common.rb +33 -0
  57. data/lib/fzeet/windows/{userctlbutton.rb → user/Control/Button.rb} +1 -1
  58. data/lib/fzeet/windows/{userctlcommon.rb → user/Control/Common.rb} +1 -1
  59. data/lib/fzeet/windows/user/Control.rb +1 -0
  60. data/lib/fzeet/windows/user/Menu.rb +115 -0
  61. data/lib/fzeet/windows/{usermsg.rb → user/Message.rb} +1 -3
  62. data/lib/fzeet/windows/{usermbox.rb → user/MessageBox.rb} +1 -5
  63. data/lib/fzeet/windows/user/SystemParametersInfo.rb +244 -0
  64. data/lib/fzeet/windows/{userwnd.rb → user/Window.rb} +70 -38
  65. data/lib/fzeet/windows/user.rb +7 -7
  66. data/lib/fzeet/windows.rb +2 -73
  67. data/lib/fzeet.rb +1 -1
  68. metadata +39 -27
  69. data/lib/fzeet/DialogCommon.rb +0 -5
  70. data/lib/fzeet/windows/usercommon.rb +0 -8
  71. data/lib/fzeet/windows/userctl.rb +0 -1
  72. data/lib/fzeet/windows/userkbd.rb +0 -20
  73. data/lib/fzeet/windows/usermenu.rb +0 -50
  74. data/lib/fzeet/windows/userspi.rb +0 -29
  75. /data/examples/Dialog/{FileDialog.rbw → FileAndFolderDialog.rbw} +0 -0
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Radoslav Peev
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-24 00:00:00 +03:00
17
+ date: 2010-08-27 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -43,52 +43,58 @@ extra_rdoc_files: []
43
43
  files:
44
44
  - lib/fzeet/windows/com.rb
45
45
  - lib/fzeet/windows/comctl.rb
46
- - lib/fzeet/windows/comctlbutton.rb
47
- - lib/fzeet/windows/comctlcommon.rb
48
46
  - lib/fzeet/windows/comdlg.rb
49
- - lib/fzeet/windows/comdlgcommon.rb
50
- - lib/fzeet/windows/comdlgofn.rb
51
47
  - lib/fzeet/windows/common.rb
52
48
  - lib/fzeet/windows/gdi.rb
53
49
  - lib/fzeet/windows/kernel.rb
54
50
  - lib/fzeet/windows/libc.rb
55
51
  - lib/fzeet/windows/ole.rb
52
+ - lib/fzeet/windows/propsys.rb
56
53
  - lib/fzeet/windows/shell.rb
57
54
  - lib/fzeet/windows/uiribbon.rb
58
55
  - lib/fzeet/windows/user.rb
59
- - lib/fzeet/windows/usercommon.rb
60
- - lib/fzeet/windows/userctl.rb
61
- - lib/fzeet/windows/userctlbutton.rb
62
- - lib/fzeet/windows/userctlcommon.rb
63
- - lib/fzeet/windows/userkbd.rb
64
- - lib/fzeet/windows/usermbox.rb
65
- - lib/fzeet/windows/usermenu.rb
66
- - lib/fzeet/windows/usermsg.rb
67
- - lib/fzeet/windows/userspi.rb
68
- - lib/fzeet/windows/userwnd.rb
56
+ - lib/fzeet/windows/user/Accelerator.rb
57
+ - lib/fzeet/windows/user/Common.rb
58
+ - lib/fzeet/windows/user/Control.rb
59
+ - lib/fzeet/windows/user/Menu.rb
60
+ - lib/fzeet/windows/user/Message.rb
61
+ - lib/fzeet/windows/user/MessageBox.rb
62
+ - lib/fzeet/windows/user/SystemParametersInfo.rb
63
+ - lib/fzeet/windows/user/Window.rb
64
+ - lib/fzeet/windows/user/Control/Button.rb
65
+ - lib/fzeet/windows/user/Control/Common.rb
66
+ - lib/fzeet/windows/comctl/Button.rb
67
+ - lib/fzeet/windows/comctl/Common.rb
68
+ - lib/fzeet/windows/comdlg/Common.rb
69
+ - lib/fzeet/windows/comdlg/FileDialog.rb
70
+ - lib/fzeet/windows/shell/Common.rb
71
+ - lib/fzeet/windows/shell/FolderDialog.rb
69
72
  - lib/fzeet/Accelerator.rb
70
73
  - lib/fzeet/Application.rb
71
- - lib/fzeet/common.rb
74
+ - lib/fzeet/Common.rb
72
75
  - lib/fzeet/Control.rb
73
- - lib/fzeet/ControlButton.rb
74
- - lib/fzeet/ControlCommon.rb
75
76
  - lib/fzeet/Dialog.rb
76
- - lib/fzeet/DialogCommon.rb
77
- - lib/fzeet/DialogFileDialog.rb
78
77
  - lib/fzeet/Menu.rb
79
78
  - lib/fzeet/UIRibbon.rb
80
79
  - lib/fzeet/Window.rb
81
- - lib/fzeet/WindowCommon.rb
82
- - lib/fzeet/WindowDialog.rb
83
- - lib/fzeet/WindowMethods.rb
84
80
  - lib/fzeet/windows.rb
85
- - lib/fzeet/WindowWindow.rb
81
+ - lib/fzeet/Window/Common.rb
82
+ - lib/fzeet/Window/Dialog.rb
83
+ - lib/fzeet/Window/Window.rb
84
+ - lib/fzeet/Window/WindowMethods.rb
85
+ - lib/fzeet/Control/Button.rb
86
+ - lib/fzeet/Control/Common.rb
87
+ - lib/fzeet/Dialog/Common.rb
88
+ - lib/fzeet/Dialog/FileDialog.rb
89
+ - lib/fzeet/Dialog/FolderDialog.rb
86
90
  - lib/fzeet.rb
87
91
  - examples/res/edit-copy.bmp
88
92
  - examples/res/edit-cut.bmp
89
93
  - examples/res/edit-paste.bmp
94
+ - examples/res/go-next-big.bmp
90
95
  - examples/res/go-next-small.bmp
91
96
  - examples/res/go-next.bmp
97
+ - examples/res/go-previous-big.bmp
92
98
  - examples/res/go-previous-small.bmp
93
99
  - examples/res/go-previous.bmp
94
100
  - examples/Raw/Command.rbw
@@ -116,21 +122,27 @@ files:
116
122
  - examples/MinimalOpts.rbw
117
123
  - examples/Scribble.rbw
118
124
  - examples/Style.rbw
125
+ - examples/Version.rbw
119
126
  - examples/Menu/ContextMenu.rbw
120
127
  - examples/Menu/Menu.rbw
121
128
  - examples/Menu/MenuPARGB32.rbw
122
129
  - examples/Control/Button.rbw
123
130
  - examples/Dialog/Dialog.rbw
124
131
  - examples/Dialog/DialogApplication.rbw
125
- - examples/Dialog/FileDialog.rbw
132
+ - examples/Dialog/FileAndFolderDialog.rbw
133
+ - examples/UIRibbon/Color.rbw
126
134
  - examples/UIRibbon/Command.rbw
135
+ - examples/UIRibbon/ContextPopup.rbw
127
136
  - examples/UIRibbon/Minimal.rbw
128
137
  - examples/UIRibbon/Viewer.rbw
129
138
  - examples/UIRibbon/Command.xml
139
+ - examples/UIRibbon/ContextPopup.xml
130
140
  - examples/UIRibbon/Minimal.xml
131
141
  - examples/UIRibbon/Command.rb
142
+ - examples/UIRibbon/ContextPopup.rb
132
143
  - examples/UIRibbon/Minimal.rb
133
144
  - examples/UIRibbon/Command.dll
145
+ - examples/UIRibbon/ContextPopup.dll
134
146
  - examples/UIRibbon/Minimal.dll
135
147
  - LICENSE
136
148
  has_rdoc: true
@@ -1,5 +0,0 @@
1
- require_relative 'WindowDialog'
2
-
3
- module Fzeet
4
-
5
- end
@@ -1,8 +0,0 @@
1
- require_relative 'common'
2
-
3
- module Fzeet
4
- module Windows
5
- ffi_lib 'user32'
6
- ffi_convention :stdcall
7
- end
8
- end
@@ -1 +0,0 @@
1
- require_relative 'userctlbutton'
@@ -1,20 +0,0 @@
1
- require_relative 'usercommon'
2
-
3
- module Fzeet
4
- module Windows
5
- FVIRTKEY = 1
6
- FSHIFT = 0x04
7
- FCONTROL = 0x08
8
- FALT = 0x10
9
-
10
- class ACCEL < FFI::Struct
11
- layout \
12
- :fVirt, :uchar,
13
- :key, :ushort,
14
- :cmd, :ushort
15
- end
16
-
17
- attach_function :CreateAcceleratorTable, :CreateAcceleratorTableA, [:pointer, :int], :pointer
18
- attach_function :DestroyAcceleratorTable, [:pointer], :int
19
- end
20
- end
@@ -1,50 +0,0 @@
1
- require_relative 'usercommon'
2
-
3
- module Fzeet
4
- module Windows
5
- attach_function :CreateMenu, [], :pointer
6
- attach_function :CreatePopupMenu, [], :pointer
7
- attach_function :DestroyMenu, [:pointer], :int
8
-
9
- MF_SEPARATOR = 0x00000800
10
- MF_ENABLED = 0x00000000
11
- MF_GRAYED = 0x00000001
12
- MF_UNCHECKED = 0x00000000
13
- MF_CHECKED = 0x00000008
14
- MF_USECHECKBITMAPS = 0x00000200
15
- MF_STRING = 0x00000000
16
- MF_POPUP = 0x00000010
17
- MF_RIGHTJUSTIFY = 0x00004000
18
-
19
- MFT_RADIOCHECK = 0x00000200
20
-
21
- attach_function :AppendMenu, :AppendMenuA, [:pointer, :uint, :uint, :string], :int
22
- attach_function :GetMenuState, [:pointer, :uint, :uint], :uint
23
- attach_function :EnableMenuItem, [:pointer, :uint, :uint], :int
24
- attach_function :CheckMenuItem, [:pointer, :uint, :uint], :ulong
25
- attach_function :CheckMenuRadioItem, [:pointer, :uint, :uint, :uint, :uint], :int
26
-
27
- MIIM_BITMAP = 0x00000080
28
-
29
- class MENUITEMINFO < FFI::Struct
30
- layout \
31
- :cbSize, :uint,
32
- :fMask, :uint,
33
- :fType, :uint,
34
- :fState, :uint,
35
- :wID, :uint,
36
- :hSubMenu, :pointer,
37
- :hbmpChecked, :pointer,
38
- :hbmpUnchecked, :pointer,
39
- :dwItemData, :ulong,
40
- :dwTypeData, :pointer,
41
- :cch, :uint,
42
- :hbmpItem, :pointer
43
- end
44
-
45
- attach_function :GetMenuItemInfo, :GetMenuItemInfoA, [:pointer, :uint, :int, :pointer], :int
46
- attach_function :SetMenuItemInfo, :SetMenuItemInfoA, [:pointer, :uint, :int, :pointer], :int
47
-
48
- attach_function :TrackPopupMenu, [:pointer, :uint, :int, :int, :int, :pointer, :pointer], :int
49
- end
50
- end
@@ -1,29 +0,0 @@
1
- require_relative 'usercommon'
2
-
3
- module Fzeet
4
- module Windows
5
- SPI_GETNONCLIENTMETRICS = 0x0029
6
-
7
- class NONCLIENTMETRICS < FFI::Struct
8
- layout \
9
- :cbSize, :uint,
10
- :iBorderWidth, :int,
11
- :iScrollWidth, :int,
12
- :iScrollHeight, :int,
13
- :iCaptionWidth, :int,
14
- :iCaptionHeight, :int,
15
- :lfCaptionFont, LOGFONT,
16
- :iSmCaptionWidth, :int,
17
- :iSmCaptionHeight, :int,
18
- :lfSmCaptionFont, LOGFONT,
19
- :iMenuWidth, :int,
20
- :iMenuHeight, :int,
21
- :lfMenuFont, LOGFONT,
22
- :lfStatusFont, LOGFONT,
23
- :lfMessageFont, LOGFONT,
24
- :iPaddedBorderWidth, :int
25
- end
26
-
27
- attach_function :SystemParametersInfo, :SystemParametersInfoA, [:uint, :uint, :pointer, :uint], :int
28
- end
29
- end