mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 14:08:15 +01:00
Fix #6865: [Tracker] Use default checkboxes for permissions
This commit is contained in:
parent
b52b104798
commit
fcc65d4a33
@ -135,7 +135,7 @@ FilePermissionsView::FilePermissionsView(BRect rect, Model* model)
|
||||
kVerticalSpacing = kRowLabelVerticalSpacing,
|
||||
kCheckBoxWidth = 18, kCheckBoxHeight = 18;
|
||||
|
||||
FocusCheckBox** checkBoxArray[3][3] = {
|
||||
BCheckBox** checkBoxArray[3][3] = {
|
||||
{
|
||||
&fReadUserCheckBox,
|
||||
&fReadGroupCheckBox,
|
||||
@ -156,7 +156,7 @@ FilePermissionsView::FilePermissionsView(BRect rect, Model* model)
|
||||
for (int32 x = 0; x < 3; x++) {
|
||||
for (int32 y = 0; y < 3; y++) {
|
||||
*checkBoxArray[y][x] =
|
||||
new FocusCheckBox(BRect(kLeftMargin + kHorizontalSpacing * x,
|
||||
new BCheckBox(BRect(kLeftMargin + kHorizontalSpacing * x,
|
||||
kTopMargin + kVerticalSpacing * y,
|
||||
kLeftMargin + kHorizontalSpacing * x + kCheckBoxWidth,
|
||||
kTopMargin + kVerticalSpacing * y + kCheckBoxHeight),
|
||||
|
@ -43,25 +43,6 @@ All rights reserved.
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
class FocusCheckBox : public BCheckBox {
|
||||
public:
|
||||
FocusCheckBox(BRect rect, const char* name, const char* label,
|
||||
BMessage* message)
|
||||
: BCheckBox(rect, name, label, message)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void Draw(BRect rect)
|
||||
{
|
||||
BCheckBox::Draw(rect);
|
||||
|
||||
if (IsFocus()) {
|
||||
SetHighColor(0, 0, 255);
|
||||
StrokeRect(BRect(2 , 4, 12, 14));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class FilePermissionsView : public BView {
|
||||
public:
|
||||
@ -76,17 +57,17 @@ class FilePermissionsView : public BView {
|
||||
private:
|
||||
Model* fModel;
|
||||
|
||||
FocusCheckBox* fReadUserCheckBox;
|
||||
FocusCheckBox* fReadGroupCheckBox;
|
||||
FocusCheckBox* fReadOtherCheckBox;
|
||||
BCheckBox* fReadUserCheckBox;
|
||||
BCheckBox* fReadGroupCheckBox;
|
||||
BCheckBox* fReadOtherCheckBox;
|
||||
|
||||
FocusCheckBox* fWriteUserCheckBox;
|
||||
FocusCheckBox* fWriteGroupCheckBox;
|
||||
FocusCheckBox* fWriteOtherCheckBox;
|
||||
BCheckBox* fWriteUserCheckBox;
|
||||
BCheckBox* fWriteGroupCheckBox;
|
||||
BCheckBox* fWriteOtherCheckBox;
|
||||
|
||||
FocusCheckBox* fExecuteUserCheckBox;
|
||||
FocusCheckBox* fExecuteGroupCheckBox;
|
||||
FocusCheckBox* fExecuteOtherCheckBox;
|
||||
BCheckBox* fExecuteUserCheckBox;
|
||||
BCheckBox* fExecuteGroupCheckBox;
|
||||
BCheckBox* fExecuteOtherCheckBox;
|
||||
|
||||
BTextControl* fOwnerTextControl;
|
||||
BTextControl* fGroupTextControl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user