* automatic whitespace cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27852 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-10-03 11:56:02 +00:00
parent 8e0559b5f7
commit ce757605b0
@@ -38,9 +38,9 @@
class DirectoryFilter : public BRefFilter
{
public:
DirectoryFilter(){};
virtual bool Filter(const entry_ref *ref,
BNode *node, struct stat *st, const char *filetype)
DirectoryFilter(){};
virtual bool Filter(const entry_ref *ref,
BNode *node, struct stat *st, const char *filetype)
{
return node->IsDirectory();
}
@@ -129,15 +129,15 @@ MediaConverterWindow::MediaConverterWindow(BRect frame)
BPath path(&mypath);
path.GetParent(&path);
path.Append("Language/Dictionaries");
path.Append("MediaConverter");
path.Append("MediaConverter");
be_locale.LoadLanguageFile(path.Path());
#endif
BRect dummyRect(0, 0, 10, 10);
fMenuBar = new BMenuBar(dummyRect, "menubar");
BRect dummyRect(0, 0, 10, 10);
fMenuBar = new BMenuBar(dummyRect, "menubar");
_CreateMenu();
AddChild(fMenuBar);
AddChild(fMenuBar);
// background
BRect r(frame);
@@ -256,7 +256,7 @@ MediaConverterWindow::MediaConverterWindow(BRect frame)
B_BLOCK_THUMB, B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
fVideoQualitySlider->SetValue(fVideoQuality);
fVideoQualitySlider->SetEnabled(false);
fBox3->AddChild(fVideoQualitySlider);
fBox3->AddChild(fVideoQualitySlider);
r4.top = r4.bottom + 5;
r4.bottom = r4.top + 50;
@@ -267,7 +267,7 @@ MediaConverterWindow::MediaConverterWindow(BRect frame)
B_BLOCK_THUMB, B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
fAudioQualitySlider->SetValue(fAudioQuality);
fAudioQualitySlider->SetEnabled(false);
fBox3->AddChild(fAudioQualitySlider);
fBox3->AddChild(fAudioQualitySlider);
background->AddChild(fBox3);
// buttons
@@ -353,7 +353,7 @@ MediaConverterWindow::MessageReceived(BMessage *msg)
BPath name;
BEntry inentry;
int32 value;
BRect ButtonRect;
BRect ButtonRect;
switch (msg->what) {
#if B_BEOS_VERSION <= B_BEOS_VERSION_6
@@ -416,7 +416,7 @@ MediaConverterWindow::MessageReceived(BMessage *msg)
case OUTPUT_FOLDER_MESSAGE:
// Execute Save Panel
if (!fSaveFilePanel) {
BButton *SelectThisDir;
BButton *SelectThisDir;
fSaveFilePanel = new BFilePanel(B_OPEN_PANEL, NULL, NULL, B_DIRECTORY_NODE, true, new BMessage(FOLDER_SELECT_MESSAGE), NULL, false, true);
fSaveFilePanel->SetButtonLabel(B_DEFAULT_BUTTON, SELECT_LABEL);
@@ -940,16 +940,16 @@ MediaConverterWindow::_UpdateLabels()
sprintf(buffer, VIDEO_QUALITY_LABEL, (int8)fVideoQuality);
if (fVideoQualitySlider != NULL) {
fVideoQualitySlider->SetLabel(buffer);
fVideoQualitySlider->SetLimitLabels(SLIDER_LOW_LABEL,
SLIDER_HIGH_LABEL);
fVideoQualitySlider->SetLimitLabels(SLIDER_LOW_LABEL,
SLIDER_HIGH_LABEL);
}
sprintf(buffer, AUDIO_QUALITY_LABEL, (int8)fAudioQuality);
if (fAudioQualitySlider != NULL) {
fAudioQualitySlider->SetLabel(buffer);
fAudioQualitySlider->SetLimitLabels(SLIDER_LOW_LABEL,
SLIDER_HIGH_LABEL);
fAudioQualitySlider->SetLimitLabels(SLIDER_LOW_LABEL,
SLIDER_HIGH_LABEL);
}
float maxLabelLen = 0;
@@ -1013,10 +1013,10 @@ MediaConverterWindow::_DestroyMenu()
void
MediaConverterWindow::_CreateMenu()
{
BMenuItem* item;
BMenu* menu;
BMenuItem* item;
BMenu* menu;
menu = new BMenu(FILE_MENU_LABEL);
menu = new BMenu(FILE_MENU_LABEL);
item = new BMenuItem(OPEN_MENU_LABEL B_UTF8_ELLIPSIS,
new BMessage(OPEN_FILE_MESSAGE));
menu->AddItem(item);
@@ -1028,7 +1028,7 @@ MediaConverterWindow::_CreateMenu()
item = new BMenuItem(QUIT_MENU_LABEL, new BMessage(QUIT_MESSAGE));
menu->AddItem(item);
fMenuBar->AddItem(menu);
fMenuBar->AddItem(menu);
}