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