added a few comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2231 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// StreamBuffer
|
// StreamBuffer
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// StreamBuffer.cpp
|
// StreamBuffer.cpp
|
||||||
//
|
//
|
||||||
// The description goes here.
|
// This class is for buffering data from a BPositionIO object in order to
|
||||||
|
// improve performance for cases when small amounts of data are frequently
|
||||||
|
// read from a BPositionIO object.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Copyright (c) 2002 OpenBeOS Project
|
// Copyright (c) 2002 OpenBeOS Project
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// StreamBuffer
|
// StreamBuffer
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// StreamBuffer.h
|
// StreamBuffer.h
|
||||||
//
|
//
|
||||||
// The description goes here.
|
// This class is for buffering data from a BPositionIO object in order to
|
||||||
|
// improve performance for cases when small amounts of data are frequently
|
||||||
|
// read from a BPositionIO object.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Copyright (c) 2002 OpenBeOS Project
|
// Copyright (c) 2002 OpenBeOS Project
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGATranslator
|
// TGATranslator
|
||||||
//
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
// Version: 1.0.0 Beta
|
// Version: 1.0.0 Beta
|
||||||
//
|
//
|
||||||
// This translator opens and writes TGA files.
|
// This translator opens and writes TGA files.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGATranslator
|
// TGATranslator
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGATranslator.cpp
|
// TGATranslator.cpp
|
||||||
//
|
//
|
||||||
// This BTranslator based object is for opening and writing TGA files.
|
// This BTranslator based object is for opening and writing TGA files.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGATranslator
|
// TGATranslator
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGATranslator.h
|
// TGATranslator.h
|
||||||
//
|
//
|
||||||
// This BTranslator based object is for opening and writing TGA files.
|
// This BTranslator based object is for opening and writing TGA files.
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGATranslatorSettings
|
// TGATranslatorSettings
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGATranslatorSettings.h
|
// TGATranslatorSettings.h
|
||||||
//
|
//
|
||||||
// The description goes here.
|
// This class manages (saves/loads/locks/unlocks) the settings
|
||||||
|
// for the TGATranslator.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Copyright (c) 2002 OpenBeOS Project
|
// Copyright (c) 2002 OpenBeOS Project
|
||||||
@@ -43,7 +46,12 @@ public:
|
|||||||
TGATranslatorSettings();
|
TGATranslatorSettings();
|
||||||
|
|
||||||
TGATranslatorSettings *Acquire();
|
TGATranslatorSettings *Acquire();
|
||||||
|
// increments the reference count, returns this
|
||||||
TGATranslatorSettings *Release();
|
TGATranslatorSettings *Release();
|
||||||
|
// decrements the reference count, deletes this
|
||||||
|
// when count reaches zero, returns this when
|
||||||
|
// ref count is greater than zero, NULL when
|
||||||
|
// ref count is zero
|
||||||
|
|
||||||
status_t LoadSettings();
|
status_t LoadSettings();
|
||||||
status_t LoadSettings(BMessage *pmsg);
|
status_t LoadSettings(BMessage *pmsg);
|
||||||
@@ -51,8 +59,17 @@ public:
|
|||||||
status_t GetConfigurationMessage(BMessage *pmsg);
|
status_t GetConfigurationMessage(BMessage *pmsg);
|
||||||
|
|
||||||
bool SetGetHeaderOnly(bool *pbHeaderOnly = NULL);
|
bool SetGetHeaderOnly(bool *pbHeaderOnly = NULL);
|
||||||
|
// sets / gets HeaderOnly setting
|
||||||
|
// specifies if only the image header should be
|
||||||
|
// outputted
|
||||||
bool SetGetDataOnly(bool *pbDataOnly = NULL);
|
bool SetGetDataOnly(bool *pbDataOnly = NULL);
|
||||||
|
// sets / gets DataOnly setting
|
||||||
|
// specifiees if only the image data should be
|
||||||
|
// outputted
|
||||||
bool SetGetRLE(bool *pbRLE = NULL);
|
bool SetGetRLE(bool *pbRLE = NULL);
|
||||||
|
// sets /gets RLE setting
|
||||||
|
// specifies if RLE compression will be used
|
||||||
|
// when the TGATranslator creates TGA images
|
||||||
|
|
||||||
private:
|
private:
|
||||||
~TGATranslatorSettings();
|
~TGATranslatorSettings();
|
||||||
@@ -62,6 +79,8 @@ private:
|
|||||||
BLocker flock;
|
BLocker flock;
|
||||||
int32 frefCount;
|
int32 frefCount;
|
||||||
BPath fsettingsPath;
|
BPath fsettingsPath;
|
||||||
|
// where the settings file will be loaded from /
|
||||||
|
// saved to
|
||||||
|
|
||||||
BMessage fmsgSettings;
|
BMessage fmsgSettings;
|
||||||
// the actual settings
|
// the actual settings
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGAView
|
// TGAView
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGAView.cpp
|
// TGAView.cpp
|
||||||
//
|
//
|
||||||
// This BView based object displays information about the TGATranslator.
|
// This BView based object displays information about the TGATranslator.
|
||||||
@@ -83,6 +85,19 @@ TGAView::~TGAView()
|
|||||||
fpsettings->Release();
|
fpsettings->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// AllAttached
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Preconditions:
|
||||||
|
//
|
||||||
|
// Parameters:
|
||||||
|
//
|
||||||
|
// Postconditions:
|
||||||
|
//
|
||||||
|
// Returns:
|
||||||
|
// ---------------------------------------------------------------
|
||||||
void
|
void
|
||||||
TGAView::AllAttached()
|
TGAView::AllAttached()
|
||||||
{
|
{
|
||||||
@@ -90,6 +105,19 @@ TGAView::AllAttached()
|
|||||||
fpchkRLE->SetTarget(msgr);
|
fpchkRLE->SetTarget(msgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// MessageReceived
|
||||||
|
//
|
||||||
|
// Handles state changes of the RLE setting checkbox
|
||||||
|
//
|
||||||
|
// Preconditions:
|
||||||
|
//
|
||||||
|
// Parameters: message the actual BMessage that was received
|
||||||
|
//
|
||||||
|
// Postconditions:
|
||||||
|
//
|
||||||
|
// Returns:
|
||||||
|
// ---------------------------------------------------------------
|
||||||
void
|
void
|
||||||
TGAView::MessageReceived(BMessage *message)
|
TGAView::MessageReceived(BMessage *message)
|
||||||
{
|
{
|
||||||
@@ -147,4 +175,4 @@ TGAView::Draw(BRect area)
|
|||||||
*/
|
*/
|
||||||
char writtenby[] = "Written by the OBOS Translation Kit Team";
|
char writtenby[] = "Written by the OBOS Translation Kit Team";
|
||||||
DrawString(writtenby, BPoint(xbold, yplain * 7 + ybold));
|
DrawString(writtenby, BPoint(xbold, yplain * 7 + ybold));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGAView
|
// TGAView
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGAView.h
|
// TGAView.h
|
||||||
//
|
//
|
||||||
// This BView based object displays information about the TGATranslator.
|
// This BView based object displays information about the TGATranslator.
|
||||||
@@ -53,6 +55,8 @@ private:
|
|||||||
BCheckBox *fpchkRLE;
|
BCheckBox *fpchkRLE;
|
||||||
|
|
||||||
TGATranslatorSettings *fpsettings;
|
TGATranslatorSettings *fpsettings;
|
||||||
|
// the actual settings for the translator,
|
||||||
|
// shared with the translator
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // #ifndef TGAVIEW_H
|
#endif // #ifndef TGAVIEW_H
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGAWindow
|
// TGAWindow
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGAWindow.cpp
|
// TGAWindow.cpp
|
||||||
//
|
//
|
||||||
// This BWindow based object is used to hold the TGAView object when the
|
// This BWindow based object is used to hold the TGAView object when the
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// TGAWindow
|
// TGAWindow
|
||||||
|
// Written by Michael Wilber, OBOS Translation Kit Team
|
||||||
|
//
|
||||||
// TGAWindow.h
|
// TGAWindow.h
|
||||||
//
|
//
|
||||||
// This BWindow based object is used to hold the TGAView object when the
|
// This BWindow based object is used to hold the TGAView object when the
|
||||||
|
|||||||
Reference in New Issue
Block a user