Prioritize remote program list in uploader layout
This commit is contained in:
1 parent
5856a11a2c
commit
3fd2a81820
3 files changed
+18
-20
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
# Nextcloud TAP-Uploader
|
# Nextcloud TAP-Uploader
|
||||||
|
|
||||||
Kleine Windows-Anwendung zum Hochladen von `.tap`-Dateien in einen Nextcloud-Ordner per WebDAV. Dateien lassen sich ins Fenster ziehen oder über **Dateien auswählen** hinzufügen. Unterhalb der Auswahl zeigt die Anwendung die `.tap`-Programme an, die bereits im Zielordner liegen. **Aktualisieren** lädt die Liste erneut; nach einem Upload wird sie automatisch neu geladen. Das Fenster lässt sich vergrößern und maximieren; beide Listen passen sich an. Gleiche Dateinamen im Zielordner werden beim Upload ersetzt.
|
Kleine Windows-Anwendung zum Hochladen von `.tap`-Dateien in einen Nextcloud-Ordner per WebDAV. Dateien lassen sich ins Fenster ziehen oder über **Dateien auswählen** hinzufügen. Unterhalb der Auswahl zeigt die Anwendung die `.tap`-Programme an, die bereits im Zielordner liegen. **Aktualisieren** lädt die Liste erneut; nach einem Upload wird sie automatisch neu geladen. Das Fenster lässt sich vergrößern und maximieren; die Auswahl oben bleibt kompakt, und der zusätzliche Platz kommt der Liste der vorhandenen Programme zugute. Gleiche Dateinamen im Zielordner werden beim Upload ersetzt.
|
||||||
|
|
||||||
Die fertig gebaute Windows-Datei liegt unter [release/TAP-Uploader.exe](release/TAP-Uploader.exe). Sie wird direkt gestartet; ein Python- oder Build-Schritt ist dafür nicht nötig.
|
Die fertig gebaute Windows-Datei liegt unter [release/TAP-Uploader.exe](release/TAP-Uploader.exe). Sie wird direkt gestartet; ein Python- oder Build-Schritt ist dafür nicht nötig.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
+17
-19
@@ -258,33 +258,33 @@ namespace PlasmaTapUploader
|
|||||||
hintLabel.Size = new Size(605, 22);
|
hintLabel.Size = new Size(605, 22);
|
||||||
hintLabel.AutoEllipsis = true;
|
hintLabel.AutoEllipsis = true;
|
||||||
fileList.Location = new Point(22, 82);
|
fileList.Location = new Point(22, 82);
|
||||||
fileList.Size = new Size(605, 228);
|
fileList.Size = new Size(605, 140);
|
||||||
fileList.IntegralHeight = false;
|
fileList.IntegralHeight = false;
|
||||||
fileList.AllowDrop = true;
|
fileList.AllowDrop = true;
|
||||||
chooseButton.Text = "Dateien auswaehlen...";
|
chooseButton.Text = "Dateien auswaehlen...";
|
||||||
chooseButton.Location = new Point(22, 322);
|
chooseButton.Location = new Point(22, 234);
|
||||||
chooseButton.Size = new Size(150, 30);
|
chooseButton.Size = new Size(150, 30);
|
||||||
clearButton.Text = "Liste leeren";
|
clearButton.Text = "Liste leeren";
|
||||||
clearButton.Location = new Point(180, 322);
|
clearButton.Location = new Point(180, 234);
|
||||||
clearButton.Size = new Size(105, 30);
|
clearButton.Size = new Size(105, 30);
|
||||||
uploadButton.Text = "Nach Nextcloud hochladen";
|
uploadButton.Text = "Nach Nextcloud hochladen";
|
||||||
uploadButton.Location = new Point(420, 322);
|
uploadButton.Location = new Point(420, 234);
|
||||||
uploadButton.Size = new Size(207, 30);
|
uploadButton.Size = new Size(207, 30);
|
||||||
progressBar.Location = new Point(22, 365);
|
progressBar.Location = new Point(22, 277);
|
||||||
progressBar.Size = new Size(605, 15);
|
progressBar.Size = new Size(605, 15);
|
||||||
statusLabel.Text = "Bereit. Nach erfolgreichem Upload den ESP per Reset neu starten.";
|
statusLabel.Text = "Bereit. Nach erfolgreichem Upload den ESP per Reset neu starten.";
|
||||||
statusLabel.Location = new Point(22, 390);
|
statusLabel.Location = new Point(22, 302);
|
||||||
statusLabel.Size = new Size(605, 28);
|
statusLabel.Size = new Size(605, 28);
|
||||||
statusLabel.AutoEllipsis = true;
|
statusLabel.AutoEllipsis = true;
|
||||||
remoteHeading.Text = "Programme in Nextcloud";
|
remoteHeading.Text = "Programme in Nextcloud";
|
||||||
remoteHeading.Font = new Font("Segoe UI", 12, FontStyle.Bold);
|
remoteHeading.Font = new Font("Segoe UI", 12, FontStyle.Bold);
|
||||||
remoteHeading.AutoSize = true;
|
remoteHeading.AutoSize = true;
|
||||||
remoteHeading.Location = new Point(22, 432);
|
remoteHeading.Location = new Point(22, 344);
|
||||||
refreshButton.Text = "Aktualisieren";
|
refreshButton.Text = "Aktualisieren";
|
||||||
refreshButton.Location = new Point(522, 430);
|
refreshButton.Location = new Point(522, 342);
|
||||||
refreshButton.Size = new Size(105, 29);
|
refreshButton.Size = new Size(105, 29);
|
||||||
remoteList.Location = new Point(22, 467);
|
remoteList.Location = new Point(22, 379);
|
||||||
remoteList.Size = new Size(605, 136);
|
remoteList.Size = new Size(605, 224);
|
||||||
remoteList.View = View.Details;
|
remoteList.View = View.Details;
|
||||||
remoteList.FullRowSelect = true;
|
remoteList.FullRowSelect = true;
|
||||||
remoteList.GridLines = true;
|
remoteList.GridLines = true;
|
||||||
@@ -346,18 +346,16 @@ namespace PlasmaTapUploader
|
|||||||
{
|
{
|
||||||
int contentWidth = ClientSize.Width - 45;
|
int contentWidth = ClientSize.Width - 45;
|
||||||
int extraHeight = Math.Max(0, ClientSize.Height - 650);
|
int extraHeight = Math.Max(0, ClientSize.Height - 650);
|
||||||
int upperExtra = extraHeight / 2;
|
|
||||||
int lowerExtra = extraHeight - upperExtra;
|
|
||||||
|
|
||||||
hintLabel.Width = contentWidth;
|
hintLabel.Width = contentWidth;
|
||||||
fileList.SetBounds(22, 82, contentWidth, 228 + upperExtra);
|
fileList.SetBounds(22, 82, contentWidth, 140);
|
||||||
chooseButton.Top = clearButton.Top = uploadButton.Top = 322 + upperExtra;
|
chooseButton.Top = clearButton.Top = uploadButton.Top = 234;
|
||||||
uploadButton.Left = ClientSize.Width - 23 - uploadButton.Width;
|
uploadButton.Left = ClientSize.Width - 23 - uploadButton.Width;
|
||||||
progressBar.SetBounds(22, 365 + upperExtra, contentWidth, 15);
|
progressBar.SetBounds(22, 277, contentWidth, 15);
|
||||||
statusLabel.SetBounds(22, 390 + upperExtra, contentWidth, 28);
|
statusLabel.SetBounds(22, 302, contentWidth, 28);
|
||||||
refreshButton.SetBounds(ClientSize.Width - 23 - refreshButton.Width, 430 + upperExtra, 105, 29);
|
refreshButton.SetBounds(ClientSize.Width - 23 - refreshButton.Width, 342, 105, 29);
|
||||||
remoteHeading.Top = 432 + upperExtra;
|
remoteHeading.Top = 344;
|
||||||
remoteList.SetBounds(22, 467 + upperExtra, contentWidth, 136 + lowerExtra);
|
remoteList.SetBounds(22, 379, contentWidth, 224 + extraHeight);
|
||||||
remoteList.Columns[0].Width = Math.Max(355, contentWidth - 250);
|
remoteList.Columns[0].Width = Math.Max(355, contentWidth - 250);
|
||||||
remoteStatus.SetBounds(22, 612 + extraHeight, contentWidth, 25);
|
remoteStatus.SetBounds(22, 612 + extraHeight, contentWidth, 25);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user