Tracker: style fixes to FilePermissionsView

This commit is contained in:
John Scipione
2014-06-20 21:01:45 -04:00
parent 08575837af
commit 9f7b8c72a2
2 changed files with 15 additions and 10 deletions
+10 -5
View File
@@ -43,16 +43,21 @@ All rights reserved.
#include <Locale.h> #include <Locale.h>
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "FilePermissionsView"
const uint32 kPermissionsChanged = 'prch'; const uint32 kPermissionsChanged = 'prch';
const uint32 kNewOwnerEntered = 'nwow'; const uint32 kNewOwnerEntered = 'nwow';
const uint32 kNewGroupEntered = 'nwgr'; const uint32 kNewGroupEntered = 'nwgr';
#undef B_TRANSLATION_CONTEXT // #pragma mark - FilePermissionsView
#define B_TRANSLATION_CONTEXT "FilePermissionsView"
FilePermissionsView::FilePermissionsView(BRect rect, Model* model) FilePermissionsView::FilePermissionsView(BRect rect, Model* model)
: BView(rect, "FilePermissionsView", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW), :
BView(rect, "FilePermissionsView", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW),
fModel(model) fModel(model)
{ {
// Constants for the column labels: "User", "Group" and "Other". // Constants for the column labels: "User", "Group" and "Other".
@@ -269,8 +274,8 @@ FilePermissionsView::ModelChanged(Model* model)
} else } else
fGroupTextControl->SetText(B_TRANSLATE("Unknown")); fGroupTextControl->SetText(B_TRANSLATE("Unknown"));
// Unless we're root, only allow the owner to transfer the ownership, // Unless we're root, only allow the owner to transfer the
// i.e. disable text controls if uid:s doesn't match: // ownership, i.e. disable text controls if uid:s doesn't match:
thread_id thisThread = find_thread(NULL); thread_id thisThread = find_thread(NULL);
thread_info threadInfo; thread_info threadInfo;
get_thread_info(thisThread, &threadInfo); get_thread_info(thisThread, &threadInfo);
+4 -4
View File
@@ -31,8 +31,8 @@ of Be Incorporated in the United States and other countries. Other brand product
names are registered trademarks or trademarks of their respective holders. names are registered trademarks or trademarks of their respective holders.
All rights reserved. All rights reserved.
*/ */
#ifndef FILE_PERMISSIONS_VIEW_H #ifndef _FILE_PERMISSIONS_VIEW_H
#define FILE_PERMISSIONS_VIEW_H #define _FILE_PERMISSIONS_VIEW_H
#include <CheckBox.h> #include <CheckBox.h>
@@ -94,9 +94,9 @@ class FilePermissionsView : public BView {
typedef BView _inherited; typedef BView _inherited;
}; };
} // namespace BPrivate } // namespace BPrivate
using namespace BPrivate; using namespace BPrivate;
#endif // FILE_PERMISSIONS_VIEW_H
#endif // _FILE_PERMISSIONS_VIEW_H