19949213aSStephan Aßmus /*****************************************************************************/ 29949213aSStephan Aßmus // SGIView 39949213aSStephan Aßmus // Adopted by Stephan Aßmus, <stippi@yellowbites.com> 49949213aSStephan Aßmus // from TIFFView written by 59949213aSStephan Aßmus // Picking the compression method added by Stephan Aßmus, <stippi@yellowbites.com> 69949213aSStephan Aßmus // 79949213aSStephan Aßmus // SGIView.h 89949213aSStephan Aßmus // 99949213aSStephan Aßmus // This BView based object displays information about the SGITranslator. 109949213aSStephan Aßmus // 119949213aSStephan Aßmus // 12*2ca13760SColdfirex // Copyright (c) 2003 Haiku Project 139949213aSStephan Aßmus // 149949213aSStephan Aßmus // Permission is hereby granted, free of charge, to any person obtaining a 159949213aSStephan Aßmus // copy of this software and associated documentation files (the "Software"), 169949213aSStephan Aßmus // to deal in the Software without restriction, including without limitation 179949213aSStephan Aßmus // the rights to use, copy, modify, merge, publish, distribute, sublicense, 189949213aSStephan Aßmus // and/or sell copies of the Software, and to permit persons to whom the 199949213aSStephan Aßmus // Software is furnished to do so, subject to the following conditions: 209949213aSStephan Aßmus // 219949213aSStephan Aßmus // The above copyright notice and this permission notice shall be included 229949213aSStephan Aßmus // in all copies or substantial portions of the Software. 239949213aSStephan Aßmus // 249949213aSStephan Aßmus // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 259949213aSStephan Aßmus // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 269949213aSStephan Aßmus // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 279949213aSStephan Aßmus // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 289949213aSStephan Aßmus // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 299949213aSStephan Aßmus // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 309949213aSStephan Aßmus // DEALINGS IN THE SOFTWARE. 319949213aSStephan Aßmus /*****************************************************************************/ 329949213aSStephan Aßmus #ifndef SGIVIEW_H 339949213aSStephan Aßmus #define SGIVIEW_H 349949213aSStephan Aßmus 3544efd205SJohn Scipione 369949213aSStephan Aßmus #include <View.h> 379949213aSStephan Aßmus #include "TranslatorSettings.h" 389949213aSStephan Aßmus 3944efd205SJohn Scipione 409949213aSStephan Aßmus class BMenuField; 419949213aSStephan Aßmus 4244efd205SJohn Scipione 439949213aSStephan Aßmus class SGIView : public BView { 449949213aSStephan Aßmus public: 45c497ec37SStephan Aßmus SGIView(const char* name, uint32 flags, TranslatorSettings* settings); 469949213aSStephan Aßmus // sets up the view 479949213aSStephan Aßmus 489949213aSStephan Aßmus ~SGIView(); 499949213aSStephan Aßmus // releases the SGITranslator settings 509949213aSStephan Aßmus 519949213aSStephan Aßmus virtual void AllAttached(); 529949213aSStephan Aßmus virtual void MessageReceived(BMessage* message); 539949213aSStephan Aßmus 549949213aSStephan Aßmus enum { 559949213aSStephan Aßmus MSG_COMPRESSION_CHANGED = 'cmch', 569949213aSStephan Aßmus }; 579949213aSStephan Aßmus 589949213aSStephan Aßmus private: 599949213aSStephan Aßmus BMenuField* fCompressionMF; 609949213aSStephan Aßmus 619949213aSStephan Aßmus TranslatorSettings* fSettings; 6244efd205SJohn Scipione // the actual settings for the translator, shared with the translator 639949213aSStephan Aßmus }; 649949213aSStephan Aßmus 6544efd205SJohn Scipione 669949213aSStephan Aßmus #endif // #ifndef SGIVIEW_H 67