Main Page Alphabetical List Compound List File List Compound Members Related Pages

# MDIFrame.h

    00001
    00002 //----------------------------------------------------------------------------
    00003 //Borland C++Builder
    00004 //Copyright (c) 1987, 1998-2002 Borland International Inc. All Rights Reserved.
    00005 //----------------------------------------------------------------------------
    00006 //---------------------------------------------------------------------------
    00007
    00008 #ifndef MDIFrameH
    00009 #define MDIFrameH
    00010 //---------------------------------------------------------------------------
    00011 #include <Classes.hpp>
    00012 #include <Controls.hpp>
    00013 #include <StdCtrls.hpp>
    00014 #include <Forms.hpp>
    00015 #include <Menus.hpp>
    00016 #include <Dialogs.hpp>
    00017 #include <ExtCtrls.hpp>
    00018 #include <ComCtrls.hpp>
    00019 #include <ToolWin.hpp>
    00020 #include <ImgList.hpp>
    00021 #include <jpeg.hpp>
    00022 #include <fstream>
    00023 #include <fastmath.h>
    00024 using namespace std;
    00025 //---------------------------------------------------------------------------
    00034 class TFrameForm : public TForm
    00035 {
    00036 __published:    // IDE-managed Components
    00037         TMainMenu *MainMenu;
    00038         TMenuItem *File1;
    00039         TMenuItem *Open1;
    00040         TMenuItem *Save1;
    00041         TMenuItem *Exit1;
    00042         TMenuItem *Window1;
    00043         TMenuItem *Tile1;
    00044         TMenuItem *Cascade1;
    00045         TMenuItem *Arrangeicons1;
    00046         TOpenDialog *OpenFileDialog;
    00047         TMenuItem *Ansicht1;
    00048         TMenuItem *Slices;
    00049         TMenuItem *Average;
    00050         TMenuItem *FirstHit;
    00051         TMenuItem *Transparent;
    00052         TMenuItem *Close1;
    00053         TMenuItem *Saveas1;
    00054         TMenuItem *Print1;
    00055         TMenuItem *N2;
    00056         TMenuItem *N3;
    00057         TMenuItem *GradientSlices;
    00058     TMenuItem *MIP;
    00059         TMenuItem *Cuberille;
    00060         TMenuItem *N4;
    00061         TMenuItem *N5;
    00062         TMenuItem *N6;
    00063     TMenuItem *NPR;
    00064         TPrintDialog *PrintDialog;
    00065         TSaveDialog *SaveFileDialog;
    00066         TCoolBar *CoolBar;
    00067         TMenuItem *Help1;
    00068         TMenuItem *About1;
    00069         TImageList *ImageList1;
    00070         TPanel *Panel4;
    00071         TPanel *StatusMain;
    00072         TPanel *StatusMem;
    00073         TImage *Image1;
    00074         TPanel *Panel2;
    00075         TLabel *Label7;
    00076         TLabel *filename;
    00077         TLabel *Label11;
    00078         TLabel *dimensions;
    00079         TPanel *StatusDate;
    00080         TPanel *StatusMain2;
    00081         TProgressBar *StatusProgress;
    00082         TMenuItem *N1;
    00083         TMenuItem *METransferfunktion;
    00084         TMenuItem *TwoLevel;
    00085         void __fastcall Exit1Click(TObject *Sender);
    00086         void __fastcall Tile1Click(TObject *Sender);
    00087         void __fastcall Cascade1Click(TObject *Sender);
    00088         void __fastcall Arrangeicons1Click(TObject *Sender);
    00089         void __fastcall Open1Click(TObject *Sender);
    00090         void __fastcall SlicesClick(TObject *Sender);
    00091         void __fastcall GradientSlicesClick(TObject *Sender);
    00092         void __fastcall AverageClick(TObject *Sender);
    00093         void __fastcall FirstHitClick(TObject *Sender);
    00094         void __fastcall TransparentClick(TObject *Sender);
    00095         void __fastcall CuberilleClick(TObject *Sender);
    00096         void __fastcall MIPClick(TObject *Sender);
    00097         void __fastcall NPRClick(TObject *Sender);
    00098         void __fastcall Saveas1Click(TObject *Sender);
    00099         void __fastcall Print1Click(TObject *Sender);
    00100         void __fastcall Close1Click(TObject *Sender);
    00101         void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    00102         void __fastcall About1Click(TObject *Sender);
    00103         void __fastcall FormResize(TObject *Sender);
    00104         void __fastcall FormCreate(TObject *Sender);
    00105         void __fastcall METransferfunktionClick(TObject *Sender);
    00106         void __fastcall TwoLevelClick(TObject *Sender);
    00107 private:
    00113         bool __fastcall loadFile(AnsiString name);
    00114         __int16 __fastcall _readInt16(ifstream & ifs);
    00119         void __fastcall deallocate();
    00120
    00121
    00122 public:
    00123         virtual __fastcall TFrameForm(TComponent* Owner);
    00124         void __fastcall memupdate();
    00125         __int16 dataMin, dataMax;
    00126         int w, h;
    00127 };
    00128 //---------------------------------------------------------------------------
    00129 extern TFrameForm *FrameForm;
    00130
    00131 //---------------------------------------------------------------------------
    00132 #endif