* ListView.cs: Do not lose focus when edit is canceled. Process
Escape as regular key (to prevent closing of dialogs).
svn path=/trunk/mcs/; revision=73331
did not modify label.
* ListView.cs: Only set LabelEditEventArgs.Label if user actually
modified the text. Reset Label when user presses Escape in edit mode.
Move focus to ListView after having cancelled or finished editing the
label.
svn path=/trunk/mcs/; revision=73329
private. Clear textbox when Text is set to null and SelectedIndex is
already -1.
* FileDialog.cs: Removed unnecessary initializations. Removed
workarounds for ComboBox bugs that are now fixed. Modified
DefaultExt, InitialDirectory and Title property to change null to
zero-length string in getters. Avoid directly accessing fields.
* ComboBoxTest.cs: Added test for setting Text to null if SelecedIndex
is already -1.
svn path=/trunk/mcs/; revision=73258
profile, do not check filename(s) for illegal character if filename(s)
were set non-interactively but always check on 1.0 profile. Fixed NRE
in DefaultExt and only strip off first leading dot. Improve exception
message when invalid Filter is set. Do not ignore InitialDirectory if
it does no exist. Store specified Title, and if empty use default
title (depending on type of dialog). Added an internal DialogTitle
property for retrieving dialog title. Fixed logic of displayed dir to
more closely match MS. Avoid setting ComboBox.Text to a zero-length
string as its buggy.
* OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
FileName is a zero-length string (it can never be null). Override
DialogTitle property to set default title of dialog box.
* SaveFileDialog.cs: Override DialogTitle property to set default
title of dialog box.
* SaveFileDialogTest.cs: Added tests for SaveFileDialog.
* System.Windows.Forms_test.dll.sources: add SaveFileDialogTest.cs.
svn path=/trunk/mcs/; revision=73090
to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
after we've updated the SelectedIndex. Fixes part of bug #80887.
* SaveFileDialog.cs: Set text of filetype label.
svn path=/trunk/mcs/; revision=73068
* dialog
is closed, so we need to make sure that we aren't changing the
dialog result when the OK (Open or Save) button has been clicked
and we are closing the window ourselves. Note we don't need to
worry about the cache being written in this case, because it was
already done in the previous FilOk call.
svn path=/trunk/mcs/; revision=71990
* FileDialog.cs:
- Move to using System.ComponentModel.EventHandlerList
- Replace Refresh with Invalidate
- Clear the mime filecache on closing
- Some other memory reducing work. After beeing closed FD now uses
only about 300 KB for the fdo mime stuff plus the memory of the
cached icons.
* Mime.cs: Changed coding style and removed unnecessary commented
code. Some more memory memory reducing work.
svn path=/trunk/mcs/; revision=71665
* FileDialog.cs: Sebastien fixed the libgdiplus png alpha
problems. So it is time to bring back the old popupbutton colors.
svn path=/trunk/mcs/; revision=70503
* FileDialog.cs: Always return the value for FilterIndex that
was set. Internally convert it to values that make sense.
svn path=/trunk/mcs/; revision=67658
2006-11-09 Alexander Olk <[email protected]>
* System.Windows.Forms_test.dll.sources: Added CommonDialogsTest.cs.
In Test/System.Windows.Forms:
2006-11-09 Alexander Olk <[email protected]>
* CommonDialogsTest.cs: Added
In System.Windows.Forms:
2006-11-09 Alexander Olk <[email protected]>
* FileDialog.cs:
- Fix ToString ()
- An ArgumentException is now thrown if a wrong filter
is applied (matches ms). The previous filter doesn't change
anymore if an exception is thrown.
- Changing the FileName property also affects FileNames
* ColorDialog.cs: The length of the CustomColors array is always
16. It doesn't matter if we use a smaller array or null to update
or change the custom colors property.
* FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
for RootFolder if we get a undefined value.
svn path=/trunk/mcs/; revision=67618
* FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
had to remove support for links that point to a directory. FileInfo
returns no usefull information (means, the directory they point to)
for such links. Replaced some empty string ("") with String.Empty.
svn path=/trunk/mcs/; revision=67380
* FileDialog.cs: Don't crash if a path is not accessible
(System.UnauthorizedAccessException). Fixes#79569.
* MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
a ':' too. Return unknown icon for those paths/files.
svn path=/trunk/mcs/; revision=66200
* FileDialog.cs: After reading FileDialog settings from mwf_config
use Desktop prefix only if a real folder doesn't exist anymore.
svn path=/trunk/mcs/; revision=64411
* FileDialog.cs: Making sure the control is created before we get a
chance to use it with BeginInvoke (Fixes#79096)
svn path=/trunk/mcs/; revision=64254
* FileDialog.cs: Don't create a new folder in "MyComputer" folder.
* FolderBrowserDialog.cs:
- Use MWFConfig to store and read size and position settings
- Added code to create a new folder (button or context menu).
Use TreeView labeledit to change the name of the new folder.
svn path=/trunk/mcs/; revision=62614
* FileDialog.cs: Added GetFoldersOnly to MWFVFS
* FolderBrowserDialog.cs: Almost a complete rewrite.
- Better support for Environment.Specialfolders
- Added support for MWFVFS
- Made setting SelectedPath work
svn path=/trunk/mcs/; revision=62508
* FileDialog.cs:
- Fixed really nasty bug #78771
- Don't block the whole GUI when reading directories with a lot of
entries. Use an other thread instead and call BeginInvoke to
update the ListView in MWFFileView
svn path=/trunk/mcs/; revision=62350
* FileDialog.cs: Added internal class MWFConfig.
Removed Registry support and replaced it with support for the new
MWFConfig class. See MWFConfig comments for more information.
svn path=/trunk/mcs/; revision=62182
* FileDialog.cs: handle access errors when trying to create a folder
or changing to a directory. No need to initialize out parameters.
svn path=/trunk/mcs/; revision=61590
* FileDialog.cs:
- Disabled registry support for windows and added better registry
error checking for other systems (need to investigate why it
works perfectly on my system)
- If a folder already exist show an error MessageBox instead of
trying to create an indexed name.
- Fixed a non intentional typo.
svn path=/trunk/mcs/; revision=61585
- added a "virtual" file system that handles the differences
between unix and windows file systems (especially the directory
structure). Moved most of the directory and file handling code
into the vfs.
Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
UnixFileSystem and FSEntry.
- Recently used folder/directory, size, location and used file names
(file name ComboBox) are now stored in the registry and get read
before the dialog shows up (fixes part 6 of bug #78446).
- Creation of new folders/directories is now possible (context menu
or ToolBar). Added TextEntryDialog for this that fills in the gap
until ListView.LabelEdit works.
- Fixed cursor handling (bug #78527) and focus handling for
PopupButtonPanel
- Various "Search in" ComboBox enhancements. The content of the
dropdown listbox now almost matches ms.
- Changed the behaviour when the user switches to SpecialFolder
Recent to show the ListView in View.Details.
- Beside using the ToolBar to change the View property of the
file ListView it is now possible to use the context menu too.
2006-06-08 Alexander Olk <[email protected]>
svn path=/trunk/mcs/; revision=61580
* FileDialog.cs: disable the up button when in 'Recently Used' or 'My
Computer'. Clicking it in the network view goes to 'My Computer'.
Added CIFS filesystem type. Display the mount point of filesystems.
Avoid duplicate mount points (happens for me with CIFS);
svn path=/trunk/mcs/; revision=61513
* FileDialog.cs: If AddExtension property is true autocomplete the
extensions in SaveFileDialog correctly. Fixes bug #78453.
Set MyNetwork and MyComputer to "C:\" for windows. This should
fix part 8 of bug #78446 for now.
svn path=/trunk/mcs/; revision=61170
* Theme.cs (GetSizedResourceImage): Scale images if the proper
size is not found.
* FileDialog.cs: Do not change the background for the side bar as
it wont work nicely with the theme, and also reduces the artifacts
in rendering the icons (which I want to fix too).
* MimeIcon.cs (ResourceImageLoader): Load images from assembly
resources, not resgen resources.
(PlatformDefaultHandler): Pull images using the new API.
2006-05-23 Miguel de Icaza <[email protected]>
* resources/: Add Tango icons in various sizes.
svn path=/trunk/mcs/; revision=61010
* FileDialog.cs: Update the filename combobox when navigating through
the ListView with the cursor keys. Fixes part 7 of bug #78446.
svn path=/trunk/mcs/; revision=60963
* FileDialog.cs: Added focus handling for PopupButtonPanel.
Fixes part 1 and 2 of bug #78446
* XplatUIX11.cs (SetWindowPos): Recalculate claient area size on resizes
svn path=/trunk/mcs/; revision=60872
* ListView.cs: ArgumentOutOfRangeException, single versions of the
exception should throw the name of the invalid argument.
* FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
there are no files listed.
svn path=/trunk/mcs/; revision=60854