- Improve DBViewer behaviour and UI

(cherry picked from commit cb41787f5525aa73175ad06299d0a799ebf731e2)
This commit is contained in:
Infi
2026-05-01 20:14:13 +02:00
committed by JonKazama-Hellion
parent 135f7a9bf7
commit e219b3e1fe
19 changed files with 652 additions and 12 deletions
+100
View File
@@ -131,6 +131,15 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Loading logs ....
/// </summary>
internal static string ChatExport_Initial {
get {
return ResourceManager.GetString("ChatExport_Initial", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Input is disabled for this tab.
/// </summary>
@@ -1454,6 +1463,34 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Database migration has failed, a new database will be created.
///Your old database can still be recovered, please contact the plugin author for help..
/// </summary>
internal static string Database_Migration_Error_Desc {
get {
return ResourceManager.GetString("Database_Migration_Error_Desc", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Chat2 Database Migration Error.
/// </summary>
internal static string Database_Migration_Error_Title {
get {
return ResourceManager.GetString("Database_Migration_Error_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Open date picker.
/// </summary>
internal static string DatePicker_Tooltip {
get {
return ResourceManager.GetString("DatePicker_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Fri.
/// </summary>
@@ -1643,6 +1680,15 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Reset date selection..
/// </summary>
internal static string DbViewer_Date_Reset_Tooltip {
get {
return ResourceManager.GetString("DbViewer_Date_Reset_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to FromTo:.
/// </summary>
@@ -1733,6 +1779,24 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Export the message history to a json file..
/// </summary>
internal static string Export_Json_Tooltip {
get {
return ResourceManager.GetString("Export_Json_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Export the message history to a text file..
/// </summary>
internal static string Export_Txt_Tooltip {
get {
return ResourceManager.GetString("Export_Txt_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Chinese (full).
/// </summary>
@@ -1796,6 +1860,24 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Pick a folder location for export..
/// </summary>
internal static string Folder_Export_Location_Tooltip {
get {
return ResourceManager.GetString("Folder_Export_Location_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Pick an export location.
/// </summary>
internal static string Folder_Selection_Header {
get {
return ResourceManager.GetString("Folder_Selection_Header", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Source.
/// </summary>
@@ -3713,6 +3795,24 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Previous page.
/// </summary>
internal static string Page_ArrowLeft_Tooltip {
get {
return ResourceManager.GetString("Page_ArrowLeft_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Next page.
/// </summary>
internal static string Page_ArrowRight_Tooltip {
get {
return ResourceManager.GetString("Page_ArrowRight_Tooltip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unable to find ID for this message, please try another one..
/// </summary>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1435,4 +1435,38 @@ Nachdem du 'Aktiviert' angeklickt und auf 'Start' gedrückt hast, wird die einge
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1432,4 +1432,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+34
View File
@@ -1433,4 +1433,38 @@
<data name="ChannelSelector_Select" xml:space="preserve">
<value>Select all</value>
</data>
<data name="Database_Migration_Error_Title" xml:space="preserve">
<value>Chat2 Database Migration Error</value>
</data>
<data name="Database_Migration_Error_Desc" xml:space="preserve">
<value>Database migration has failed, a new database will be created.
Your old database can still be recovered, please contact the plugin author for help.</value>
</data>
<data name="DbViewer_Date_Reset_Tooltip" xml:space="preserve">
<value>Reset date selection.</value>
</data>
<data name="Folder_Export_Location_Tooltip" xml:space="preserve">
<value>Pick a folder location for export.</value>
</data>
<data name="Folder_Selection_Header" xml:space="preserve">
<value>Pick an export location</value>
</data>
<data name="Export_Txt_Tooltip" xml:space="preserve">
<value>Export the message history to a text file.</value>
</data>
<data name="Export_Json_Tooltip" xml:space="preserve">
<value>Export the message history to a json file.</value>
</data>
<data name="Page_ArrowLeft_Tooltip" xml:space="preserve">
<value>Previous page</value>
</data>
<data name="Page_ArrowRight_Tooltip" xml:space="preserve">
<value>Next page</value>
</data>
<data name="DatePicker_Tooltip" xml:space="preserve">
<value>Open date picker</value>
</data>
<data name="ChatExport_Initial" xml:space="preserve">
<value>Loading logs ...</value>
</data>
</root>
+27 -9
View File
@@ -56,6 +56,8 @@ public class DbViewer : Window
private string InputPath = string.Empty;
private IActiveNotification Notification = null!;
private bool NeedsScrollReset;
public DbViewer(Plugin plugin) : base("DBViewer###chat2-dbviewer")
{
Plugin = plugin;
@@ -104,11 +106,17 @@ public class DbViewer : Window
var spacing = 3.0f * ImGuiHelpers.GlobalScale;
DateWidget.DatePickerWithInput("##FromDate", 1, ref MinDateString, ref AfterDate, DateFormat);
DateWidget.DatePickerWithInput("##ToDate", 2, ref MaxDateString, ref BeforeDate, DateFormat, true);
ImGui.SameLine(0, spacing);
if (ImGuiUtil.IconButton(FontAwesomeIcon.Recycle))
DateReset();
ImGuiUtil.DrawArrows(ref CurrentPage, 1, totalPages, spacing);
if (ImGui.IsItemHovered())
ImGui.SetTooltip(Language.DbViewer_Date_Reset_Tooltip);
ImGui.SameLine(0, spacing);
ChannelSelection();
var skipText = Language.DbViewer_CharacterOption;
@@ -128,12 +136,12 @@ public class DbViewer : Window
ImGui.OpenPopup("InputPathDialog");
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
ImGui.SetTooltip("Pick a folder location for export.");
ImGui.SetTooltip(Language.Folder_Export_Location_Tooltip);
using (var innerPopup = ImRaii.Popup("InputPathDialog"))
{
if (innerPopup.Success)
Plugin.FileDialogManager.OpenFolderDialog("Pick an export location", (b, s) => { if (b) InputPath = s; }, null, true);
Plugin.FileDialogManager.OpenFolderDialog(Language.Folder_Selection_Header, (b, s) => { if (b) InputPath = s; }, null, true);
}
ImGui.SameLine(0, spacing);
@@ -145,7 +153,7 @@ public class DbViewer : Window
new Notification
{
Title = "Chat2 Text Export",
Content = "Loading logs ...",
Content = Language.ChatExport_Initial,
Type = NotificationType.Info,
Minimized = false,
UserDismissable = false,
@@ -157,7 +165,7 @@ public class DbViewer : Window
}
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
ImGui.SetTooltip("Export the message history to a text file.");
ImGui.SetTooltip(Language.Export_Txt_Tooltip);
ImGui.SameLine(0, spacing);
using (ImRaii.Disabled(InputPath.Length == 0 || IsExporting))
@@ -168,7 +176,7 @@ public class DbViewer : Window
new Notification
{
Title = "Chat2 Json Export",
Content = "Loading logs ...",
Content = Language.ChatExport_Initial,
Type = NotificationType.Info,
Minimized = false,
UserDismissable = false,
@@ -180,13 +188,15 @@ public class DbViewer : Window
}
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
ImGui.SetTooltip("Export the message history to a json file.");
ImGui.SetTooltip(Language.Export_Json_Tooltip);
var width = 350 * ImGuiHelpers.GlobalScale;
var loadingIndicator = IsProcessing && ProcessingStart < Environment.TickCount64;
ImGui.AlignTextToFramePadding();
ImGui.TextUnformatted(string.Format(Language.DbViewer_Page, CurrentPage, totalPages, Count, loadingIndicator ? Language.DbViewer_LoadingIndicator : ""));
ImGuiUtil.DrawArrows(ref CurrentPage, 1, totalPages, spacing, tooltipLeft: Language.Page_ArrowLeft_Tooltip, tooltipRight: Language.Page_ArrowRight_Tooltip);
ImGui.SameLine(ImGui.GetContentRegionMax().X - width);
ImGui.SetNextItemWidth(width);
if (ImGui.InputTextWithHint("##searchbar", Language.DbViewer_SearcHint, ref SimpleSearchTerm, 30))
@@ -222,6 +232,7 @@ public class DbViewer : Window
Messages = rangeMessageEnumerator.ToArray();
Filtered = Filter(Messages);
NeedsScrollReset = true;
}
catch (Exception ex)
{
@@ -246,6 +257,12 @@ public class DbViewer : Window
if (!child.Success)
return;
if (NeedsScrollReset)
{
NeedsScrollReset = false;
ImGui.SetScrollY(0.0f);
}
using var table = ImRaii.Table("##messageHistory", 4, ImGuiTableFlags.Borders | ImGuiTableFlags.RowBg | ImGuiTableFlags.Resizable);
if (!table.Success)
return;
@@ -281,6 +298,7 @@ public class DbViewer : Window
private void ChannelSelection()
{
const string addTabPopup = "add-channel-popup";
var spacing = 3.0f * ImGuiHelpers.GlobalScale;
if (ImGui.Button("Channels"))
ImGui.OpenPopup(addTabPopup);
@@ -306,7 +324,7 @@ public class DbViewer : Window
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Select all");
ImGui.SameLine();
ImGui.SameLine(0, spacing);
if (ImGuiComponents.IconButton(FontAwesomeIcon.Times))
{
@@ -317,7 +335,7 @@ public class DbViewer : Window
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Unselect all");
ImGui.SameLine();
ImGui.SameLine(0, spacing);
using var headerNode = ImRaii.TreeNode(header);
if (!headerNode.Success)
+3
View File
@@ -65,6 +65,9 @@ public static class DateWidget
ImGui.SameLine(0, 3.0f * ImGuiHelpers.GlobalScale);
ImGuiUtil.IconButton(FontAwesomeIcon.Calendar, id.ToString());
if (ImGui.IsItemHovered())
ImGui.SetTooltip(Language.DatePicker_Tooltip);
if (DatePicker(label, ref date, closeWhenMouseLeavesIt))
dateString = date.ToString(format);
}
+12 -3
View File
@@ -391,7 +391,7 @@ internal static class ImGuiUtil
}
}
public static void DrawArrows(ref int selected, int min, int max, float spacing, int id = 0)
public static void DrawArrows(ref int selected, int min, int max, float spacing, int id = 0, string? tooltipLeft = null, string? tooltipRight = null)
{
// Prevents changing values from triggering EndDisable
var isMin = selected == min;
@@ -404,12 +404,19 @@ internal static class ImGuiUtil
selected--;
}
if (tooltipLeft != null && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
ImGui.SetTooltip(tooltipLeft);
ImGui.SameLine(0, spacing);
using (ImRaii.Disabled(isMax))
{
if (IconButton(FontAwesomeIcon.ArrowRight, id+1.ToString()))
selected++;
}
if (tooltipRight != null && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
ImGui.SetTooltip(tooltipRight);
}
public static void WrappedTextWithColor(Vector4 color, string text)
@@ -544,6 +551,8 @@ internal static class ImGuiUtil
public static void ChannelSelector(string headerText, Dictionary<ChatType, (ChatSource Source, ChatSource Target)> chatCodes)
{
var spacing = 3.0f * ImGuiHelpers.GlobalScale;
using var channelNode = ImRaii.TreeNode(headerText);
if (!channelNode.Success)
return;
@@ -561,7 +570,7 @@ internal static class ImGuiUtil
if (ImGui.IsItemHovered())
ImGui.SetTooltip(Language.ChannelSelector_Select);
ImGui.SameLine();
ImGui.SameLine(0, spacing);
if (ImGuiComponents.IconButton(FontAwesomeIcon.Times))
{
@@ -572,7 +581,7 @@ internal static class ImGuiUtil
if (ImGui.IsItemHovered())
ImGui.SetTooltip(Language.ChannelSelector_Unselect);
ImGui.SameLine();
ImGui.SameLine(0, spacing);
using var headerNode = ImRaii.TreeNode(header);
if (!headerNode.Success)