Log of /trunk/gui/gui/src/TGMimeTypes.cxx
Parent Directory
Revision
32610 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 15 10:30:52 2010 UTC (4 years, 10 months ago) by
bellenot
File length: 9876 byte(s)
Diff to
previous 32556
- Remove one extra check and fix possible buffer overflow (coverity)
- Use "wt" flags to open the Root mime file (instead of just "w").
The format should always be specified, as the default is not the same on all platforms
Revision
11862 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 24 20:05:10 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/gui/src/TGMimeTypes.cxx
File length: 9192 byte(s)
Diff to
previous 11795
From Valeriy Onuchin:
- root.mimes. Default actions changed for some image types (*.png, *.gif,
*.jpg etc.)
Drawing images in canvas is better than drawing it as TGPictureButton.
Image drawn in canvas can be processed via context menu, scaled, resized
etc.
- TPad::Print - roll-back recent changes in GIF saving. Use again
TVirtualX::WriteGIF
method for saving GIF files which produces much smaller files.
BTW, the patent on LZW compression was expired july 2004. So, making
GIF is now legal.
- TGMimeTypes - fix nasty typo-bug in GetIcon method. The effect of the
bug was appeared as
no large icons were displayed for qq.png, qq.gif etc. files types.
- TGPicture - minory mods
- TGFileContainer::GetFilePictures - optimised for speed. To test a gain
in performance -
run TBrowser on slow computer and open up $ROOTSYS/icons directory.
New data member TGFileContainer::fCachePictures was added which allows
to switch on/off this mechanism.
- TRootBrowser. Weired "refresh behavior" was fixed - when some macro was
browsed/executed and then canvas was deleted, browser's icon box was
refreshed and
currrent "page position" was changed to the most upper one.
Now page position remains on the same place.
- Refresh TBrowser on F5 pressed action added.
- TGLVEntry - SetPictures method added, whic allows to change list view
entry pictures dynamically.
- TSystemFile. SetIconName, GetIconName methods addd
Revision
11795 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun May 15 07:30:17 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/gui/src/TGMimeTypes.cxx
File length: 9190 byte(s)
Diff to
previous 11793
From Valeriy Onuchin:
- TASImage, TRootBrowser, TGMimeTypes.cxx
The size of image thumbnail was enlarged from 32x32 to 64x64 pixels.
Appearance of picture thumbnails was much improved.
- TGPicture. Fix possible buffer overflow in HashName method.
- TRootCanvas. Possibility to save canvas in XCF format added.
This format is used in the GIMP (image processing program).
In general the new method of dynamical creation of object's icon can be
extended for any kind of objects.
Revision
11793 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun May 15 05:53:45 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/gui/src/TGMimeTypes.cxx
File length: 8954 byte(s)
Diff to
previous 1205
From Valeriy Onuchin:
- TASImage class:
o new method GetImageBuffer is introduced. It returns in-memory buffer
compressed according to the image type.
Buffer must be deallocated after usage.
This method can be used for sending images over the network.
o new method SetImageBuffer introduced. It creates image from compressed
buffer. Supported formats:
PNG - by default
XPM - two options exist:
1. xpm as a single string (raw buffer). Such a string
is returned by GetImageBuffer method.
For example:
char *buf;
int sz;
im1->GetImageBuffer(&buf, &int, TImage::kXpm); /*raw buffer*/
TImage *im2 = TImage::Create();
im2->SetImageBuffer(&buf, TImage::kXpm);
2. xpm as an array of strigs (preparsed)
For example:
char *xpm[] = {
"64 28 58 1",
" c #0A030C",
". c #1C171B"
...
TImage *im = TImage::Create();
im->SetImageBuffer(xpm, TImage::kXpm);
o custom Streamer was implemented. That allows to save images in ROOT files.
Image's thumbnail is also saved into a file.
o galaxy_image.C tutorial is modified according to new saving schema.
o new demo file gallery.root added to tutorials. It contains thumbnailed
and browsable pictures produced by some ROOT tutorials.
o fix bug im TASImage::DrawRectangle methods. Thanks to Thomas Bretz
for reporting it.
- TKey class.
Possibility to save thumbnail/icon as XPM string along with object added.
Currently such mechanism is used for saving thumbnailed images.
- TGPicture. Platform-dependent code was removed. Now TGPictures
are created by TImage objects.
- TRootBrowser classes. Possibility to show objects with dynamically created
icons added.
- numerous bug fixes in libAfterImage library.
Revision
1205 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by
brun
Original Path:
trunk/gui/src/TGMimeTypes.cxx
File length: 8952 byte(s)
Diff to
previous 3
W A R N I N G !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
virtual TObject *Clone() const;
virtual Int_t Compare(const TObject *obj) const;
virtual void Delete(Option_t *option=""); // *MENU*
virtual void DrawClass() const; // *MENU*
virtual void DrawClone(Option_t *option="") const; // *MENU*
virtual void Dump() const; // *MENU*
virtual TObject *FindObject(const TObject *obj) const;
virtual char *GetObjectInfo(Int_t px, Int_t py) const;
virtual ULong_t Hash() const;
virtual void Inspect() const; // *MENU*
virtual Bool_t IsEqual(const TObject *obj) const;
virtual void ls(Option_t *option="") const;
virtual void Print(Option_t *option="") const;
A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.