ToolBar.cs 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. //
  2. // System.Windows.Forms.ToolBar
  3. //
  4. // Author:
  5. // stubbed out by Jackson Harper ([email protected])
  6. // Dennis Hayes ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc
  9. //
  10. using System.Drawing;
  11. using System.Collections;
  12. namespace System.Windows.Forms {
  13. // <summary>
  14. // This is only a template. Nothing is implemented yet.
  15. //
  16. // </summary>
  17. public class ToolBar : Control {
  18. //
  19. // --- Public Constructors
  20. //
  21. [MonoTODO]
  22. public ToolBar()
  23. {
  24. throw new NotImplementedException ();
  25. }
  26. //
  27. // --- Public Properties
  28. //
  29. [MonoTODO]
  30. public ToolBarAppearance Appearance {
  31. get {
  32. throw new NotImplementedException ();
  33. }
  34. set {
  35. throw new NotImplementedException ();
  36. }
  37. }
  38. [MonoTODO]
  39. public bool AutoSize {
  40. get {
  41. throw new NotImplementedException ();
  42. }
  43. set {
  44. throw new NotImplementedException ();
  45. }
  46. }
  47. [MonoTODO]
  48. public override Color BackColor {
  49. get {
  50. throw new NotImplementedException ();
  51. }
  52. set {
  53. throw new NotImplementedException ();
  54. }
  55. }
  56. [MonoTODO]
  57. public override Image BackgroundImage{
  58. get {
  59. throw new NotImplementedException ();
  60. }
  61. set {
  62. throw new NotImplementedException ();
  63. }
  64. }
  65. [MonoTODO]
  66. public BorderStyle BorderStyle{
  67. get {
  68. throw new NotImplementedException ();
  69. }
  70. set {
  71. throw new NotImplementedException ();
  72. }
  73. }
  74. [MonoTODO]
  75. public ToolBar.ToolBarButtonCollection Buttons {
  76. get {
  77. throw new NotImplementedException ();
  78. }
  79. }
  80. [MonoTODO]
  81. public Size ButtonSize {
  82. get {
  83. throw new NotImplementedException ();
  84. }
  85. set {
  86. throw new NotImplementedException ();
  87. }
  88. }
  89. [MonoTODO]
  90. public bool Divider {
  91. get {
  92. throw new NotImplementedException ();
  93. }
  94. set {
  95. throw new NotImplementedException ();
  96. }
  97. }
  98. [MonoTODO]
  99. public override DockStyle Dock{
  100. get {
  101. throw new NotImplementedException ();
  102. }
  103. set {
  104. throw new NotImplementedException ();
  105. }
  106. }
  107. [MonoTODO]
  108. public bool DropDownArrows {
  109. get {
  110. throw new NotImplementedException ();
  111. }
  112. set {
  113. throw new NotImplementedException ();
  114. }
  115. }
  116. [MonoTODO]
  117. public override Color ForeColor {
  118. get {
  119. throw new NotImplementedException ();
  120. }
  121. set {
  122. throw new NotImplementedException ();
  123. }
  124. }
  125. [MonoTODO]
  126. public ImageList ImageList {
  127. get {
  128. throw new NotImplementedException ();
  129. }
  130. set {
  131. throw new NotImplementedException ();
  132. }
  133. }
  134. [MonoTODO]
  135. public Size ImageSize {
  136. get {
  137. throw new NotImplementedException ();
  138. }
  139. }
  140. [MonoTODO]
  141. public new ImeMode ImeMode {
  142. get {
  143. throw new NotImplementedException ();
  144. }
  145. set {
  146. throw new NotImplementedException ();
  147. }
  148. }
  149. [MonoTODO]
  150. public override RightToLeft RightToLeft {
  151. get {
  152. throw new NotImplementedException ();
  153. }
  154. set {
  155. throw new NotImplementedException ();
  156. }
  157. }
  158. [MonoTODO]
  159. public bool ShowToolTips {
  160. get {
  161. throw new NotImplementedException ();
  162. }
  163. set {
  164. throw new NotImplementedException ();
  165. }
  166. }
  167. [MonoTODO]
  168. public override string Text {
  169. get {
  170. throw new NotImplementedException ();
  171. }
  172. set {
  173. throw new NotImplementedException ();
  174. }
  175. }
  176. [MonoTODO]
  177. public ToolBarTextAlign TextAlign {
  178. get {
  179. throw new NotImplementedException ();
  180. }
  181. set {
  182. throw new NotImplementedException ();
  183. }
  184. }
  185. [MonoTODO]
  186. public bool Wrappable{
  187. get {
  188. throw new NotImplementedException ();
  189. }
  190. set {
  191. throw new NotImplementedException ();
  192. }
  193. }
  194. // --- Public Methods
  195. [MonoTODO]
  196. public override string ToString()
  197. {
  198. throw new NotImplementedException ();
  199. }
  200. // --- Public Events
  201. [MonoTODO]
  202. public event ToolBarButtonClickEventHandler ButtonClick;
  203. [MonoTODO]
  204. public event ToolBarButtonClickEventHandler ButtonDropDown;
  205. //
  206. // --- Protected Properties
  207. //
  208. [MonoTODO]
  209. protected override CreateParams CreateParams {
  210. get {
  211. throw new NotImplementedException ();
  212. }
  213. }
  214. [MonoTODO]
  215. protected override ImeMode DefaultImeMode {
  216. get {
  217. throw new NotImplementedException ();
  218. }
  219. }
  220. [MonoTODO]
  221. protected override Size DefaultSize {
  222. get {
  223. throw new NotImplementedException ();
  224. }
  225. }
  226. // --- Protected Methods
  227. [MonoTODO]
  228. protected override void CreateHandle()
  229. {
  230. throw new NotImplementedException ();
  231. }
  232. //inherited
  233. //protected override void Dispose(bool disposing)
  234. //{
  235. // throw new NotImplementedException ();
  236. //}
  237. [MonoTODO]
  238. protected virtual void OnButtonClick(ToolBarButtonClickEventArgs e)
  239. {
  240. throw new NotImplementedException ();
  241. }
  242. [MonoTODO]
  243. protected virtual void OnButtonDropDown(ToolBarButtonClickEventArgs e)
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. [MonoTODO]
  248. protected override void OnFontChanged(EventArgs e)
  249. {
  250. throw new NotImplementedException ();
  251. }
  252. [MonoTODO]
  253. protected override void OnHandleCreated(EventArgs e)
  254. {
  255. throw new NotImplementedException ();
  256. }
  257. [MonoTODO]
  258. protected override void OnResize(EventArgs e)
  259. {
  260. throw new NotImplementedException ();
  261. }
  262. [MonoTODO]
  263. protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
  264. {
  265. throw new NotImplementedException ();
  266. }
  267. [MonoTODO]
  268. protected override void WndProc(ref Message m)
  269. {
  270. throw new NotImplementedException ();
  271. }
  272. public class ToolBarButtonCollection : IList, ICollection, IEnumerable {
  273. //
  274. // --- Public Constructor
  275. //
  276. [MonoTODO]
  277. public ToolBarButtonCollection(ToolBar owner)
  278. {
  279. throw new NotImplementedException ();
  280. }
  281. //
  282. // --- Public Properties
  283. //
  284. [MonoTODO]
  285. public int Count {
  286. get {
  287. throw new NotImplementedException ();
  288. }
  289. }
  290. [MonoTODO]
  291. public bool IsReadOnly {
  292. get {
  293. throw new NotImplementedException ();
  294. }
  295. }
  296. [MonoTODO]
  297. public virtual ToolBarButton this[int index] {
  298. get {
  299. throw new NotImplementedException ();
  300. }
  301. set {
  302. throw new NotImplementedException ();
  303. }
  304. }
  305. //
  306. // --- Public Methods
  307. //
  308. [MonoTODO]
  309. public int Add(string text)
  310. {
  311. throw new NotImplementedException ();
  312. }
  313. [MonoTODO]
  314. public int Add(ToolBarButton button)
  315. {
  316. throw new NotImplementedException ();
  317. }
  318. [MonoTODO]
  319. public void AddRange(ToolBarButton[] buttons)
  320. {
  321. throw new NotImplementedException ();
  322. }
  323. [MonoTODO]
  324. public void Clear()
  325. {
  326. throw new NotImplementedException ();
  327. }
  328. [MonoTODO]
  329. public bool Contains(ToolBarButton button)
  330. {
  331. throw new NotImplementedException ();
  332. }
  333. [MonoTODO]
  334. public IEnumerator GetEnumerator()
  335. {
  336. throw new NotImplementedException ();
  337. }
  338. [MonoTODO]
  339. public int IndexOf(ToolBarButton button)
  340. {
  341. throw new NotImplementedException ();
  342. }
  343. [MonoTODO]
  344. public void Insert(int index, ToolBarButton button)
  345. {
  346. throw new NotImplementedException ();
  347. }
  348. //[MonoTODO]
  349. //public void Insert(int index, ToolBarButton button) {
  350. // throw new NotImplementedException ();
  351. //}
  352. [MonoTODO]
  353. public void Remove(ToolBarButton button)
  354. {
  355. throw new NotImplementedException ();
  356. }
  357. [MonoTODO]
  358. public void RemoveAt(int index)
  359. {
  360. throw new NotImplementedException ();
  361. }
  362. /// <summary>
  363. /// IList Interface implmentation.
  364. /// </summary>
  365. bool IList.IsReadOnly{
  366. get{
  367. // We allow addition, removeal, and editing of items after creation of the list.
  368. return false;
  369. }
  370. }
  371. bool IList.IsFixedSize{
  372. get{
  373. // We allow addition and removeal of items after creation of the list.
  374. return false;
  375. }
  376. }
  377. //[MonoTODO]
  378. object IList.this[int index]{
  379. get{
  380. throw new NotImplementedException ();
  381. }
  382. set{
  383. throw new NotImplementedException ();
  384. }
  385. }
  386. [MonoTODO]
  387. void IList.Clear(){
  388. throw new NotImplementedException ();
  389. }
  390. [MonoTODO]
  391. int IList.Add( object value){
  392. throw new NotImplementedException ();
  393. }
  394. [MonoTODO]
  395. bool IList.Contains( object value){
  396. throw new NotImplementedException ();
  397. }
  398. [MonoTODO]
  399. int IList.IndexOf( object value){
  400. throw new NotImplementedException ();
  401. }
  402. [MonoTODO]
  403. void IList.Insert(int index, object value){
  404. throw new NotImplementedException ();
  405. }
  406. [MonoTODO]
  407. void IList.Remove( object value){
  408. throw new NotImplementedException ();
  409. }
  410. [MonoTODO]
  411. void IList.RemoveAt( int index){
  412. throw new NotImplementedException ();
  413. }
  414. // End of IList interface
  415. /// <summary>
  416. /// ICollection Interface implmentation.
  417. /// </summary>
  418. int ICollection.Count{
  419. get{
  420. throw new NotImplementedException ();
  421. }
  422. }
  423. bool ICollection.IsSynchronized{
  424. get{
  425. throw new NotImplementedException ();
  426. }
  427. }
  428. object ICollection.SyncRoot{
  429. get{
  430. throw new NotImplementedException ();
  431. }
  432. }
  433. void ICollection.CopyTo(Array array, int index){
  434. throw new NotImplementedException ();
  435. }
  436. // End Of ICollection
  437. }
  438. }
  439. }