mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-25 09:59:18 +01:00
Revert "refactor(Dalamud): switch to file-scoped namespaces"
This reverts commit b5f34c3199.
This commit is contained in:
parent
d473826247
commit
1561fbac00
325 changed files with 45549 additions and 45209 deletions
|
|
@ -2,56 +2,57 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Dalamud.Interface.ImGuiFileDialog;
|
||||
|
||||
/// <summary>
|
||||
/// A file or folder picker.
|
||||
/// </summary>
|
||||
public partial class FileDialog
|
||||
namespace Dalamud.Interface.ImGuiFileDialog
|
||||
{
|
||||
private struct FileStruct
|
||||
/// <summary>
|
||||
/// A file or folder picker.
|
||||
/// </summary>
|
||||
public partial class FileDialog
|
||||
{
|
||||
public FileStructType Type;
|
||||
public string FilePath;
|
||||
public string FileName;
|
||||
public string Ext;
|
||||
public long FileSize;
|
||||
public string FormattedFileSize;
|
||||
public string FileModifiedDate;
|
||||
}
|
||||
|
||||
private struct SideBarItem
|
||||
{
|
||||
public char Icon;
|
||||
public string Text;
|
||||
public string Location;
|
||||
}
|
||||
|
||||
private struct FilterStruct
|
||||
{
|
||||
public string Filter;
|
||||
public HashSet<string> CollectionFilters;
|
||||
|
||||
public void Clear()
|
||||
private struct FileStruct
|
||||
{
|
||||
this.Filter = string.Empty;
|
||||
this.CollectionFilters.Clear();
|
||||
public FileStructType Type;
|
||||
public string FilePath;
|
||||
public string FileName;
|
||||
public string Ext;
|
||||
public long FileSize;
|
||||
public string FormattedFileSize;
|
||||
public string FileModifiedDate;
|
||||
}
|
||||
|
||||
public bool Empty()
|
||||
private struct SideBarItem
|
||||
{
|
||||
return string.IsNullOrEmpty(this.Filter) && ((this.CollectionFilters == null) || (this.CollectionFilters.Count == 0));
|
||||
public char Icon;
|
||||
public string Text;
|
||||
public string Location;
|
||||
}
|
||||
|
||||
public bool FilterExists(string filter)
|
||||
private struct FilterStruct
|
||||
{
|
||||
return (this.Filter == filter) || (this.CollectionFilters != null && this.CollectionFilters.Contains(filter));
|
||||
}
|
||||
}
|
||||
public string Filter;
|
||||
public HashSet<string> CollectionFilters;
|
||||
|
||||
private struct IconColorItem
|
||||
{
|
||||
public char Icon;
|
||||
public Vector4 Color;
|
||||
public void Clear()
|
||||
{
|
||||
this.Filter = string.Empty;
|
||||
this.CollectionFilters.Clear();
|
||||
}
|
||||
|
||||
public bool Empty()
|
||||
{
|
||||
return string.IsNullOrEmpty(this.Filter) && ((this.CollectionFilters == null) || (this.CollectionFilters.Count == 0));
|
||||
}
|
||||
|
||||
public bool FilterExists(string filter)
|
||||
{
|
||||
return (this.Filter == filter) || (this.CollectionFilters != null && this.CollectionFilters.Contains(filter));
|
||||
}
|
||||
}
|
||||
|
||||
private struct IconColorItem
|
||||
{
|
||||
public char Icon;
|
||||
public Vector4 Color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue