// POP3 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
// BytesGauge				% of how many bytes are already sent this message
//
// Action					What the client currently does
// State					Last state from server
//
// MessagesToReceive		Messages that have to be received
// MessagesReceived			Messages that have been received
//
// TotalMessagesReceived	Messages that have been received since pop3 is running

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

// This one represents one SMTPClient
#define "POP3Client" Frame
{
	Name Name,
	Text "Client",
	Child VerticalGroup
	{
		Child HorizontalGroup
		{
			Child Label( Text "Address:", HorizontalWeight 0),
			Child Label( Name ServerAddress, Text ""),
			Child Label( Text "Account:", HorizontalWeight 0),
			Child Label( Name Account, Text ""),
			Child Label( Text "Source:", HorizontalWeight 0),
			Child Label( Name Source, Text "", HorizontalWeight 0)
		},
		Child HorizontalGroup
		{
			Child Label( Text "Total received:", HorizontalWeight 0),
			Child Label( Name TotalMessagesReceived, 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
		{
//				Weights 0,
			Columns 5,
			ColumnWeight 0 0,
			ColumnWeight 2 0,
			ColumnWeight 4 2000,
			Transparent true,
			Child RowGroup
			{
				Child Label( Text "Messages:"),
				Child Label( Name MessagesReceived, Text "0", MinimumWidthText "0000", HorizontalAlignment 2),
				Child Label( Text "/"),
				Child Label( Name MessagesToReceive, Text "0", MinimumWidthText "0000"),
				Child Gauge( Name MessagesGauge, TotalValue 0, BarHeight 8, Width 200)
			},
			Child RowGroup
			{
				Child Label( Text "Bytes:"),
				Child Label( Name BytesReceived, Text "0", MinimumWidthText "0000", HorizontalAlignment 2),
				Child Label( Text "/"),
				Child Label( Name BytesToReceive, Text "0", MinimumWidthText "0000"),
				Child Gauge( Name BytesGauge, TotalValue 0, BarHeight 8, Width 200)
			}
		}
	}
}

