further cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32167 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2009-08-06 17:05:57 +00:00
parent bdaaeb0c37
commit ceeeb99a7e
2 changed files with 2 additions and 25 deletions
@@ -92,8 +92,6 @@ static status_t Decompress(BPositionIO *in, BPositionIO *out,
static status_t Error(j_common_ptr cinfo, status_t error = B_ERROR); static status_t Error(j_common_ptr cinfo, status_t error = B_ERROR);
bool gAreSettingsRunning = false;
//! Make settings to defaults //! Make settings to defaults
void void
@@ -805,14 +803,12 @@ TranslatorAboutView::TranslatorAboutView(BRect frame, const char *name)
TranslatorView::TranslatorView(BRect frame, const char *name) TranslatorView::TranslatorView(BRect frame, const char *name)
: BTabView(frame, name) : BTabView(frame, name)
{ {
// Set global var to true
gAreSettingsRunning = true;
// Load settings to global settings struct // Load settings to global settings struct
LoadSettings(&fSettings); LoadSettings(&fSettings);
BRect contentSize = ContainerView()->Bounds(); BRect contentSize = ContainerView()->Bounds();
SView *view = new TranslatorWriteView(contentSize, "Write", &fSettings); SView *view = new TranslatorWriteView(contentSize, "Write",
&fSettings);
AddTab(view); AddTab(view);
view = new TranslatorReadView(contentSize, "Read", &fSettings); view = new TranslatorReadView(contentSize, "Read", &fSettings);
AddTab(view); AddTab(view);
@@ -828,22 +824,6 @@ TranslatorView::TranslatorView(BRect frame, const char *name)
TranslatorView::~TranslatorView() TranslatorView::~TranslatorView()
{ {
gAreSettingsRunning = false;
}
//! Attached to window - resize parent to preferred
void
TranslatorView::AttachedToWindow()
{
BTabView::AttachedToWindow();
}
void
TranslatorView::Select(int32 index)
{
BTabView::Select(index);
} }
@@ -164,9 +164,6 @@ class TranslatorView : public BTabView {
TranslatorView(BRect frame, const char *name); TranslatorView(BRect frame, const char *name);
virtual ~TranslatorView(); virtual ~TranslatorView();
virtual void AttachedToWindow();
virtual void Select(int32 index);
private: private:
jpeg_settings fSettings; jpeg_settings fSettings;
}; };