[tasque/transition: 172/213] [SQLite] Add Preferences widget
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 172/213] [SQLite] Add Preferences widget
- Date: Wed, 29 Aug 2012 18:48:29 +0000 (UTC)
commit 6f6fce7d790071ffd3be7dcefc72dca84e64529d
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Aug 18 23:43:17 2012 +0200
[SQLite] Add Preferences widget
src/Addins/SqliteBackend/Gtk/SqlitePreferences.cs | 41 +++++++++++++++++++++
src/Addins/SqliteBackend/SqliteBackend.csproj | 4 ++
2 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/src/Addins/SqliteBackend/Gtk/SqlitePreferences.cs b/src/Addins/SqliteBackend/Gtk/SqlitePreferences.cs
new file mode 100644
index 0000000..0e3bcb8
--- /dev/null
+++ b/src/Addins/SqliteBackend/Gtk/SqlitePreferences.cs
@@ -0,0 +1,41 @@
+//
+// SqlitePreferences.cs
+//
+// Author:
+// Antonius Riha <antoniusriha gmail com>
+//
+// Copyright (c) 2012 Antonius Riha
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using Mono.Unix;
+using Gtk;
+using Tasque;
+
+namespace Tasque.Backends.SqliteBackend.Gtk
+{
+ public class SqlitePreferences : Box, IBackendPreferences
+ {
+ public SqlitePreferences () : base ()
+ {
+ var lbl = new Label (Catalog.GetString ("Local file requires no configuration."));
+ PackStart (lbl, true, true, 0);
+ ShowAll ();
+ }
+ }
+}
diff --git a/src/Addins/SqliteBackend/SqliteBackend.csproj b/src/Addins/SqliteBackend/SqliteBackend.csproj
index 51ec3fc..e05bc98 100644
--- a/src/Addins/SqliteBackend/SqliteBackend.csproj
+++ b/src/Addins/SqliteBackend/SqliteBackend.csproj
@@ -78,6 +78,7 @@
<Compile Include="SqliteCategory.cs" />
<Compile Include="SqliteNote.cs" />
<Compile Include="SqliteTask.cs" />
+ <Compile Include="Gtk\SqlitePreferences.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\libtasque\libtasque.csproj">
@@ -85,4 +86,7 @@
<Name>libtasque</Name>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <Folder Include="Gtk\" />
+ </ItemGroup>
</Project>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]