* PrintControllerWithStatusDialog.cs: same.
* ToolBar.cs: same.
* FolderBrowserDialog.cs: same.
* Splitter.cs: same.
* DataGridViewComboBoxCell.cs: same.
* XplatUIWin32.cs: same.
* PictureBox.cs: same.
* Win32DnD.cs: same.
* PageSetupDialog.cs: same.
* FileDialog.cs: same.
* PrintDialog.cs: same.
* DataGridTextBoxColumn.cs: same.
* DrawTreeNodeEventArgs.cs: same (and fix corcompare)
2006-12-05 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=69060
+2006-12-05 Chris Toshok <toshok@ximian.com>
+
+ * DataGridView.cs: fix compiler warnings.
+
+ * PrintControllerWithStatusDialog.cs: same.
+
+ * ToolBar.cs: same.
+
+ * FolderBrowserDialog.cs: same.
+
+ * Splitter.cs: same.
+
+ * DataGridViewComboBoxCell.cs: same.
+
+ * XplatUIWin32.cs: same.
+
+ * PictureBox.cs: same.
+
+ * Win32DnD.cs: same.
+
+ * PageSetupDialog.cs: same.
+
+ * FileDialog.cs: same.
+
+ * PrintDialog.cs: same.
+
+ * DataGridTextBoxColumn.cs: same.
+
+ * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
+
2006-12-05 Chris Toshok <toshok@ximian.com>
* TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
static readonly Color def_parentrowsfore_color = ThemeEngine.Current.DataGridParentRowsForeColor;
/* colors */
- Color background_color;
+ // XXX this needs addressing. Control.background_color should not be internal.
+ new Color background_color;
Color caption_backcolor;
Color caption_forecolor;
Color parentrowsback_color;
SetColumnValueAtRow (dataSource, rowNum, textbox.Text);
}
}
- catch (Exception e) {
+ catch {
return false;
}
private string dataMember;
private object dataSource;
private DataGridViewCellStyle defaultCellStyle;
- private Control editingControl;
+ //private Control editingControl;
private DataGridViewEditMode editMode;
private bool enableHeadersVisualStyles;
private DataGridViewCell firstDisplayedCell;
private Color gridColor = Color.FromKnownColor(KnownColor.ControlDarkDark);
private int horizontalScrollingOffset;
private bool isCurrentCellDirty;
- private bool isCurrentRowDirty;
+ //private bool isCurrentRowDirty;
private bool multiSelect;
private bool readOnly;
private DataGridViewHeaderBorderStyle rowHeadersBorderStyle;
private ArrayList list;
- private DataGridViewComboBoxCell owner;
+ //private DataGridViewComboBoxCell owner;
public ObjectCollection (DataGridViewComboBoxCell owner) {
- this.owner = owner;
+ //this.owner = owner;
list = new ArrayList();
}
set { draw_default = value; }
}
- Graphics Graphics
+ public Graphics Graphics
{
get { return graphics; }
}
- TreeNode Node
+ public TreeNode Node
{
get { return node; }
}
- TreeNodeStates State
+ public TreeNodeStates State
{
get { return state; }
}
#endregion // Public Instance Properties
}
}
-#endif
\ No newline at end of file
+#endif
public DirComboBox (MWFVFS vfs)
{
+ this.vfs = vfs;
+
SuspendLayout ();
DrawMode = DrawMode.OwnerDrawFixed;
myComputerDirComboboxItem = new DirComboBoxItem (imageList, 3, "My Computer", MWFVFS.MyComputerPrefix, indent);
networkDirComboboxItem = new DirComboBoxItem (imageList, 4, "My Network", MWFVFS.MyNetworkPrefix, indent);
- ArrayList al = vfs.GetMyComputerContent ();
+ ArrayList al = this.vfs.GetMyComputerContent ();
foreach (FSEntry fsEntry in al) {
myComputerItems.Add (new DirComboBoxItem (MimeIconEngine.LargeIcons, fsEntry.IconIndex, fsEntry.Name, fsEntry.FullName, indent * 2));
public MWFFileView (MWFVFS vfs)
{
this.vfs = vfs;
- vfs.RegisterUpdateDelegate (new MWFVFS.UpdateDelegate (RealFileViewUpdate), this);
+ this.vfs.RegisterUpdateDelegate (new MWFVFS.UpdateDelegate (RealFileViewUpdate), this);
SuspendLayout ();
internal class FolderBrowserTreeView : TreeView
{
private MWFVFS vfs = new MWFVFS ();
- private FBTreeNode root_node;
+ new private FBTreeNode root_node;
private FolderBrowserDialog parentDialog;
private ImageList imageList = new ImageList ();
private Environment.SpecialFolder rootFolder;
[DefaultProperty("Document")]
public sealed class PageSetupDialog : CommonDialog {
- const int yard_pound_default = 100;
- static readonly int meter_default = (int) Math.Round (10 * 3.937 * 100);
+ //const int yard_pound_default = 100;
+ //static readonly int meter_default = (int) Math.Round (10 * 3.937 * 100);
#region Local variables
private PrintDocument document;
private Image image;
private PictureBoxSizeMode size_mode;
//private bool recalc;
+#if NET_2_0
private Image initial_image;
+#endif
private int no_update;
#endregion // Fields
StopAnimation ();
image = null;
}
+#if NET_2_0
initial_image = null;
+#endif
base.Dispose (disposing);
}
public class PrintControllerWithStatusDialog : PrintController {
#region Local variables
PrintController underlyingController;
- string dialogTitle;
PrintingDialog dialog;
int currentPage;
#endregion // Local variables
[DefaultProperty("Document")]
public sealed class PrintDialog : CommonDialog {
PrintDocument document;
+#if NET_2_0
bool allow_current_page;
+#endif
bool allow_print_to_file;
bool allow_selection;
bool allow_some_pages;
#region Local Variables
static private Cursor splitter_ns;
static private Cursor splitter_we;
- private BorderStyle border_style;
+ // XXX this "new" shouldn't be here. Control shouldn't define border_style as internal.
+ new private BorderStyle border_style;
private int min_extra;
private int min_size;
private int split_position; // Current splitter position
private string tooltip_text = String.Empty;
private Rectangle tab_bounds;
private int row;
+#if NET_2_0
private bool use_visual_style_back_color;
+#endif
#endregion // Fields
#region Public Constructors
// XXX this should probably go away and it should call
// into Control.ImeMode instead.
- ImeMode ime_mode = ImeMode.Disable;
+ new ImeMode ime_mode = ImeMode.Disable;
[Browsable (false)]
[EditorBrowsable (EditorBrowsableState.Never)]
private static readonly Guid IID_IDropSource = new Guid("00000121-0000-0000-C000-000000000046");
private static readonly Guid IID_IDropTarget = new Guid("00000122-0000-0000-C000-000000000046");
- internal Win32DnD() {
+ static Win32DnD()
+ {
// Required for all other OLE functions to work
Win32OleInitialize(IntPtr.Zero);
private static int scroll_height;
private static Hashtable wm_nc_registered;
- private static Win32DnD DnD;
#endregion // Local Variables
#region Private Structs
// Handle singleton stuff first
ref_count=0;
- DnD = new Win32DnD();
-
mouse_state = MouseButtons.None;
mouse_position = Point.Empty;