Tracker: style fixes to FilePermissionsView
This commit is contained in:
@@ -43,16 +43,21 @@ All rights reserved.
|
||||
#include <Locale.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "FilePermissionsView"
|
||||
|
||||
|
||||
const uint32 kPermissionsChanged = 'prch';
|
||||
const uint32 kNewOwnerEntered = 'nwow';
|
||||
const uint32 kNewGroupEntered = 'nwgr';
|
||||
|
||||
|
||||
#undef B_TRANSLATION_CONTEXT
|
||||
#define B_TRANSLATION_CONTEXT "FilePermissionsView"
|
||||
// #pragma mark - FilePermissionsView
|
||||
|
||||
|
||||
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)
|
||||
{
|
||||
// Constants for the column labels: "User", "Group" and "Other".
|
||||
@@ -269,8 +274,8 @@ FilePermissionsView::ModelChanged(Model* model)
|
||||
} else
|
||||
fGroupTextControl->SetText(B_TRANSLATE("Unknown"));
|
||||
|
||||
// Unless we're root, only allow the owner to transfer the ownership,
|
||||
// i.e. disable text controls if uid:s doesn't match:
|
||||
// Unless we're root, only allow the owner to transfer the
|
||||
// ownership, i.e. disable text controls if uid:s doesn't match:
|
||||
thread_id thisThread = find_thread(NULL);
|
||||
thread_info threadInfo;
|
||||
get_thread_info(thisThread, &threadInfo);
|
||||
|
||||
@@ -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.
|
||||
All rights reserved.
|
||||
*/
|
||||
#ifndef FILE_PERMISSIONS_VIEW_H
|
||||
#define FILE_PERMISSIONS_VIEW_H
|
||||
#ifndef _FILE_PERMISSIONS_VIEW_H
|
||||
#define _FILE_PERMISSIONS_VIEW_H
|
||||
|
||||
|
||||
#include <CheckBox.h>
|
||||
@@ -94,9 +94,9 @@ class FilePermissionsView : public BView {
|
||||
typedef BView _inherited;
|
||||
};
|
||||
|
||||
|
||||
} // namespace BPrivate
|
||||
|
||||
using namespace BPrivate;
|
||||
|
||||
#endif // FILE_PERMISSIONS_VIEW_H
|
||||
|
||||
#endif // _FILE_PERMISSIONS_VIEW_H
|
||||
|
||||
Reference in New Issue
Block a user