MainUnitC.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. (* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1 or LGPL 2.1 with linking exception
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * Alternatively, the contents of this file may be used under the terms of the
  16. * Free Pascal modified version of the GNU Lesser General Public License
  17. * Version 2.1 (the "FPC modified LGPL License"), in which case the provisions
  18. * of this license are applicable instead of those above.
  19. * Please see the file LICENSE.txt for additional information concerning this
  20. * license.
  21. *
  22. * The Original Code is Image View Layers Example
  23. *
  24. * The Initial Developer of the Original Code is
  25. * Alex A. Denisov
  26. *
  27. * Portions created by the Initial Developer are Copyright (C) 2000-2005
  28. * the Initial Developer. All Rights Reserved.
  29. *
  30. * Contributor(s):
  31. * Andre Beckedorf <[email protected]>
  32. * Christian-W. Budde <[email protected]>
  33. *
  34. * ***** END LICENSE BLOCK ***** *)
  35. */
  36. //---------------------------------------------------------------------------
  37. #ifndef MainUnitCH
  38. #define MainUnitCH
  39. //---------------------------------------------------------------------------
  40. #include <System.Classes.hpp>
  41. #include <Vcl.Controls.hpp>
  42. #include <Vcl.StdCtrls.hpp>
  43. #include <Vcl.Forms.hpp>
  44. #include "GR32_Image.hpp"
  45. #include "GR32_RangeBars.hpp"
  46. #include <Vcl.Dialogs.hpp>
  47. #include <Vcl.ExtCtrls.hpp>
  48. #include <Vcl.ExtDlgs.hpp>
  49. #include <Vcl.Menus.hpp>
  50. //---------------------------------------------------------------------------
  51. class TForm4 : public TForm
  52. {
  53. __published: // IDE-managed Components
  54. TImgView32 *ImgView;
  55. TPanel *PnlControl;
  56. TPanel *PnlImage;
  57. TLabel *LblScale;
  58. TComboBox *ScaleCombo;
  59. TPanel *PnlImageHeader;
  60. TCheckBox *CbxImageInterpolate;
  61. TCheckBox *CbxOptRedraw;
  62. TPanel *PnlBitmapLayer;
  63. TLabel *LblOpacity;
  64. TPanel *PnlBitmapLayerHeader;
  65. TGaugeBar *GbrLayerOpacity;
  66. TCheckBox *CbxLayerInterpolate;
  67. TButton *BtnLayerRescale;
  68. TButton *BtnLayerResetScale;
  69. TCheckBox *CbxCropped;
  70. TPanel *PnlMagnification;
  71. TLabel *LblMagifierOpacity;
  72. TLabel *LblMagnification;
  73. TLabel *LblRotation;
  74. TPanel *PnlMagnificationHeader;
  75. TGaugeBar *GbrMagnOpacity;
  76. TGaugeBar *GbrMagnMagnification;
  77. TGaugeBar *GbrMagnRotation;
  78. TCheckBox *CbxMagnInterpolate;
  79. TPanel *PnlButtonMockup;
  80. TLabel *LblBorderRadius;
  81. TLabel *LblBorderWidth;
  82. TPanel *PnlButtonMockupHeader;
  83. TGaugeBar *GbrBorderRadius;
  84. TGaugeBar *GbrBorderWidth;
  85. TMainMenu *MainMenu;
  86. TMenuItem *MnuFile;
  87. TMenuItem *MnuFileNew;
  88. TMenuItem *MnuFileOpen;
  89. TMenuItem *N6;
  90. TMenuItem *MnuPrint;
  91. TMenuItem *MnuLayers;
  92. TMenuItem *MnuNewBitmapLayer;
  93. TMenuItem *MnuNewBitmapRGBA;
  94. TMenuItem *MnuNewCustomLayer;
  95. TMenuItem *MnuSimpleDrawing;
  96. TMenuItem *MnuButtonMockup;
  97. TMenuItem *MnuMagnifier;
  98. TMenuItem *N4;
  99. TMenuItem *MnuFlatten;
  100. TMenuItem *MimArrange;
  101. TMenuItem *MnuBringFront;
  102. TMenuItem *MnuSendBack;
  103. TMenuItem *N1;
  104. TMenuItem *MnuLevelUp;
  105. TMenuItem *MnuLevelDown;
  106. TMenuItem *N7;
  107. TMenuItem *MnuScaled;
  108. TMenuItem *N3;
  109. TMenuItem *MnuFlipHorz;
  110. TMenuItem *MnuFlipVert;
  111. TMenuItem *N5;
  112. TMenuItem *MnuRotate90;
  113. TMenuItem *MnuRotate180;
  114. TMenuItem *MnuRotate270;
  115. TMenuItem *N2;
  116. TMenuItem *MnuDelete;
  117. TOpenPictureDialog *OpenPictureDialog;
  118. TSaveDialog *SaveDialog;
  119. private: // User declarations
  120. public: // User declarations
  121. __fastcall TForm4(TComponent* Owner);
  122. };
  123. //---------------------------------------------------------------------------
  124. extern PACKAGE TForm4 *Form4;
  125. //---------------------------------------------------------------------------
  126. #endif