fEditor
fEditor->GetView()->MakeFocus(true);
fEditor->GetView()->RemoveSelf();
fEditor->AcquireReference();
fEditor->AddListener(this);
fEditor->RemoveListener(this);
fEditor->ReleaseReference();
.Add(fEditor->GetView())
TableCellValueEditor* fEditor;
fEditor(editor)
if (fCouldRedo != fEditor.CanRedo())
update.AddBool("can_redo", fEditor.CanRedo());
if (fCouldUndo != fEditor.CanUndo())
update.AddBool("can_undo", fEditor.CanUndo());
if (fWasModified != fEditor.IsModified())
update.AddBool("modified", fEditor.IsModified());
fEditor.SendNotices(kMsgDataEditorStateChange, &update);
DataEditor &fEditor;
if (fEditor.Lock()) {
fDataSize = fEditor.ViewSize();
fOffset = fEditor.ViewOffset();
fEditor.Unlock();
fEditor.Replace(fOffset + fStart, &c, 1);
fEditor.Replace(fOffset + fStart, (const uint8 *)"", 1);
fEditor.StopWatching(this);
if (fEditor.Replace(fOffset + fStart, &c, 1) == B_OK
if (fEditor.Replace(fOffset + fStart, (const uint8 *)bytes,
fEditor.StartWatching(this);
BAutolock locker(fEditor);
fFileSize = fEditor.FileSize();
if (fEditor.GetViewBuffer(&data) == B_OK)
return !fEditor.IsReadOnly()
fEditor.Undo();
fEditor.Redo();
if (fEditor.Replace(fOffset + fStart, (const uint8 *)data, size) != B_OK)
if (fEditor.Replace(fOffset + fStart, (const uint8 *)data, length) == B_OK)
fEditor(editor),
DataEditor& fEditor;
fEditor.SetTo(*ref, attribute);
fHeaderView = new HeaderView(&fEditor.Ref(), fEditor);
fDataView = new DataView(fEditor);
fEditor.StopWatching(this);
BNode node(&fEditor.AttributeRef());
message->AddRef("refs", &fEditor.AttributeRef());
fEditorLooper = new EditorLooper(fEditor.Ref().name, fEditor,
fEditor.StartWatching(this);
BMenu* menu = new BMenu(fEditor.IsAttribute()
? B_TRANSLATE("Attribute") : fEditor.IsDevice()
fUndoMenuItem->SetEnabled(fEditor.CanUndo());
fRedoMenuItem->SetEnabled(fEditor.CanRedo());
if (directory.SetTo(&fEditor.AttributeRef()) == B_OK
fEditor.File().GetVolume(&volume);
if (!fEditor.IsAttribute() && volume.InitCheck() == B_OK
fEditor.IsDevice() && fEditor.BlockSize() == blockSizes[i]
if (fEditor.BlockSize() == blockSizes[i])
fEditor.BlockSize());
message->AddInt32("block_size", fEditor.BlockSize());
&& (off_t)(position * fEditor.BlockSize()) < fEditor.FileSize());
fSwappedMenuItem->SetEnabled(position >= 0 && (off_t)(position * fEditor.BlockSize()) < fEditor.FileSize());
off_t block = position / fEditor.BlockSize();
fTypeView = new TypeView("type shell", index, fEditor);
status_t status = fEditor.Save();
if (!fEditor.IsModified())
BAutolock locker(fEditor);
if (fEditor.SetViewSize(blockSize) == B_OK
&& fEditor.SetBlockSize(blockSize) == B_OK)
fHeaderView->SetTo(fEditor.ViewOffset(), blockSize);
fEditor.ForceUpdate();
if (fEditor.IsAttribute()) {
if (!strcmp(name, fEditor.Attribute()))
fEditor.ForceUpdate();
DataEditor& fEditor;
fEditor(editor),
fEditor.StartWatching(this);
fEditor.StopWatching(this);
BAutolock locker(fEditor);
fEditor.SetViewOffset(position);
message.AddInt64("start", position - fEditor.ViewOffset());
message.AddInt64("end", position - fEditor.ViewOffset());
if (fEditor.Lock()) {
fEditor.UpdateIfNeeded(&updated);
fEditor.Unlock();
BAutolock locker(fEditor);
off_t foundAt = fEditor.Find(startAt, data, dataSize, caseInsensitive,
fEditor.SetViewOffset(foundAt);
message.AddInt64("start", foundAt - fEditor.ViewOffset());
message.AddInt64("end", foundAt + dataSize - 1 - fEditor.ViewOffset());
DataEditor& Editor() { return fEditor; }
DataEditor fEditor;
BMemoryIO stream(data, fEditor.FileSize());
switch (fEditor.Type()) {
fEditor.SetViewSize(viewSize);
BAutolock locker(fEditor);
size_t viewSize = fEditor.ViewSize();
if ((off_t)viewSize < fEditor.FileSize())
fEditor.SetViewSize(fEditor.FileSize());
if (fEditor.GetViewBuffer((const uint8 **)&buffer) == B_OK) {
fEditor.SetViewSize(viewSize);
fEditor.StartWatching(this);
fEditor.StopWatching(this);
return uint64(fEditor.FileSize()) / B_PAGE_SIZE < info.max_pages / 2;
BAutolock locker(fEditor);
size_t viewSize = fEditor.ViewSize();
if ((off_t)viewSize < fEditor.FileSize())
fEditor.SetViewSize(fEditor.FileSize());
if (fEditor.GetViewBuffer((const uint8 **)&buffer) == B_OK) {
fEditor.SetViewSize(viewSize);
fEditor.Replace(0, (const uint8 *)fTextView->Text(),
fEditor.StartWatching(this);
fEditor.StopWatching(this);
BAutolock locker(fEditor);
if (fEditor.GetViewBuffer((const uint8 **)&mimeType) == B_OK) {
fEditor.Replace(0, (const uint8*)fTextControl->Text(),
return fEditor.FileSize() <= B_MIME_TYPE_LENGTH;
fEditor.StartWatching(this);
fEditor.StopWatching(this);
fEditor.Replace(0, (const uint8 *)fTextControl->Text(),
if (fEditor.Lock()) {
if (fEditor.GetViewBuffer((const uint8**)&number) == B_OK) {
switch (fEditor.Type()) {
fEditor.Unlock();
return fEditor.FileSize() >= (off_t)_Size();
switch (fEditor.Type()) {
fEditor.Replace(0, buffer, _Size());
switch (fEditor.Type()) {
switch (fEditor.Type()) {
switch (fEditor.Type()) {
fEditor.StartWatching(this);
fEditor.StopWatching(this);
if (fEditor.FileSize() != 1)
if (fEditor.Lock()) {
if (fEditor.GetViewBuffer((const uint8 **)&buffer) == B_OK)
fEditor.Unlock();
fEditor.StartWatching(this);
fEditor.StopWatching(this);
fEditor.Replace(0, (const uint8 *)&boolean, 1);
fEditor.StartWatching(this);
fEditor.StopWatching(this);
BAutolock locker(fEditor);
size_t viewSize = fEditor.ViewSize();
if ((off_t)viewSize < fEditor.FileSize())
fEditor.SetViewSize(fEditor.FileSize());
if (fEditor.GetViewBuffer((const uint8 **)&data) != B_OK) {
fEditor.SetViewSize(viewSize);
if (fBitmap != NULL && (fEditor.Type() == B_MINI_ICON_TYPE
|| fEditor.Type() == B_LARGE_ICON_TYPE)) {
fBitmap->SetBits(data, fEditor.FileSize(), 0, B_CMAP8);
fEditor.SetViewSize(viewSize);
if (fBitmap != NULL && fEditor.Type() == B_VECTOR_ICON_TYPE
(size_t)fEditor.FileSize(), fBitmap) == B_OK) {
fEditor.SetViewSize(viewSize);
switch (fEditor.Type()) {
fBitmap->SetBits(data, fEditor.FileSize(), 0, B_CMAP8);
fBitmap->SetBits(data, fEditor.FileSize(), 0, B_CMAP8);
(size_t)fEditor.FileSize(), fBitmap) != B_OK) {
DataEditor& fEditor;
fOkButton->SetEnabled(fEditor->ValidateParameters());
status = partition->GetParameterEditor(type, &fEditor);
status = addOn->GetParameterEditor(type, &fEditor);
if (fEditor == NULL)
AddControls(builder, fEditor->View());
if (fEditor != NULL) {
fEditor->SetTo(partition);
fEditor->SetModificationMessage(new BMessage(kParameterChanged));
if (fEditor == NULL && NeedsEditor()) {
if (fEditor != NULL && fEditor->ValidateParameters()) {
status_t status = fEditor->GetParameters(parameters);
fEditor(NULL),
BPartitionParameterEditor* fEditor;
if (fEditor != NULL) {
fEditor->ParameterChanged("type", BVariant(type));