diff options
author | akshay-c | 2019-04-12 16:52:28 +0530 |
---|---|---|
committer | akshay-c | 2019-04-12 16:52:28 +0530 |
commit | 3b94e473db82f28fb022c1f5f9aa74a2e48fdaf3 (patch) | |
tree | 2d082c364682d8ff0e3457de6d2d0e1cdf968113 /ldmicro/miscutil.cpp | |
parent | b0c1405589824fc9f9f464683286cdac7ad139d0 (diff) | |
download | LDmicroQt-3b94e473db82f28fb022c1f5f9aa74a2e48fdaf3.tar.gz LDmicroQt-3b94e473db82f28fb022c1f5f9aa74a2e48fdaf3.tar.bz2 LDmicroQt-3b94e473db82f28fb022c1f5f9aa74a2e48fdaf3.zip |
Simulation Code Uncommented; simpledialog addition in progress
Diffstat (limited to 'ldmicro/miscutil.cpp')
-rw-r--r-- | ldmicro/miscutil.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ldmicro/miscutil.cpp b/ldmicro/miscutil.cpp index 9493943..18e7f82 100644 --- a/ldmicro/miscutil.cpp +++ b/ldmicro/miscutil.cpp @@ -204,15 +204,12 @@ void FinishIhex(FILE *f) //----------------------------------------------------------------------------- // Create a window with a given client area. //----------------------------------------------------------------------------- -/*HWID CreateWindowClient(GtkWindowType wType, GdkWindowTypeHint wthint, char *windowName, +HWID CreateWindowClient(char *windowName, int x, int y, int width, int height, HWND parent) { - HWID h = gtk_window_new(wType); - gtk_window_set_title(GTK_WINDOW(h), windowName); - gtk_window_resize (GTK_WINDOW(h), width, height); - gtk_window_move(GTK_WINDOW(h), x, y); - gtk_window_set_type_hint (GTK_WINDOW(h), wthint); - + HWID h = new QDialog(parent); + h->resize(width,height); + h->setWindowTitle(windowName); // HWND h = CreateWindowEx(exStyle, className, windowName, style, x, y, // width, height, parent, menu, instance, param); @@ -224,7 +221,7 @@ void FinishIhex(FILE *f) // SetWindowPos(h, HWND_TOP, x, y, width, height, 0); return h; -}*/ +} //----------------------------------------------------------------------------- // Window proc for the dialog boxes. This Ok/Cancel stuff is common to a lot |