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
+11 -6
View File
@@ -43,17 +43,22 @@ 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),
fModel(model)
:
BView(rect, "FilePermissionsView", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW),
fModel(model)
{
// Constants for the column labels: "User", "Group" and "Other".
const float kColumnLabelMiddle = 77, kColumnLabelTop = 6,
@@ -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);
+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.
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