Skip to content

Commit

Permalink
Actually implement the dragdrop, I forgot teehee
Browse files Browse the repository at this point in the history
  • Loading branch information
wappenull committed Apr 13, 2021
1 parent 4025ce4 commit f0d119e
Show file tree
Hide file tree
Showing 12 changed files with 235 additions and 20 deletions.
17 changes: 16 additions & 1 deletion PdfToImageGUI/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions PdfToImageGUI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public MainForm( )

private void MainForm_Load( object sender, EventArgs e )
{
this.Text += $"| V{Application.ProductVersion}";

// Default options
dpiSelect.SelectedIndex = 1; // 72
formatSelect.SelectedIndex = 1; // jpg 50%
Expand All @@ -43,6 +45,12 @@ private void Form1_DragDrop( object sender, DragEventArgs e )
}
}

private void Form1_DragEnter( object sender, DragEventArgs e )
{
// Display nice icon
if( e.Data.GetDataPresent( DataFormats.FileDrop ) ) e.Effect = DragDropEffects.Copy;
}

private void OpenUrlFromLinkLabel( object sender, LinkLabelLinkClickedEventArgs e )
{
LinkLabel lb = (LinkLabel)sender;
Expand Down Expand Up @@ -128,7 +136,8 @@ private void BackgroundWorker1_ProgressChanged( object sender, ProgressChangedEv

private void BackgroundWorker1_RunWorkerCompleted( object sender, RunWorkerCompletedEventArgs e )
{
m_Popup.Close( );
m_Popup.Close( ); // Calling close might dispose, so create new one next time
m_Popup = null;

if( e.Cancelled )
InfoMsg( "User cancelled operation. Are you joking to me?" );
Expand Down Expand Up @@ -254,8 +263,6 @@ public void InfoMsg( string v )
{
MessageBox.Show( this, v, "FYI", MessageBoxButtons.OK, MessageBoxIcon.Information );
}


}

enum OutputFormat
Expand Down
167 changes: 167 additions & 0 deletions PdfToImageGUI/MainForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,171 @@
<metadata name="backgroundWorker1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAMDAAAAEAIACoJQAAFgAAACgAAAAwAAAAYAAAAAEAIAAAAAAAACQAABILAAASCwAAAAAAAAAA
AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////Q////3////9D////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///9D////////////////////Q////wD///9D////f///
/3////9/////f////3////9D////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////Q///
/3////9/////Q////wD///8A////AP///wD///8A////AP///wD///9//////wgA////////////////
/0P/////////////////////////////////////////f////0P///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///9D////f////3////9/////Q////wD///8A////AP//
/wD///9D/////////////////////////0P///8A////AP///wD///8A////AP///wD///9//////wgA
//8IAP//////////////////CAD//wgA//8IAP//CAD//wgA//////////////////////9D////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///0P/////////////////////////////
/3////9/////f////3////9//////wgA//8IAP///////////3////8A////AP///wD///8A////AP//
/0P//////////wgA//8IAP////////////8IAP//CAD//wgA//8IAP//CAD//wgA//8IAP//CAD/////
//////9/////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///3//////CAD//wgA
//8IAP///////////////////////////////////////wgA//8IAP///////////3////8A////Q///
/3////9/////Q////3//////CAD//wgA//8IAP////////////8IAP//CAD/////////////////////
//8IAP//CAD///////////9/////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/3//////CAD//wgA//8IAP//CAD//wgA//8IAP//CAD//wgA/////////////wgA//8IAP//////////
/3////9D/////////////////////////3//////CAD//wgA/////////////wgA//8IAP//CAD/////
//////9/////f/////8IAP//CAD///////////9/////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///0P///////////////8IAP//CAD//wgA//8IAP//CAD//wgA//8IAP///////wgA
//8IAP///////////3///////////wgA//8IAP///////////3//////CAD//wgA/////////////wgA
//8IAP////////////////9///////////8IAP//CAD///////////9/////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///9D////f///////////CAD//wgA////////////////
/////////////wgA//8IAP///////////3//////CAD//wgA//8IAP//////////////////CAD//wgA
/////////////wgA//8IAP///////////////////////wgA//8IAP//CAD///////////9/////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///3//////CAD//wgA
////////////f////3////9//////wgA//8IAP///////////3//////CAD//wgA//8IAP//////////
//8IAP//CAD//////////////////wgA//8IAP//CAD///////8IAP//CAD//wgA//8IAP//////////
//////9D////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/3//////CAD//wgA////////////f////wD///9//////wgA//8IAP///////////3//////CAD//wgA
//8IAP////////////8IAP//CAD///////////9//////wgA//8IAP//CAD///////8IAP//CAD//wgA
/////////////////0P///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///3//////CAD//wgA////////////f////wD///9//////wgA//8IAP//////////
////////CAD//wgA//8IAP//CAD//wgA//8IAP//CAD///////////9///////////8IAP//CAD/////
////////////////////////////Q////wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///9D////f////3//////CAD//wgA////////////f////0P//////////wgA
//8IAP////////////8IAP//CAD///////8IAP//CAD//wgA//8IAP////////////////9D////f///
//8IAP//CAD///////////9/////f////3////9D////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///0P/////////////////////CAD//wgA////////////////
/3//////CAD//wgA//8IAP////////////8IAP//CAD///////8IAP//CAD//wgA//8IAP//////////
/3////8A////f/////8IAP//CAD/////////////////Q////wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////Q////3////9D////AP///3//////CAD//wgA//8IAP//CAD//wgA
//8IAP///////////3//////CAD//wgA//8IAP////////////8IAP//CAD///////8IAP//CAD//wgA
//8IAP///////////3////8A////Q///////////CAD//wgA/////////////////0P///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///9D////////////////////Q////3//////CAD//wgA
//8IAP//CAD//wgA//8IAP///////////3//////CAD//wgA//8IAP////////////8IAP//CAD/////
//8IAP//CAD//wgA//8IAP///////////3////8A////AP///3//////CAD//wgA//8IAP//////////
//////9D////AP///wD///8A////AP///wD///8A////AP///wD///9//////wgA////////////////
/0P//////////////////////////////////////////////3//////CAD//wgA//8IAP//CAD//wgA
//8IAP//CAD//////////////////wgA/////////////0NO+/8AD/r/AA/6/0NO+////////////wgA
//8IAP//CAD///////9/h/z/AA/6/292+/////8A////AP///wD///8A////AP///0P//////////wgA
//8IAP///////////3////9D////f////3////9/////f////3////9/////Q////0P/////////////
//8IAP//CAD//wgA///////////////////6+vr/////////////////+Pj4//X19f/19fX/9fX1//X1
9f/6+vr//////wgA//8IAP//CAD////////6+vr/1tj2/z1I+f9fZ/v/////AP///wD///8A////AP//
/3//////CAD//wgA//8IAP///////////3////8A////AP///wD///8A////AP///wD///8A////AP//
/wD///9D////f///////////////////////////+vr6//j4+P/19fX/+Pj4//r6+v/4+Pj/9fX1//X1
9f/19fX/9fX1//X19f/4+Pj////////////////////////////4+Pj/9fX1/8fK9v8AD/r/////AP//
/wD///8A////AP///3//////CAD//wgA//8IAP///////////3////8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///0P///9/f4f8//r6+v/4+Pj/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/+Pj4//r6+v/6+vr/+vr6//j4+P/19fX/9fX1//X1
9f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA/////////////////0P///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AAA/6//X19f/19fX/9fX1//X1
9f/19fX/9fX1/ywsLP/19fX/9fX1//X19f8sLCz/OTk5/7+/v/8sLCz/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA////////////f///
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8AAA/6//X1
9f/19fX/9fX1//X19f/19fX/9fX1/ywsLP85OTn/paWl//X19f8sLCz/zc3N/zk5Of8sLCz/9fX1//X1
9f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA
////////////f////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8AAA/6//X19f/19fX/9fX1//X19f/19fX/9fX1/ywsLP/a2tr/LCws//X19f8sLCz/9fX1/yws
LP8sLCz/LCws/7Kysv/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP//
/3//////CAD//wgA////////////f////wD///8A////AP///wD///8A////Q////3////9/////f///
/0P///8A////AP///wD///8AAA/6//X19f/19fX/9fX1//X19f/19fX/9fX1/ywsLP/o6Oj/LCws//X1
9f8sLCz/2tra/zk5Of8sLCz/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP//
/wD///8A////AP///3//////CAD//wgA////////////f////wD///8A////AP///wD///9D////////
//////////////////////9/////Q////wD///8AAA/6//j4+P/6+vr/+vr6//j4+P/19fX/9fX1/yws
LP8sLCz/ioqK//X19f8sLCz/OTk5/7Kysv8sLCz/LCws/4qKiv/19fX/9fX1//X19f/19fX/9fX1//X1
9f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA////////////f////wD///8A////AP//
/wD///9//////wgA//8IAP//CAD//////////////////////0P///8AQ077////////////////////
///4+Pj/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA////////////f///
/wD///8A////AP///wD///9//////wgA//8IAP//CAD//wgA//8IAP////////////////9Df4f8////
//8IAP//CAD////////6+vr/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA
////////////f////wD///8A////AP///wD///9//////wgA//8IAP///////wgA//8IAP//CAD/////
////////f4f8//////8IAP//CAD///////+nrPz/AA/6/xYk+f+Ij/j/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP//
/3//////CAD//wgA////////////f////3////9/////Q////wD///9//////wgA//8IAP//////////
//8IAP//CAD//wgA//////////////////8IAP//CAD///////9/h/z/c3v4/1Re+f8AD/r/lZv3//X1
9f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP//
/wD///8A////AP///3//////CAD//wgA/////////////////////////////////0P///9//////wgA
//8IAP//////////////////CAD//wgA//8IAP////////////8IAP//CAD///////+nrPz/Pkr5/9jZ
9f98g/j/FiT5/9jZ9f/19fX/9fX1//X19f/19fX/2Nn1/3N6+P9bZfn/iI/4//X19f/19fX/9fX1//X1
9f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA//8IAP//CAD//wgA//8IAP//////////
//////9//////wgA//8IAP///////////3///////////wgA//8IAP////////////8IAP//CAD/////
///6+vr/w8f7/4iP/P+epPz/Y2z7/y87+f9zevj/ipD3/7u/9/9ncPj/CRj6/y46+f8uOvn/Chn6/zRA
+f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA//8IAP//CAD//wgA
//8IAP//CAD//////////////////wgA//8IAP///////////3////9D//////////8IAP//CAD/////
//8IAP//CAD//////////////////////////////////0pV+/8+Svn/FSL5/wAP+v8cKfn/2Nn1//X1
9f/Y2fX/Ljr5/yIu+f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA
//////////////////8IAP//CAD//wgA/////////////wgA//8IAP///////////3////8A////f///
//8IAP//CAD///////8IAP//CAD//wgA//8IAP//CAD//wgA//8IAP///////4mP/P+ip/f/u7/3/wwb
+v8ZJ/n/Hiv6/w0b+v8AD/r/OUT5/66z9//19fX/9fX1//X19f8AD/r/////AP///wD///8A////AP//
/3//////CAD//wgA////////////f///////////CAD//wgA/////////////wgA//8IAP//////////
/3////8A////f/////8IAP//CAD///////8IAP//CAD//wgA//8IAP//CAD//wgA//8IAP///////7m8
+/9QWvn/Ljr5/0RP+f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP//
/wD///8A////AP///3//////CAD//wgA////////////f////3//////CAD//wgA/////////////wgA
//8IAP///////////3////9D//////////8IAP//CAD///////8IAP//CAD/////////////////////
/////////////+Lj+P8AD/r/Chn6/9jZ9f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f8AD/r/////AP///wD///8A////AP///3//////CAD//wgA////////////f////3//////CAD//wgA
/////////////wgA//8IAP///////////3////9//////wgA//8IAP//CAD///////8IAP//CAD/////
///6+vr/+vr6/////////////////7G1+f8JGPr/FiT5//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////Q///////////CAD//wgA////////////f///
/3//////CAD//wgA/////////////wgA//8IAP///////////////////////wgA//8IAP//////////
//8IAP//CAD///////////////////////8IAP////////////+prfn/AA/6/6Kn9//19fX/9fX1//X1
9f/19fX/9fX1//X19f/19fX/9fX1//X19f8AD/r/////AP///wD///8A////f/////8IAP//CAD//wgA
////////////f///////////CAD//wgA/////////////wgA//8IAP//CAD///////8IAP//CAD//wgA
//8IAP////////////8IAP//CAD//wgA//8IAP//CAD//wgA//8IAP//CAD////////6+vr/Kjb5/1Re
+f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1/+bn9f8AD/r/////AP///wD///8A////f///
//8IAP//CAD//wgA//////////////////8IAP//CAD//////////////////wgA//8IAP//CAD//wgA
//8IAP//CAD//wgA//////////////////8IAP//CAD//wgA//8IAP//CAD//wgA//8IAP//////////
//+6vvn/AA/6/3N6+P/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1/5mf9/8fK/r/////AP//
/wD///8A////Q///////////CAD//wgA//8IAP//CAD//wgA//8IAP//CAD///////////9//////wgA
//8IAP//CAD//wgA//8IAP//////////////////f4f8//////8IAP//CAD//wgA////////////////
/////////////6es+v8AD/r/Chn6/9jZ9f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/x8r2/w4c
+f9/hvv/////AP///wD///8A////AP///0P//////////wgA//8IAP//CAD//wgA////////////////
//////9D/////////////////////////////////////////3////9DQ077////////////////////
////////+vr6//r6+v/6+vr/+Pj4//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/Hyvb/Dhv5/y86+v////8A////AP///wD///8A////AP///wD///9D////////////////////////
////////////f////0P///8A////Q////3////9/////f////3////9/////Q////wD///8AAA/6//j4
+P/6+vr/+vr6//r6+v/4+Pj/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1/8fK9v8OG/n/Lzr6/////wD///8A////AP///wD///8A////AP///wD///8A////Q///
/3////9/////f////3////9D////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8AAA/6/6it9//19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f/19fX/x8r2/w4b+f8vOvr/////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8AP0n6/y05+v+4u/b/9fX1//X19f/19fX/9fX1//X19f/19fX/9fX1//X1
9f/19fX/9fX1//X19f/19fX/9fX1/+bn9f95gff/Dhz5/z9J+v////8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AD9J+v8AD/r/AA/6/wAP+v8AD/r/AA/6/wAP
+v8AD/r/AA/6/wAP+v8AD/r/AA/6/wAP+v8AD/r/AA/6/wAP+v8fK/r/j5X8/////wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
/wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///////8AAP////4//wAA/////BAf
AAD//+H8AAcAAP+DwPwAAwAA/wAA+AADAAD/AACAAAMAAP8AAAAAAwAA/wAAAAADAAD/gAAAAAMAAP/g
AAAAAwAA/+BAAAAHAAD/4EAAAA8AAP+AAAAAHwAA/wAAAEB/AADxAAAAQD8AAOAAAABgHwAA4AAAAAAH
AADAAAAAAAMAAMB/wAAAAwAAwH/wAAADAADAf/wAAAMAAMD//AAAAwAAwP/8AAADAADA+DwAAAMAAMDw
DAAAAwAAwPAEAAADAADA8AAAAAMAAMDwAAAAAwAAwBAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAAD
AADAACAAAAMAAMAAIAAAAwAAwAAAAAADAADAAAAAAAMAAIAAAAAAAwAAgAAAAAADAACAAAAAAAMAAIAA
AAAAAwAAwAAAAAAHAADgCAwAAA8AAPA//AAAHwAA///8AAA/AAD///4AAH8AAP///////wAA////////
AAA=
</value>
</data>
</root>
Loading

0 comments on commit f0d119e

Please sign in to comment.