<?xml version="1.0"?>
<anjuta>
- <plugin name="Tools" mandatory="no">
+ <plugin name="Terminal" mandatory="no">
<require group="Anjuta Plugin"
attribute="Location"
- value="anjuta-tools:ATPPlugin"/>
+ value="anjuta-terminal:TerminalPlugin"/>
</plugin>
- <plugin name="Terminal" mandatory="no">
+ <plugin name="Tools" mandatory="no">
<require group="Anjuta Plugin"
attribute="Location"
- value="anjuta-terminal:TerminalPlugin"/>
+ value="anjuta-tools:ATPPlugin"/>
</plugin>
<plugin name="Code Snippets" mandatory="no">
<require group="Anjuta Plugin"
[Anjuta]
Maximized=1
-Geometry=1365x746+1+0
+Geometry=1366x745+0+1
[Project Manager]
Shortcut=libsolipa//libsolipa//src//libsolipa.la%%%libsolipa//libsolipa//src//libsolipaooo.la%%%libsolipa//libsolipa//tests//allegato%%%libsolipa//libsolipa//tests//mail%%%libsolipa//libsolipa//tests//mail_get_addresses_from_string%%%libsolipa//libsolipa//tests//mailui%%%libsolipa//libsolipa//tests//ooo%%%libsolipa//libsolipa//tests//progresswindow%%%libsolipa//libsolipa//tests//utils%%%libsolipa//libsolipa//tests//utils_codfisc_piva%%%libsolipa//libsolipa//tests//utils_format_money%%%libsolipa//libsolipa//tests//utils_gdatetime%%%libsolipa//libsolipa//tests//utils_infobar%%%libsolipa//libsolipa//tests//utils_round
-Expand=libsolipa.la%%%libsolipa
+Expand=libsolipa.la%%%libsolipa%%%libsolipa//libsolipa
+
+[File Loader]
+Files=file:///home/andreaz/files/comune/solipa/libsolipa/src/utils.c#1146%%%file:///home/andreaz/files/comune/solipa/libsolipa/src/utils.h#76
[Document Manager]
bookmarks=<?xml version="1.0" encoding="UTF-8"?>\n<bookmarks/>\n
<?xml version="1.0"?>
-<dock-layout><layout name="__default__"><dock name="__dock_1" floating="no" width="-1" height="-1" floatx="0" floaty="0"><paned orientation="horizontal" locked="no" position="1008"><notebook orientation="vertical" locked="no" page="0"><item name="AnjutaDocumentManager" orientation="vertical" locked="no"/><item name="AnjutaDevhelpDisplay" orientation="vertical" locked="no"/><item name="AnjutaTerminal" orientation="vertical" locked="no"/></notebook><paned orientation="vertical" locked="no" position="336"><notebook orientation="vertical" locked="no" page="0"><item name="AnjutaProjectManager" orientation="vertical" locked="no"/><item name="AnjutaFileManager" orientation="vertical" locked="no"/></notebook><notebook orientation="vertical" locked="no" page="1"><item name="AnjutaDevhelpIndex" orientation="vertical" locked="no"/><item name="AnjutaSymbolDB" orientation="vertical" locked="no"/></notebook></paned></paned></dock></layout></dock-layout>
+<dock-layout><layout name="__default__"><dock name="__dock_1" floating="no" width="-1" height="-1" floatx="0" floaty="0"><paned orientation="horizontal" locked="no" position="1008"><notebook orientation="vertical" locked="no" page="0"><item name="AnjutaDocumentManager" orientation="vertical" locked="no"/><item name="AnjutaDevhelpDisplay" orientation="vertical" locked="no"/><item name="AnjutaTerminal" orientation="vertical" locked="no"/></notebook><paned orientation="vertical" locked="no" position="336"><notebook orientation="vertical" locked="no" page="1"><item name="AnjutaProjectManager" orientation="vertical" locked="no"/><item name="AnjutaFileManager" orientation="vertical" locked="no"/></notebook><notebook orientation="vertical" locked="no" page="1"><item name="AnjutaDevhelpIndex" orientation="vertical" locked="no"/><item name="AnjutaSymbolDB" orientation="vertical" locked="no"/></notebook></paned></paned></dock></layout></dock-layout>
return ret;
}
+GDateTime
+*solipa_gdate_to_gdatetime (GDate *gdate)
+{
+ GDateTime *ret;
+
+ ret = NULL;
+ if (g_date_valid (gdate))
+ {
+ ret = g_date_time_new_local (g_date_get_year (gdate),
+ g_date_get_month (gdate),
+ g_date_get_day (gdate),
+ 0, 0, 0.0);
+ }
+
+ return ret;
+}
+
+GDate
+*solipa_gdatetime_to_gdate (GDateTime *gdatetime)
+{
+ GDate *ret;
+
+ ret = g_new0 (GDate, 1);
+ g_date_set_year (ret, g_date_time_get_year (gdatetime));
+ g_date_set_month (ret, g_date_time_get_month (gdatetime));
+ g_date_set_day (ret, g_date_time_get_day_of_month (gdatetime));
+
+ return ret;
+}
+
const gchar
*solipa_tm_to_sql (struct tm *tm_data, const gchar *format)
{
const gchar *ret;
- gchar *_format;
ret = g_strdup ("NULL");
if (tm_data != NULL)
{
- ret = solipa_gdatetime_to_sql (solipa_tm_to_gdatetime (tm_data), _format);
+ ret = solipa_gdatetime_to_sql (solipa_tm_to_gdatetime (tm_data), format);
+ }
+
+ return ret;
+}
+
+
+const gchar
+*solipa_gdate_to_sql (GDate *gdate, const gchar *format)
+{
+ const gchar *ret;
+
+ ret = g_strdup ("NULL");
+
+ if (g_date_valid (gdate))
+ {
+ ret = solipa_gdatetime_to_sql (solipa_gdate_to_gdatetime (gdate), format);
}
return ret;
return ret;
}
+GDate
+*solipa_get_gdate_from_string (const gchar *string, const gchar *format)
+{
+ GDate *ret;
+
+ GDateTime *gdatetime;
+
+ gdatetime = solipa_get_gdatetime_from_string (string, format);
+
+ ret = solipa_gdatetime_to_gdate (gdatetime);
+}
+
GDateTime
*solipa_get_gdatetime_from_string (const gchar *string, const gchar *format)
{
}
}
+ g_strfreev (format_tokens);
+ g_strfreev (str_tokens);
g_free (delimiters);
g_free (new_format);
g_free (new_str);
return ret;
}
+gchar
+*solipa_gdate_format (GDate *gdate, const gchar *format)
+{
+ gchar *ret;
+
+ if (g_date_valid (gdate)) return "";
+
+ ret = solipa_gdatetime_format (solipa_gdate_to_gdatetime (gdate), format);
+
+ return ret;
+}
+
gchar
*solipa_gdatetime_format (GDateTime *gdatetime, const gchar *format)
{
GDateTime *solipa_tm_to_gdatetime (struct tm *tm_data);
struct tm *solipa_gdatetime_to_tm (GDateTime *gdatetime);
+GDateTime *solipa_gdate_to_gdatetime (GDate *gdate);
+GDate *solipa_gdatetime_to_gdate (GDateTime *gdatetime);
+
const gchar *solipa_tm_to_sql (struct tm *tm_data, const gchar *format);
+const gchar *solipa_gdate_to_sql (GDate *gdate, const gchar *format);
const gchar *solipa_gdatetime_to_sql (GDateTime *gdatetime, const gchar *format);
+GDate *solipa_get_gdate_from_string (const gchar *string, const gchar *format);
GDateTime *solipa_get_gdatetime_from_string (const gchar *string, const gchar *format);
+gchar *solipa_gdate_format (GDate *gdate, const gchar *format);
gchar *solipa_gdatetime_format (GDateTime *gdatetime, const gchar *format);
gdouble solipa_round (gdouble value, guint n_decimals);