further cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32167 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bdaaeb0c37
commit
ceeeb99a7e
|
@ -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);
|
||||
|
||||
|
||||
bool gAreSettingsRunning = false;
|
||||
|
||||
|
||||
//! Make settings to defaults
|
||||
void
|
||||
|
@ -805,14 +803,12 @@ TranslatorAboutView::TranslatorAboutView(BRect frame, const char *name)
|
|||
TranslatorView::TranslatorView(BRect frame, const char *name)
|
||||
: BTabView(frame, name)
|
||||
{
|
||||
// Set global var to true
|
||||
gAreSettingsRunning = true;
|
||||
|
||||
// Load settings to global settings struct
|
||||
LoadSettings(&fSettings);
|
||||
|
||||
BRect contentSize = ContainerView()->Bounds();
|
||||
SView *view = new TranslatorWriteView(contentSize, "Write", &fSettings);
|
||||
SView *view = new TranslatorWriteView(contentSize, "Write",
|
||||
&fSettings);
|
||||
AddTab(view);
|
||||
view = new TranslatorReadView(contentSize, "Read", &fSettings);
|
||||
AddTab(view);
|
||||
|
@ -828,22 +824,6 @@ TranslatorView::TranslatorView(BRect frame, const char *name)
|
|||
|
||||
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);
|
||||
virtual ~TranslatorView();
|
||||
|
||||
virtual void AttachedToWindow();
|
||||
virtual void Select(int32 index);
|
||||
|
||||
private:
|
||||
jpeg_settings fSettings;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue