Tracker: style fixes to FilePanel

This commit is contained in:
John Scipione
2014-06-20 21:01:44 -04:00
parent 345d92c402
commit 08575837af
3 changed files with 93 additions and 89 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ run_save_panel()
} }
// #pragma mark - // #pragma mark - BFilePanel
BFilePanel::BFilePanel(file_panel_mode mode, BMessenger* target, BFilePanel::BFilePanel(file_panel_mode mode, BMessenger* target,
+20 -17
View File
@@ -33,23 +33,9 @@ All rights reserved.
*/ */
#include "Attributes.h"
#include "AttributeStream.h"
#include "AutoLock.h"
#include "Commands.h"
#include "DesktopPoseView.h"
#include "DirMenu.h"
#include "FavoritesMenu.h"
#include "FilePanelPriv.h" #include "FilePanelPriv.h"
#include "FSUtils.h"
#include "FSClipboard.h" #include <string.h>
#include "IconMenuItem.h"
#include "MimeTypes.h"
#include "NavMenu.h"
#include "PoseView.h"
#include "Tracker.h"
#include "tracker_private.h"
#include "Utilities.h"
#include <Alert.h> #include <Alert.h>
#include <Application.h> #include <Application.h>
@@ -76,7 +62,23 @@ All rights reserved.
#include <Volume.h> #include <Volume.h>
#include <VolumeRoster.h> #include <VolumeRoster.h>
#include <string.h> #include "Attributes.h"
#include "AttributeStream.h"
#include "AutoLock.h"
#include "Commands.h"
#include "DesktopPoseView.h"
#include "DirMenu.h"
#include "FavoritesMenu.h"
#include "FSUtils.h"
#include "FSClipboard.h"
#include "IconMenuItem.h"
#include "MimeTypes.h"
#include "NavMenu.h"
#include "PoseView.h"
#include "Tracker.h"
#include "Utilities.h"
#include "tracker_private.h"
const char* kDefaultFilePanelTemplate = "FilePanelSettings"; const char* kDefaultFilePanelTemplate = "FilePanelSettings";
@@ -1271,6 +1273,7 @@ TFilePanel::MessageReceived(BMessage* message)
default: default:
_inherited::MessageReceived(message); _inherited::MessageReceived(message);
break;
} }
} }
+4 -3
View File
@@ -129,6 +129,8 @@ protected:
const char* button2 = NULL, const char* button3 = NULL); const char* button2 = NULL, const char* button3 = NULL);
private: private:
friend class BackgroundView;
bool SwitchDirToDesktopIfNeeded(entry_ref &ref); bool SwitchDirToDesktopIfNeeded(entry_ref &ref);
bool CanOpenParent() const; bool CanOpenParent() const;
void SwitchDirMenuTo(const entry_ref* ref); void SwitchDirMenuTo(const entry_ref* ref);
@@ -152,8 +154,6 @@ private:
bool fIsTrackingMenu; bool fIsTrackingMenu;
typedef BContainerWindow _inherited; typedef BContainerWindow _inherited;
friend class BackgroundView;
}; };
@@ -249,4 +249,5 @@ TFilePanel::TrackingMenu() const
using namespace BPrivate; using namespace BPrivate;
#endif
#endif // _FILE_PANEL_PRIV_H