Changeset 12002 for trunk/FACT++
- Timestamp:
- 09/07/11 10:58:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11998 r12002 2796 2796 out << "]</font> <B>" << info.getName() << "</B> - "; 2797 2797 2798 bool iserr = true;2798 bool iserr = 2; 2799 2799 if (!conv) 2800 2800 { … … 2805 2805 try 2806 2806 { 2807 const string dat = conv.GetString(info.getData(), info.getSize());2807 const string dat = info.getSize()==0 ? "<empty>" : conv.GetString(info.getData(), info.getSize()); 2808 2808 out << dat; 2809 iserr = false;2809 iserr = info.getSize()==0; 2810 2810 } 2811 2811 catch (const runtime_error &e) … … 2815 2815 } 2816 2816 2817 cout << "=> " << out.str() << endl; 2818 2817 2819 // srand(hash<string>()(string(info.getName()))); 2818 2820 // int bg = rand()&0xffffff; … … 2823 2825 bg = ~(bg&0x1f1f1f)&0xffffff; 2824 2826 2825 if (iserr )2827 if (iserr==2) 2826 2828 bg = 0xffffff; 2827 2829 … … 2829 2831 bgcol << hex << setfill('0') << setw(6) << bg; 2830 2832 2831 const string col = iserr ? "red" : "black";2833 const string col = iserr==0 ? "black" : (iserr==1 ? "#FF6600" : "black"); 2832 2834 const string str = "<table width='100%' bgcolor=#"+bgcol.str()+"><tr><td><font color='"+col+"'>"+out.str()+"</font></td></tr></table>"; 2833 2835
Note:
See TracChangeset
for help on using the changeset viewer.