Dialog layout changes
This commit is contained in:
@@ -1,20 +1,25 @@
|
|||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY ID=CSiaDriveDlg BGCOLOR=LIGHTGREY style="font-family:MS Shell Dlg;font-size:8">
|
<BODY ID=CSiaDriveDlg BGCOLOR=LIGHTGREY style="font-family:MS Shell Dlg;font-size:8">
|
||||||
|
<TABLE WIDTH=100% HEIGHT=100%>
|
||||||
<TABLE WIDTH=100% HEIGHT=100%>
|
<TR WIDTH=100% HEIGHT=45%>
|
||||||
<TR WIDTH=100% HEIGHT=45%>
|
<TD ALIGN=LEFT VALIGN=TOP>
|
||||||
<TD ALIGN=CENTER VALIGN=BOTTOM>
|
<input id="wallet_btn" type="button" value="Wallet" />
|
||||||
TODO: Place controls here.
|
<input id="host_btn" type="button" value="Host" />
|
||||||
</TD>
|
<input id="mount_btn" type="button" value="Mount" />
|
||||||
</TR>
|
</TD>
|
||||||
<TR WIDTH=100% HEIGHT=100%>
|
</TR>
|
||||||
<TD ALIGN=RIGHT VALIGN=BOTTOM>
|
<tr align="center" valign="top">
|
||||||
<BUTTON STYLE="WIDTH:100" ID="ButtonOK">OK</BUTTON> <BUTTON STYLE="WIDTH:100" ID="ButtonCancel">Cancel</BUTTON>
|
<div id="wallet_tab"></div>
|
||||||
</TD>
|
<div id="host_tab"></div>
|
||||||
</TR>
|
<div id="mount_tab"></div>
|
||||||
</TABLE>
|
</tr>
|
||||||
|
<TR WIDTH=100% HEIGHT=100%>
|
||||||
</BODY>
|
<TD ALIGN=RIGHT VALIGN=BOTTOM>
|
||||||
|
<BUTTON STYLE="WIDTH:100" ID="ButtonOK">OK</BUTTON> <BUTTON STYLE="WIDTH:100" ID="ButtonCancel">Exit</BUTTON>
|
||||||
|
</TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
@@ -117,6 +117,7 @@
|
|||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<PreprocessorDefinitions>_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<AdditionalIncludeDirectories>..\SiaDrive.Api\</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@@ -170,6 +171,7 @@
|
|||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<PreprocessorDefinitions>_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<AdditionalIncludeDirectories>..\SiaDrive.Api\</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
@@ -54,7 +54,8 @@ END_DHTML_EVENT_MAP()
|
|||||||
|
|
||||||
|
|
||||||
CSiaDriveDlg::CSiaDriveDlg(CWnd* pParent /*=NULL*/)
|
CSiaDriveDlg::CSiaDriveDlg(CWnd* pParent /*=NULL*/)
|
||||||
: CDHtmlDialog(IDD_SIADRIVE_DIALOG, IDR_HTML_SIADRIVE_DIALOG, pParent)
|
: CDHtmlDialog(IDD_SIADRIVE_DIALOG, IDR_HTML_SIADRIVE_DIALOG, pParent),
|
||||||
|
_siaApi({L"localhost", 9980, L"1.1.0"})
|
||||||
{
|
{
|
||||||
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
|
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
|
||||||
}
|
}
|
||||||
@@ -100,7 +101,7 @@ BOOL CSiaDriveDlg::OnInitDialog()
|
|||||||
SetIcon(m_hIcon, TRUE); // Set big icon
|
SetIcon(m_hIcon, TRUE); // Set big icon
|
||||||
SetIcon(m_hIcon, FALSE); // Set small icon
|
SetIcon(m_hIcon, FALSE); // Set small icon
|
||||||
|
|
||||||
// TODO: Add extra initialization here
|
String version = _siaApi.GetServerVersion();
|
||||||
|
|
||||||
return TRUE; // return TRUE unless you set the focus to a control
|
return TRUE; // return TRUE unless you set the focus to a control
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include <SiaApi.h>
|
||||||
|
using namespace Sia::Api;
|
||||||
|
|
||||||
// CSiaDriveDlg dialog
|
// CSiaDriveDlg dialog
|
||||||
class CSiaDriveDlg : public CDHtmlDialog
|
class CSiaDriveDlg : public CDHtmlDialog
|
||||||
@@ -34,4 +35,7 @@ protected:
|
|||||||
afx_msg HCURSOR OnQueryDragIcon();
|
afx_msg HCURSOR OnQueryDragIcon();
|
||||||
DECLARE_MESSAGE_MAP()
|
DECLARE_MESSAGE_MAP()
|
||||||
DECLARE_DHTML_EVENT_MAP()
|
DECLARE_DHTML_EVENT_MAP()
|
||||||
|
|
||||||
|
private:
|
||||||
|
CSiaApi _siaApi;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user