initial work on notes, disabled all non-working buttons

This commit is contained in:
Lynne Megido 2020-09-04 21:59:54 +10:00
parent f34f4d9556
commit 5aff6cacb4
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
2 changed files with 38 additions and 0 deletions

View file

@ -28,6 +28,7 @@ namespace Buypeeb {
public int price = 0; public int price = 0;
public int winPrice; public int winPrice;
public string originalName { get; set; } public string originalName { get; set; }
public string notes { get; set; }
public bool favourite { get; set; } = false; public bool favourite { get; set; } = false;
public DateTime startDate; public DateTime startDate;
public DateTime endDate; public DateTime endDate;

View file

@ -2,6 +2,7 @@
<!-- Generated with glade 3.22.2 --> <!-- Generated with glade 3.22.2 -->
<interface> <interface>
<requires lib="gtk+" version="3.22"/> <requires lib="gtk+" version="3.22"/>
<object class="GtkTextBuffer" id="TextBufferSelectedNotes"/>
<object class="GtkWindow" id="wndMain"> <object class="GtkWindow" id="wndMain">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="default_width">700</property> <property name="default_width">700</property>
@ -72,6 +73,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Undo</property> <property name="tooltip_text" translatable="yes">Undo</property>
<property name="label" translatable="yes">Undo</property> <property name="label" translatable="yes">Undo</property>
@ -87,6 +89,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Redo</property> <property name="tooltip_text" translatable="yes">Redo</property>
<property name="label" translatable="yes">Redo</property> <property name="label" translatable="yes">Redo</property>
@ -112,6 +115,7 @@
<child> <child>
<object class="GtkToolButton" id="ButtonClearEnded"> <object class="GtkToolButton" id="ButtonClearEnded">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Clear ended</property> <property name="tooltip_text" translatable="yes">Clear ended</property>
<property name="label" translatable="yes">Clear ended</property> <property name="label" translatable="yes">Clear ended</property>
@ -152,6 +156,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Open</property> <property name="tooltip_text" translatable="yes">Open</property>
<property name="label" translatable="yes">Open</property> <property name="label" translatable="yes">Open</property>
@ -167,6 +172,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Save</property> <property name="tooltip_text" translatable="yes">Save</property>
<property name="label" translatable="yes">Save</property> <property name="label" translatable="yes">Save</property>
@ -183,6 +189,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Export as...</property> <property name="tooltip_text" translatable="yes">Export as...</property>
<property name="label" translatable="yes">Export as...</property> <property name="label" translatable="yes">Export as...</property>
@ -208,6 +215,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Help</property> <property name="tooltip_text" translatable="yes">Help</property>
<property name="label" translatable="yes">Help</property> <property name="label" translatable="yes">Help</property>
@ -223,6 +231,7 @@
<child> <child>
<object class="GtkToolButton"> <object class="GtkToolButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Settings</property> <property name="tooltip_text" translatable="yes">Settings</property>
<property name="label" translatable="yes">Settings</property> <property name="label" translatable="yes">Settings</property>
@ -750,6 +759,34 @@
<property name="position">2</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkExpander">
<property name="can_focus">True</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<child>
<object class="GtkTextView">
<property name="height_request">100</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">word</property>
<property name="buffer">TextBufferSelectedNotes</property>
</object>
</child>
<child type="label">
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Notes</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">True</property>