From d3d876233341b1482f32ff9bb65a05b772116f86 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 6 Oct 2002 23:59:37 +0000 Subject: [PATCH] added support for saving settings, in various ways git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1424 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/tgatranslator/TGATranslator.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/add-ons/translators/tgatranslator/TGATranslator.h b/src/add-ons/translators/tgatranslator/TGATranslator.h index ce1e7b943b..121c5b9a40 100644 --- a/src/add-ons/translators/tgatranslator/TGATranslator.h +++ b/src/add-ons/translators/tgatranslator/TGATranslator.h @@ -36,6 +36,7 @@ #include #include #include +#include "TGATranslatorSettings.h" #define TGA_TRANSLATOR_VERSION 100 #define TGA_IN_QUALITY 1.0 @@ -166,10 +167,16 @@ public: // it translates the data in inSource to outDestination // using the format outType + virtual status_t GetConfigurationMessage(BMessage *ioExtension); + // write the current state of the translator into + // the supplied BMessage object + virtual status_t MakeConfigurationView(BMessage *ioExtension, BView **outView, BRect *outExtent); // creates and returns the view for displaying information // about this translator + + TGATranslatorSettings *AcquireSettings(); protected: virtual ~TGATranslator(); @@ -178,6 +185,8 @@ protected: // the user private: + TGATranslatorSettings *fpsettings; + char fName[30]; char fInfo[100]; };