-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Dragon-0609/dev
Version 5 beta-2
- Loading branch information
Showing
131 changed files
with
8,385 additions
and
1,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[alias] | ||
reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using System.Collections.Generic; | ||
using System.Windows.Forms; | ||
|
||
namespace Yuki_Theme_Plugin.Controls | ||
{ | ||
public class ToolItemGroup | ||
{ | ||
public List <ToolStripItem> items = new List <ToolStripItem> (); | ||
|
||
private ToolItemGroup _prev; | ||
|
||
public ToolItemGroup next; | ||
|
||
public ToolItemGroup prev | ||
{ | ||
get { return _prev; } | ||
set | ||
{ | ||
_prev = value; | ||
value.next = this; | ||
} | ||
} | ||
|
||
public ToolStripSeparator separator = null; | ||
|
||
public bool isLast = false; | ||
|
||
public bool IsEmpty () | ||
{ | ||
return items.Count < 1; | ||
} | ||
|
||
public bool HasItem (string nm) | ||
{ | ||
bool b = false; | ||
foreach (ToolStripItem item in items) | ||
{ | ||
if (item.Name == nm) | ||
{ | ||
b = true; | ||
break; | ||
} | ||
} | ||
|
||
return b; | ||
} | ||
|
||
public ToolStripItem GetItem (string nm) | ||
{ | ||
ToolStripItem b = null; | ||
foreach (ToolStripItem item in items) | ||
{ | ||
if (item.Name == nm) | ||
{ | ||
b = item; | ||
break; | ||
} | ||
} | ||
|
||
return b; | ||
} | ||
|
||
public bool isAllHidden () | ||
{ | ||
bool b = true; | ||
foreach (ToolStripItem item in items) | ||
{ | ||
b = b && !item.Visible; | ||
} | ||
|
||
return b; | ||
} | ||
|
||
public bool isAllRight () | ||
{ | ||
bool b = true; | ||
foreach (ToolStripItem item in items) | ||
{ | ||
b = b && item.Alignment == ToolStripItemAlignment.Right; | ||
} | ||
|
||
return b; | ||
} | ||
} | ||
} |
Oops, something went wrong.