mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.examples
git-svn-id: svn://ultimatepp.org/upp/trunk@9924 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b5a22f2a78
commit
0964208853
4 changed files with 8 additions and 11 deletions
|
|
@ -1,5 +1,3 @@
|
|||
#ifdef LAYOUTFILE
|
||||
|
||||
LAYOUT(CompareDirLayout, 496, 492)
|
||||
ITEM(Label, dv___0, SetLabel(t_("Folder &A:")).LeftPosZ(4, 52).TopPosZ(4, 19))
|
||||
ITEM(EditField, path_a, HSizePosZ(56, 4).TopPosZ(4, 19))
|
||||
|
|
@ -11,5 +9,3 @@ LAYOUT(CompareDirLayout, 496, 492)
|
|||
ITEM(Splitter, splitter, HSizePosZ(4, 4).VSizePosZ(70, 4))
|
||||
END_LAYOUT
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
description "Compares directory contents";
|
||||
description "Compares directory contents\377";
|
||||
|
||||
uses
|
||||
CtrlLib;
|
||||
|
|
|
|||
|
|
@ -109,9 +109,9 @@ void DlgCompareDir::Serialize(Stream& stream)
|
|||
|
||||
void DlgCompareDir::CmdRefresh()
|
||||
{
|
||||
pa = path_a;
|
||||
pb = path_b;
|
||||
fm = file_mask;
|
||||
pa = ~path_a;
|
||||
pb = ~path_b;
|
||||
fm = ~file_mask;
|
||||
tree.Clear();
|
||||
Image icon;
|
||||
switch(Refresh(Null, 0)) {
|
||||
|
|
@ -204,7 +204,7 @@ String DlgCompareDir::GetTreePath() const
|
|||
int f = s.Find(':');
|
||||
if(f >= 0)
|
||||
s.Trim(f);
|
||||
while(i = tree.GetParent(i))
|
||||
while((i = tree.GetParent(i)) != 0)
|
||||
s = AppendFileName(String(tree.Get(i)), s);
|
||||
return s;
|
||||
}
|
||||
|
|
@ -216,7 +216,7 @@ void DlgCompareDir::DoTreeCursor()
|
|||
return;
|
||||
String fa = AppendFileName(pa, s), fb = AppendFileName(pb, s);
|
||||
String da = LoadFile(fa), db = LoadFile(fb);
|
||||
if(!IsNull(da) || !IsNull(db))
|
||||
if(!IsNull(da) || !IsNull(db)) {
|
||||
if(IsNull(da) || IsNull(db)) {
|
||||
qtf.Hide();
|
||||
lineedit.Show();
|
||||
|
|
@ -262,6 +262,7 @@ void DlgCompareDir::DoTreeCursor()
|
|||
qtf.SetQTF(comptext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DlgCompareDir::DoBrowse(Ctrl *field)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ void TabUserEquation::OnUpdate()
|
|||
return;
|
||||
}
|
||||
|
||||
userEquation.Init("User equation", equation);
|
||||
userEquation.Init("User equation", ~equation);
|
||||
|
||||
scatter.RemoveAllSeries();
|
||||
scatter.AddSeries(userEquation).Legend(userEquation.GetFullName()).NoMark().Stroke(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue