style changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27734 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -44,6 +44,7 @@ FileSelector::FileSelector(void)
|
||||
m_save_panel = NULL;
|
||||
}
|
||||
|
||||
|
||||
FileSelector::~FileSelector()
|
||||
{
|
||||
delete m_save_panel;
|
||||
@@ -51,17 +52,18 @@ FileSelector::~FileSelector()
|
||||
}
|
||||
|
||||
|
||||
bool FileSelector::QuitRequested()
|
||||
bool
|
||||
FileSelector::QuitRequested()
|
||||
{
|
||||
release_sem(m_exit_sem);
|
||||
return true;
|
||||
return BWindow::QuitRequested();
|
||||
}
|
||||
|
||||
|
||||
void FileSelector::MessageReceived(BMessage * msg)
|
||||
{
|
||||
switch (msg->what)
|
||||
void
|
||||
FileSelector::MessageReceived(BMessage * msg)
|
||||
{
|
||||
switch (msg->what) {
|
||||
case START_MSG:
|
||||
{
|
||||
BMessenger messenger(this);
|
||||
@@ -76,13 +78,11 @@ void FileSelector::MessageReceived(BMessage * msg)
|
||||
{
|
||||
entry_ref dir;
|
||||
|
||||
if ( msg->FindRef("directory", &dir) == B_OK)
|
||||
{
|
||||
if (msg->FindRef("directory", &dir) == B_OK) {
|
||||
const char* name;
|
||||
|
||||
BDirectory bdir(&dir);
|
||||
if ( msg->FindString("name", &name) == B_OK)
|
||||
{
|
||||
if (msg->FindString("name", &name) == B_OK) {
|
||||
if (name != NULL)
|
||||
m_result = m_entry.SetTo(&bdir, name);
|
||||
};
|
||||
@@ -103,7 +103,8 @@ void FileSelector::MessageReceived(BMessage * msg)
|
||||
}
|
||||
|
||||
|
||||
status_t FileSelector::Go(entry_ref * ref)
|
||||
status_t
|
||||
FileSelector::Go(entry_ref* ref)
|
||||
{
|
||||
MoveTo(300,300);
|
||||
Hide();
|
||||
@@ -123,5 +124,3 @@ status_t FileSelector::Go(entry_ref * ref)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user