Commit Graph

5720 Commits

Author SHA1 Message Date
Matthew Wilber
8241861213 improved magic number variable names
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:40:02 +00:00
Matthew Wilber
dd5f74defc updated config message test to include new "ignore alpha" setting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:38:09 +00:00
Matthew Wilber
be510fa83f updated test to reflect new config message behavior
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:37:11 +00:00
shatty
6f524d0869 audio buffer size patches
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 23:31:22 +00:00
shatty
681619c2ba code simplifications, initialize output in Setup for now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 22:59:49 +00:00
Axel Dörfler
c1381da97c Fixed a crashing bug when there is no TypeEditorView.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 22:54:27 +00:00
Axel Dörfler
3ef37dbe51 Now listens to file/attribute changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 22:48:55 +00:00
beveloper
7a2702788f fixed assigned BBuffer size, the size of a buffer is now the requested size, not the allocated size
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 22:25:05 +00:00
beveloper
c0df25dada removed debug output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 22:21:56 +00:00
Axel Dörfler
0283ecc0cd Implemented case insensitive search. It's now available in hex mode as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 21:15:31 +00:00
Axel Dörfler
61102d4381 Fixed bug in GetHexFromData() (accidently used Text() instead of the data
parameter passed in).
Now correctly restores the whole state (find mode and case sensitivity).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:53:43 +00:00
Axel Dörfler
96e78734f6 The FindWindow can now restore a previous state; it's now set to the
state from the window that opened it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:32:59 +00:00
Matthew Wilber
51c15c1cad Changed TGATranslator to use shared translator code instead of duplicating code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:32:34 +00:00
Matthew Wilber
c56079fb22 Initial checking for shared translator code. Many of the translators share many lines of the same code. This code helps eliminate duplicate code, and should help the process of making translators easier
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:29:57 +00:00
Axel Dörfler
afed986dc0 Added missing hex <-> data conversions. Find now works fine.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:23:34 +00:00
beveloper
bac2b3f15c When the decoder doesn't support the requested format, the raw decoder is utilized
to provide a format conversion to the requested raw format.
Added a few workarounds for applications that don't requst the required format
but instead assume to get a specific one.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:53:57 +00:00
beveloper
94722b265c removed debug output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:50:56 +00:00
beveloper
c8f5115b32 call FreeCookie() on 0 cookies, too
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:50:23 +00:00
beveloper
93df7353db simplified vorbis format negotiation and fixed buffer_size negotiation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:48:22 +00:00
beveloper
e4e48cc279 crash fix for broken files
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:46:50 +00:00
beveloper
fd8c0a5cca fixed buffer size format negotiation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:46:09 +00:00
Axel Dörfler
f19cd99782 Hex mode text input now works. BTextView is really lacking in some parts.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:20:04 +00:00
Matthew Wilber
f08ccd9586 updated quality/capability numbers, changed for new version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:10:58 +00:00
Matthew Wilber
ba75d70283 udpated quality/capability numbers, changed for new version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:09:17 +00:00
Matthew Wilber
39bd440993 updated for new version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:08:29 +00:00
Matthew Wilber
4380aa029e Fixed translator version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:06:47 +00:00
beveloper
fb3053bc25 removed int16 decoding (was a SoundPlay workaround)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 17:58:32 +00:00
beveloper
34cee003fb fixed reporting of frameCount, removed truncation of reported duration
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 17:34:27 +00:00
beveloper
63dd01d5f2 added saturation to float conversion
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 17:33:36 +00:00
beveloper
d480685184 since GetStreamInfo is called multiple times, moved initialization into AllocateCookie
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 17:14:16 +00:00
Matthew Wilber
d796ec827a Updated for version macro name changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 16:55:12 +00:00
Axel Dörfler
3aed9eddce Implemented a find panel. It's one application wide panel that will always
target the last activated window.
Not yet complete - work in progress.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 14:22:17 +00:00
beveloper
9e0c18a3e0 added new MIME types to allow playing OGG movies and mpc audio files from mounted FAT32 (windows) partitions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 23:50:08 +00:00
Matthew Wilber
d5b989f7ff Changed to use version macros
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 19:17:11 +00:00
Ingo Weinhold
010983f10d Removed superfluous creation of a BRoster.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 18:25:46 +00:00
shatty
7dc96e9455 add echogals and echo24 jam packages
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 09:14:46 +00:00
Axel Dörfler
3f7c1872fa Only updates the block position view when searching is in progress.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 04:21:19 +00:00
Axel Dörfler
995924c2ed The PositionSlider now darkens its filled color if its drawn disabled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 04:15:53 +00:00
Axel Dörfler
8db249194c Implemented find functionality. The find panel is still missing though, it
just searches for "test".
The find itself is implemented in DataEditor::Find() which sets the editor
in read-only mode and searches for the specified data. It will update a
progress monitor, it will find data no matter if it's on a view size break,
and it is interruptible at any time.
The DataEditor change methods now respect the read-only mode, and return
B_NOT_ALLOWED in this case.
Renamed the UpdateLooper class to EditorLooper class, since it now also
runs the find action.
The ProbeView class now maintains the "Find Again" menu item; it's target
message always contains the item that last searched for.
The HeaderView will now show a "Stop" button while the search operation
is in progress; it also acts as the Find() progress monitor.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 04:10:48 +00:00
Axel Dörfler
5d8680c0bb Added a message to change the selection.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 04:04:47 +00:00
Axel Dörfler
4fa250ba8d Replaced lazy mode text positioning with real code.
Turns out it didn't work with the menu in sticky mode (because of the triggers).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 22:49:59 +00:00
Axel Dörfler
a7d7e9c80f Added ToDo items to some code I looked at.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 22:48:32 +00:00
Axel Dörfler
fa78c88efa The attribute editors are now subclassing TypeEditorView which has a
CommitChanges() method. Editors like the MimeTypeEditor will use this
to propagate their current content when the window receives QuitRequested().
Brought the StringEditor to a usable state (note, currently, all attribute
editors can only change what's there; they cannot change the size of the
attribute - this will be fixed at a later point).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 22:26:37 +00:00
Axel Dörfler
54df6d4d66 Probe() now resolves symlinks, and longer accepts directories. It also
won't try to open the file read-only anymore.
RefsReceived() now opens an alert explaining the reason if Probe() fails.
Slightly changed the about requester.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 21:45:31 +00:00
Axel Dörfler
f424774990 Now accepts directories, but redirects them to their volume instead; also
adopts the block size from the file system in that case.
Fixed the broken check for a device (would also succeed for other types,
stat.st_mode types cannot just be or'd).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 21:38:03 +00:00
Axel Dörfler
11d0369852 No longer displays the selection when the file size is 0.
Also fixed a possibly wrong cursor position in that case.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 21:35:23 +00:00
Axel Dörfler
e27438edba Will now replace the entry_ref name with the volume title if it's a directory
(since only volumes can slip through, not any directory).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 21:34:11 +00:00
Axel Dörfler
889d692f77 Added some missing consts.
The header will now get the entry_ref from the editor, and not the one
passed to the view (because it may have redirected it).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 21:32:28 +00:00
Axel Dörfler
41f353fdb0 The ProbeWindow (base class for FileWindow and AttributeWindow) will now
pass B_SIMPLE_DATA messages to the application but relabel them as
B_REFS_RECEIVED first.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 21:31:07 +00:00
Axel Dörfler
01f3fea56c The DataEditor always starts in the device native block size or 512 for all
other file types, but the block size menu didn't take that into account, it
always showed "512" to be active when started.
Also, if the DataEditor has a block size that is not yet part of the block
size menu, it will be added and made current.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 20:21:11 +00:00
Axel Dörfler
383a3578d0 Removed debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 20:19:30 +00:00
Axel Dörfler
8514048790 Added the ability to merge changes. That means undo/redo now have a
handier granularity.
ReplaceChange will now try to merge with the next ReplaceChange if they
are adjacent.
Fixed compilation with tracing enabled.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 19:57:45 +00:00
Axel Dörfler
768673c687 Changed the default button to remove the attribute, as that's a bit more
convenient and actually shows some trust in the users decision :-)
Also changed the text to make clear that this action is not covered by
the undo functionality.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 19:02:36 +00:00
Axel Dörfler
fe8682ea45 Implemented the bookmark menu.
Added a possible "block" member for the kMsgPositionUpdate message.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 18:41:33 +00:00
Axel Dörfler
0a39d7d615 ProbeView accidently didn't listen to kDataViewPreferredSize events.
Implemented the "Fit" font size setting.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 17:14:53 +00:00
Axel Dörfler
a7511f3654 Implemented changing the block size - that caused several changes to
DataEditor::SetViewSize()/SetViewOffset() because they did not correctly
update some values under certain circumstances.
There is now a kMsgDataEditorParameterChange instead of just ...OffsetChange;
the message will contain information about what has changed exactly.
Added a new kDataViewPreferredSize notifier that indicates a change of
the preferred size of the DataView. The ProbeView now listens to that
instead of knowing when to update the window limits.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-27 02:51:48 +00:00
Axel Dörfler
def5f759cb Save() actually always displayed an error requester, even if there was no error.
Started working on the block size menu.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 20:18:33 +00:00
Axel Dörfler
124640857d Now made the kSignature constant accessible in an appropriate way.
Implemented the print view stuff (as borrowed from ShowImage). Not yet tested
because the print_server is funny today over here...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 20:09:11 +00:00
Axel Dörfler
aa60f34665 Added the nice "Open File" recent documents menu.
Moved the DiskProbe application signature constant into the DiskProbe.h header file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 19:38:14 +00:00
Axel Dörfler
0adaff854a Now checks if there are any outstanding changes in the editor when the
window is closed.
Also, it now reports errors from the save operation if there were any.
Enabled the "Print" and "Page Setup" menu items.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 19:15:37 +00:00
Axel Dörfler
79681755a6 StateWatcher now only sends the update message if some state actually has changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 18:26:50 +00:00
Axel Dörfler
2aa201551a ApplyChanges() didn't always work correctly. Save() could crash with a
wrong index to the fChanges list.
Added the compile time possibility to trace the data editor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 18:18:28 +00:00
Axel Dörfler
923dddc23d The HeaderView now checks the position before it propagates it for kMsgPositionUpdate.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 18:16:10 +00:00
Axel Dörfler
a4ce63bfc4 Implemented Save() functionality. ApplyChanges() can now create the editor
version of the file from any state.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 16:41:09 +00:00
Axel Dörfler
c0ced84a62 The Save/Print menu items of the ProbeView were added too soon, so that
BInvoker::SetTarget() could not work yet (before the view was added to
the window).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 16:36:08 +00:00
Axel Dörfler
c4473afbd1 Now maintains the state of the "Save" menu item.
It will now call DataEditor::Save() in B_SAVE_REQUESTED, but it doesn't yet
notify the user on errors (other then printing them to stdout).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 16:33:48 +00:00
Axel Dörfler
c65f61d4ad Added a StateWatcher class that will automatically send notices for
all changed states during the lifetime of the object upon destruction.
Added some comments.
Uncommented the IsModified() method (does not yet work correctly, though).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 15:18:02 +00:00
Axel Dörfler
35789209bd Removed the MIME type picker from the MimeTypeEditor - it was not yet finished
anyway, and I think it doesn't really belong to this app's realm.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 13:04:55 +00:00
Rudolf Cornelissen
b3c153d680 narrowed PLL discriminator restrictions, should fix last fuzzy modes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 13:02:27 +00:00
Axel Dörfler
6781cbdc9b Removed the "Block/Write" menu item, and introduced new "Save" menu items;
they are not yet working, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 12:54:51 +00:00
Axel Dörfler
c7a76e9f26 Moved the attribute editors into a separate file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 12:41:23 +00:00
Stefano Ceccherini
a8c7c591fa from Korli: lib link order reversed to allow finding the symbol launch_media_server in our libmedia.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 08:34:25 +00:00
shatty
f870bff890 fix brain-dead branching
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 08:22:48 +00:00
shatty
4a673a0246 fix brain-dead branching
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 08:16:53 +00:00
shatty
d836ffd41a stream-only version of shared seekable/stream implementation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 08:12:28 +00:00
shatty
eab11aaaa3 don't call debugger in decode, slightly shorter pretty name
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 07:54:26 +00:00
Axel Dörfler
707aa753f3 Removed DataEditor::SetToAttribute() method.
DataEditor::InitCheck() is now properly working for all types.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 05:03:38 +00:00
Axel Dörfler
9993df0f2a Connected the font size menu. "Fit" doesn't work yet, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 04:47:39 +00:00
Axel Dörfler
b607d18b74 Now also send a selection update notice if the contents have changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 04:35:35 +00:00
Axel Dörfler
7e55eac336 Added a simple image/icon view for the attributes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 03:53:05 +00:00
Axel Dörfler
609442f8f8 Moved the B_COPY code into a separate function. Implemented B_PASTE.
Now also changes the selection to the cursor position in the hex editor when
you change the first part of the byte.
No need to hold the editor lock for Replace().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 02:05:41 +00:00
Axel Dörfler
02f331d59c We no longer need to hold the editor lock for DataEditor::Replace().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 02:00:38 +00:00
Axel Dörfler
ee24db11e1 Added some argument bound checks in Replace() and SetViewOffset().
Replace(), Insert(), and Remove() now locks the editor themselves.
ReplaceChange::Normalize() corrected the size for the right reason in a wrong way.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 01:59:42 +00:00
Axel Dörfler
35f497aa98 Now maintains the Selection/Native/Swapped menu items (which contain the
block position where the currently selected bytes would point to).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-25 17:39:01 +00:00
Axel Dörfler
32d3a4554d Added a method to access DataView's internal buffer.
Implemented editing functionality for both focus types.
Optimized InvalidateRange() if the update spans over the whole view.
Now resets the cursor position/selection when the editor offset changed.
UpdateFromEditor() now takes the range of the size into account.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-25 17:36:12 +00:00
Axel Dörfler
4897914eca Accidently added only an int32 for the size, not an int64.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-25 15:25:07 +00:00
Axel Dörfler
51f0d53048 "int32 * uint32" doesn't give what I wanted (the "previous block" function
was broken).
"Write" had the wrong shortcut (and I already wondered...).
The PositionSlider now correctly disables itself when it's not needed. Added
some nice disabled drawings for the slider bar.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-25 00:54:39 +00:00
Axel Dörfler
7d7f16ac72 The AttributeWindow has now possibly two editors, one raw editor (the
standard ProbeView), and one type editor. Started to implemented different
type editors, so far we have: BooleanEditor, StringEditor (not yet fully
working), NumberEditor, and MimeTypeEditor (not complete).
Needed to trick quite a bit to get BTabView to do what I want, since we
cannot detach the ProbeView without losing all of its menus.
All editor views share one backend DataEditor object, so everything is
synchronized and updated automatically.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 17:03:44 +00:00
Axel Dörfler
d426c2b9ea Now maintains the state of the undo/redo menu items.
Fixed the size limits when the view is buried a bit deeper in the hierarchy.
Tried to disable the slider when it's of no use, but it has no effect...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 16:59:15 +00:00
Axel Dörfler
4886c973ab Now has Undo/Redo support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 16:56:47 +00:00
Axel Dörfler
66fcb84e31 Now maintains the undo/redo state watcher, and also the data update
containing the range of affected bytes.
Added missing initialization of fLastChange and fFirstChange.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 16:54:28 +00:00
shatty
77b98cab57 ogg brought up to cvs as of today, required for theora
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 13:52:39 +00:00
shatty
d9a70ec5c8 improved memory cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 13:51:12 +00:00
shatty
dd05a93c1b theora codec based on theora cvs as of today
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 13:50:14 +00:00
Adi Oanca
6cb226fd44 small shnages because of the new redrawing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 12:03:51 +00:00
Adi Oanca
296a7f991d completely rewritten!
This is the CORE of the NEW drawing code, which WORKS very well! :-)
ATM, only WinBorder remains to be rewritten, but that would be an easy job, because the core is here in Layer class and WinBorder is just a subclass of it...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 12:02:47 +00:00
Adi Oanca
6844f6d0eb small changes because of the new redrawing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:59:11 +00:00
Adi Oanca
91cf2bda4a Modified a few constrctors so this is the actualized version
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:58:25 +00:00
Adi Oanca
e0947c82c8 small fixes because of the new redrawing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:56:43 +00:00
Adi Oanca
01f14b6c8c reduced to a minimum. It's the next on my TODO list to make redrawing code work it also.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:56:03 +00:00