1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
   | #include <system.hpp>
#include <FileCtrl.hpp>
#include <vcl.h>
#include <IniFiles.hpp>
 
class TOGG
{
private:
// Parametres Video
int VideoQ;
int VideoBR;
int Width;
int Height;
double Contrast;
double Brightness;
double Gamma;
 
// Parametre Son
int SoundQ;
 
// Parametre Executable
AnsiString Executable;
AnsiString Commande;
 
// Diverses Options
int ratio;
bool Optimize;
bool Mute;
 
public:
 
// Constructeur
 
 
 
// Methodes pour les options (Ecriture)
        void SetVideoQ(const int);
        void SetVideoBR(const int);
        void SetWidth(const int);
 
 
        void SetHeight(const int);
        void SetContrast(const double);
 
        void SetBrightness(const double);
 
        void SetGamma(const double);
        void SetSoundQ(const int);
 
// Methodes pour l'executables
        bool SetExePath(const AnsiString);
        bool VerificationExePath();
 
        void FabricationCommande(TListBox *);
        AnsiString GetCommande(void);
 
// Methodes pour les options (Lecture)
        int GetVideoQ();
        int GetVideoBR();
        int GetWidth();
        int GetHeight();
        double GetContrast();
        double GetBrightness();
        double GetGamma();
        int GetSoundQ();
 
// Methodes pour Load/Save
 
        bool SaveParametres(TIniFile *);
        bool LoadParametres(TIniFile *);
 
        bool ResetParametres(void);
 
};
 
extern TOGG OGG;
#endif | 
Partager