mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
theide: InsertColor now supports qtf colors
git-svn-id: svn://ultimatepp.org/upp/trunk@3716 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e5a6d9d07f
commit
624c5a8f84
2 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
class InsertColorDlg : public WithInsertColorLayout<TopWindow> {
|
||||
typedef InsertColorDlg CLASSNAME;
|
||||
|
||||
String r[4];
|
||||
String r[5];
|
||||
|
||||
void Sync();
|
||||
void Select(int i);
|
||||
|
|
@ -31,6 +31,8 @@ void InsertColorDlg::Sync()
|
|||
ahex.SetLabel(r[2]);
|
||||
r[3] = Format("%02x%02x%02x", c.r, c.g, c.b);
|
||||
hex.SetLabel(r[3]);
|
||||
r[4] = Format("(%d.%d.%d)", c.r, c.g, c.b);
|
||||
qtf.SetLabel(r[4]);
|
||||
}
|
||||
|
||||
InsertColorDlg::InsertColorDlg()
|
||||
|
|
@ -41,6 +43,7 @@ InsertColorDlg::InsertColorDlg()
|
|||
color <<= THISBACK1(Select, 1);
|
||||
ahex <<= THISBACK1(Select, 2);
|
||||
hex <<= THISBACK1(Select, 3);
|
||||
qtf <<= THISBACK1(Select, 4);
|
||||
Sync();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue