aboutsummaryrefslogtreecommitdiffstats
path: root/image/win32-file-dlg.rc
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-02-13 21:25:43 +0000
committerGerald Combs <gerald@wireshark.org>2006-02-13 21:25:43 +0000
commit80e5e0fb15f19da5bc287666eb653e2d4645a782 (patch)
treeab4b54817bd926f8933500c990b58016f0165c20 /image/win32-file-dlg.rc
parent22b92456059081cd177d68b97bbba97ce31e43d4 (diff)
Copy over the file open/save code from the Win32 native branch.
The Windows-native routines were integrated by inserting #if GTK_MAJOR_VERSION >= 2 && _WIN32 win32_native_routine(GDK_WINDOW_HWND(top_level->window)); return; #endif at the beginning of each GTK+ file routine. There's probably a prettier way to do this. Some of the sizes need to be tweaked in win32-file-dlg.rc, but everything seems to work. Fix up whitespace. svn path=/trunk/; revision=17285
Diffstat (limited to 'image/win32-file-dlg.rc')
-rwxr-xr-ximage/win32-file-dlg.rc135
1 files changed, 135 insertions, 0 deletions
diff --git a/image/win32-file-dlg.rc b/image/win32-file-dlg.rc
new file mode 100755
index 0000000000..02babb0152
--- /dev/null
+++ b/image/win32-file-dlg.rc
@@ -0,0 +1,135 @@
+#include <windows.h>
+#include "richedit.h"
+#include "gtk/win32-file-dlg.h"
+
+ETHEREAL_OPENFILENAME_TEMPLATE DIALOG 0, 0, 368, 94
+STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
+FONT 8, "MS Shell Dlg"
+{
+ // Filter button/entry
+ PUSHBUTTON "Filter:", EWFD_FILTER_BTN, 7, 4, 35, 14
+ CONTROL "", EWFD_FILTER_EDIT, RICHEDIT_CLASS, ES_AUTOHSCROLL, 49, 5, 101, 12, WS_EX_CLIENTEDGE
+
+ CHECKBOX "MAC name resolution", EWFD_MAC_NR_CB, 7, 32, 100, 8, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP
+ CHECKBOX "Network name resolution", EWFD_NET_NR_CB, 7, 47, 100, 8, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP
+ CHECKBOX "Transport name resolution", EWFD_TRANS_NR_CB, 7, 62, 100, 8, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP
+
+ LTEXT "Filename:", EWFD_PT_FILENAME, 164, 4, 40, 8
+ LTEXT "-", EWFD_PTX_FILENAME, 211, 4, 150, 8
+ LTEXT "Format:", EWFD_PT_FORMAT, 164, 19, 40, 8
+ LTEXT "-", EWFD_PTX_FORMAT, 211, 19, 150, 8
+ LTEXT "Size:", EWFD_PT_SIZE, 164, 34, 40, 8
+ LTEXT "-", EWFD_PTX_SIZE, 211, 34, 150, 8, SS_RIGHT
+ LTEXT "Packets:", EWFD_PT_PACKETS, 164, 49, 40, 8
+ LTEXT "-", EWFD_PTX_PACKETS, 211, 49, 150, 8, SS_RIGHT
+ LTEXT "First Packet:", EWFD_PT_FIRST_PKT, 164, 64, 40, 8
+ LTEXT "-", EWFD_PTX_FIRST_PKT, 211, 64, 150, 8, SS_RIGHT
+ LTEXT "Elapsed Time:", EWFD_PT_ELAPSED, 164, 79, 40, 8
+ LTEXT "-", EWFD_PTX_ELAPSED, 211, 79, 150, 8
+}
+
+ETHEREAL_SAVEFILENAME_TEMPLATE DIALOG 0, 0, 368, 116
+STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
+FONT 8, "MS Shell Dlg"
+{
+ // XXX - We need to come up with something less confusing than separate
+ // "Save as type" (which is built-in) and "File format" combos.
+ LTEXT "File format:", -1, 5, 3, 35, 8
+ COMBOBOX EWFD_FILE_TYPE_COMBO, 54, 2, 155, 51, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+
+ GROUPBOX "Packet Range", -1, 5, 21, 210, 90
+
+ CONTROL "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 110, 32, 45, 10
+ CONTROL "Displayed", EWFD_DISPLAYED_BTN, "Button", BS_AUTORADIOBUTTON, 160, 32, 47, 10
+
+ CONTROL "All packets", EWFD_ALL_PKTS_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 16, 44, 51, 10
+ CONTROL "Selected packet", EWFD_SEL_PKT_BTN, "Button", BS_AUTORADIOBUTTON, 16, 56, 68, 10
+ CONTROL "Marked packets", EWFD_MARKED_BTN, "Button", BS_AUTORADIOBUTTON, 16, 68, 67, 10
+ CONTROL "First to last marked", EWFD_FIRST_LAST_BTN, "Button", BS_AUTORADIOBUTTON, 16, 80, 75, 10
+ CONTROL "Range:", EWFD_RANGE_BTN, "Button", BS_AUTORADIOBUTTON, 16, 92, 35, 10
+ EDITTEXT EWFD_RANGE_EDIT, 53, 91, 30, 12, ES_AUTOHSCROLL
+
+ LTEXT "0", EWFD_ALL_PKTS_CAP, 110, 45, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_SEL_PKT_CAP, 110, 57, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_MARKED_CAP, 110, 69, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_FIRST_LAST_CAP, 110, 81, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_RANGE_CAP, 110, 93, 39, 8, SS_RIGHT
+
+ LTEXT "0", EWFD_ALL_PKTS_DISP, 160, 45, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_SEL_PKT_DISP, 160, 57, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_MARKED_DISP, 160, 69, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_FIRST_LAST_DISP, 160, 81, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_RANGE_DISP, 160, 93, 41, 8, SS_RIGHT
+}
+
+ETHEREAL_MERGEFILENAME_TEMPLATE DIALOG 0, 0, 368, 94
+STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
+FONT 8, "MS Shell Dlg"
+{
+ // Filter button/entry
+ PUSHBUTTON "Filter:", EWFD_FILTER_BTN, 7, 4, 35, 14
+ CONTROL "", EWFD_FILTER_EDIT, RICHEDIT_CLASS, ES_AUTOHSCROLL, 49, 5, 101, 12, WS_EX_CLIENTEDGE
+
+ CONTROL "Prepend packets to existing file", EWFD_MERGE_PREPEND_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 7, 32, 120, 8
+ CONTROL "Merge packets chronologically", EWFD_MERGE_CHRONO_BTN, "Button", BS_AUTORADIOBUTTON, 7, 47, 120, 8
+ CONTROL "Append packets to existing file", EWFD_MERGE_APPEND_BTN, "Button", BS_AUTORADIOBUTTON, 7, 62, 120, 8
+
+ LTEXT "Filename:", EWFD_PT_FILENAME, 164, 4, 40, 8
+ LTEXT "-", EWFD_PTX_FILENAME, 211, 4, 150, 8
+ LTEXT "Format:", EWFD_PT_FORMAT, 164, 19, 40, 8
+ LTEXT "-", EWFD_PTX_FORMAT, 211, 19, 150, 8
+ LTEXT "Size:", EWFD_PT_SIZE, 164, 34, 40, 8
+ LTEXT "-", EWFD_PTX_SIZE, 211, 34, 150, 8, SS_RIGHT
+ LTEXT "Packets:", EWFD_PT_PACKETS, 164, 49, 40, 8
+ LTEXT "-", EWFD_PTX_PACKETS, 211, 49, 150, 8, SS_RIGHT
+ LTEXT "First Packet:", EWFD_PT_FIRST_PKT, 164, 64, 40, 8
+ LTEXT "-", EWFD_PTX_FIRST_PKT, 211, 64, 150, 8, SS_RIGHT
+ LTEXT "Elapsed Time:", EWFD_PT_ELAPSED, 164, 79, 40, 8
+ LTEXT "-", EWFD_PTX_ELAPSED, 211, 79, 150, 8
+}
+
+// XXX - The width value appears to have no effect, at least on Windows XP.
+ETHEREAL_EXPORTFILENAME_TEMPLATE DIALOG 0, 0, 5000, 97
+STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
+FONT 8, "MS Shell Dlg"
+{
+ GROUPBOX "Packet Range", -1, 5, 2, 210, 90
+
+ CONTROL "Captured", EWFD_CAPTURED_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 110, 13, 45, 10
+ CONTROL "Displayed", EWFD_DISPLAYED_BTN, "Button", BS_AUTORADIOBUTTON, 160, 13, 47, 10
+
+ CONTROL "All packets", EWFD_ALL_PKTS_BTN, "Button", BS_AUTORADIOBUTTON | WS_GROUP, 16, 25, 51, 10
+ CONTROL "Selected packet", EWFD_SEL_PKT_BTN, "Button", BS_AUTORADIOBUTTON, 16, 37, 68, 10
+ CONTROL "Marked packets", EWFD_MARKED_BTN, "Button", BS_AUTORADIOBUTTON, 16, 49, 67, 10
+ CONTROL "First to last marked", EWFD_FIRST_LAST_BTN, "Button", BS_AUTORADIOBUTTON, 16, 61, 75, 10
+ CONTROL "Range:", EWFD_RANGE_BTN, "Button", BS_AUTORADIOBUTTON, 16, 73, 35, 10
+ EDITTEXT EWFD_RANGE_EDIT, 53, 72, 30, 12, ES_AUTOHSCROLL
+
+ LTEXT "0", EWFD_ALL_PKTS_CAP, 110, 26, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_SEL_PKT_CAP, 110, 38, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_MARKED_CAP, 110, 50, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_FIRST_LAST_CAP, 110, 62, 39, 8, SS_RIGHT
+ LTEXT "0", EWFD_RANGE_CAP, 110, 74, 39, 8, SS_RIGHT
+
+ LTEXT "0", EWFD_ALL_PKTS_DISP, 160, 26, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_SEL_PKT_DISP, 160, 38, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_MARKED_DISP, 160, 50, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_FIRST_LAST_DISP, 160, 62, 41, 8, SS_RIGHT
+ LTEXT "0", EWFD_RANGE_DISP, 160, 74, 41, 8, SS_RIGHT
+
+ GROUPBOX "Packet Format", EWFD_PKT_FORMAT_GB, 224, 2, 119, 90
+ CONTROL "Packet summary line", EWFD_PKT_SUMMARY_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 235, 15, 84, 10
+ CONTROL "Packet details:", EWFD_PKT_DETAIL_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 235, 27, 95, 10
+ COMBOBOX EWFD_PKT_DETAIL_COMBO, 247, 39, 74, 45, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+ CONTROL "Packet Bytes", EWFD_PKT_BYTES_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 235, 56, 80, 10
+ CONTROL "Each packet on a new page", EWFD_PKT_NEW_PAGE_CB, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 235, 70, 106, 10
+
+}
+
+
+ETHEREAL_EXPORTRAWFILENAME_TEMPLATE DIALOG 0, 0, 200, 18
+STYLE WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | DS_3DLOOK | DS_CONTROL
+FONT 8, "MS Shell Dlg"
+{
+ LTEXT "-", EWFD_EXPORTRAW_ST, 5, 5, 180, 8
+}