package Ġio . github . z wi eb ack . family finance . business . chart . fragment Ċ Ċ import Ġandroidx . annotation . Color Res Ċ import Ġandroidx . annotation . String Res Ċ import Ġio . github . z wi eb ack . family finance . R Ċ import Ġio . github . z wi eb ack . family finance . business . chart . dialog . Horizontal Bar Chart Display Dialog Ċ import Ġio . github . z wi eb ack . family finance . business . operation . dialog . Expense Operation Filter Dialog Ċ import Ġio . github . z wi eb ack . family finance . business . operation . filter . Expense Operation Filter Ċ import Ġio . github . z wi eb ack . family finance . business . operation . query . Expense Operation QueryBuilder Ċ import Ġio . github . z wi eb ack . family finance . core . model . Operation View Ċ import Ġio . github . z wi eb ack . family finance . extension . operation . filter . apply Preferences Ċ import Ġio . re query . query . Result Ċ Ċ class ĠHorizontal Bar Chart Of Exp enses Fragment Ġ: ĠHorizontal Bar Chart Fragment < Expense Operation Filter >() Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġfilter Name : ĠString ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠExp ense Operation Filter . EXP ENSE _ OPERATION _ FILTER ĊĊĠĠĠ Ġoverride Ġval ĠdataSet Label : ĠInt ĊĠĠĠĠĠĠĠ Ġ@ String Res ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠR . string . data _ set _ exp enses ĊĊĠĠĠ Ġoverride Ġval Ġdata SetColor : ĠInt ĊĠĠĠĠĠĠĠ Ġ@ Color Res ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠR . color . color Expense ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Default Filter () Ġ= ĠExp ense Operation Filter (). apply Ġ{ ĊĠĠĠĠĠĠĠ Ġapply Preferences ( this @ Horizontal Bar Chart Of Exp enses Fragment . require Context ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġbuild Operations (): ĠResult < Operation View > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠExp ense Operation QueryBuilder . create ( data ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with StartDate ( filter . startDate ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with EndDate ( filter . endDate ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Start Value ( filter . start Value ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with End Value ( filter . end Value ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with OwnerId ( filter . take OwnerId ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with To Wh om Id ( filter . take To Wh om Id ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Currency Id ( filter . take Currency Id ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Article Id ( filter . take Article Id ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with AccountId ( filter . take AccountId ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Apply Filter ( filter : ĠExp ense Operation Filter ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . filter Ġ= Ġfilter ĊĠĠĠĠĠĠĠ Ġthis . operation Converter Ġ= Ġdetermine Operation Converter () ĊĠĠĠĠĠĠĠ Ġrefresh Data () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow Filter Dialog () Ġ{ ĊĠĠĠĠĠĠĠ ĠExp ense Operation Filter Dialog ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. newInstance ( filter , ĠR . string . horizontal _ bar _ chart _ of _ exp enses _ filter _ title ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. show ( child FragmentManager , Ġ" Expense Operation Filter Dialog ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġshow Display Dialog () Ġ{ ĊĠĠĠĠĠĠĠ ĠHorizontal Bar Chart Display Dialog ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. newInstance ( display , ĠR . string . horizontal _ bar _ chart _ of _ exp enses _ display _ title ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. show ( child FragmentManager , Ġ" Horizontal Bar Chart Display Dialog ") ĊĠĠĠ Ġ} Ċ } Ċ