// SMTP GUI definition
//
// ServerAddress			Address of target server
// Name						Name of client. Works only with fFrame
// Target					Target of the messages to send
//
// MessagesGauge			% of how many messages are already sent this session
// LinesGauge				% of how many lines are already sent this message
//
// Action					What the client currently does
// State					Last state from server
//
// MessagesToSend			Messages that have to be send
// MessagesSent				Messages that have been sent
//
// TotalMessagesSent		Messages that have been sent since smtp is running
//
// LinesSent				Lines sent of the current message
// LinesToSend				Lines to send of the current message

// This is the window as a framework around the main group
#define "Main" Window
{
	Title "SMTP",
	MoveTo 200 24,
	Child VerticalGroup
	{
		// This one is the main group
		Name "MainGroup"
	}
}

// This one represents one SMTPClient
#define "SMTPClient" Frame
{
	Name Name,
	Text "Client",
	Child VerticalGroup
	{
		Child HorizontalGroup
		{
			Child Label( Text "Address:", HorizontalWeight 0),
			Child Label( Name ServerAddress, Text ""),
			Child Label( Text "Target:", HorizontalWeight 0),
			Child Label( Name Target, Text "", HorizontalWeight 0)
		},
		Child HorizontalGroup
		{
			Child Label( Text "Total sent:", HorizontalWeight 0),
			Child Label( Name TotalMessagesSent, Text "         0", HorizontalWeight 0)
		},
		Child HorizontalGroup
		{
			Child Label( Text "Last state:", HorizontalWeight 0),
			Child Label( Name State, Text "")
		},
		Child HorizontalGroup
		{
			Child Label( Text "Action:", HorizontalWeight 0),
			Child Label( Name Action, Text "Waiting...", HorizontalWeight 0),
		},
		Child MultiColumnGroup
		{
			Columns 5,
			ColumnWeight 0 0,
			ColumnWeight 2 0,
			ColumnWeight 4 2000,
			Transparent true,
			Child RowGroup
			{
				Child Label( Text "Messages:"),
				Child Label( Name MessagesSent, Text "0", MinimumWidthText "0000", HorizontalAlignment 2),
				Child Label( Text "/"),
				Child Label( Name MessagesToSend, Text "0", MinimumWidthText "0000"),
				Child Gauge( Name MessagesGauge, TotalValue 0, BarHeight 8, Width 200)
			},
			Child RowGroup
			{
				Child Label( Text "Lines:"),
				Child Label( Name LinesSent, Text "0", MinimumWidthText "0000", HorizontalAlignment 2),
				Child Label( Text "/"),
				Child Label( Name LinesToSend, Text "0", MinimumWidthText "0000"),
				Child Gauge( Name LinesGauge, TotalValue 0, BarHeight 8, Width 200)
			}
		}
	}
}

