32 #ifndef TBX_FILEINFO_H_
33 #define TBX_FILEINFO_H_
35 #include "showfullobject.h"
43 class AboutToBeShownListener;
44 class HasBeenHiddenListener;
58 enum { TOOLBOX_CLASS = 0x82ac0 };
void title(std::string name)
Set the title.
Definition: fileinfo.h:206
ObjectId _handle
Handle for toolbox object.
Definition: object.h:173
Class for FileInfo object template.
Definition: resfileinfo.h:38
void file_type(int file_type)
Set the file type.
Definition: fileinfo.h:160
bool operator!=(const Object &other) const
Check if this FileInfo does not refers to the same underlying toolbox object as another.
Definition: fileinfo.h:138
void add_has_been_hidden_listener(HasBeenHiddenListener *listener)
This event is raised after the FileInfo dialog has been completed.
Definition: fileinfo.cc:91
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:76
int file_type() const
Get the file type.
Definition: fileinfo.h:165
void check_toolbox_class(int class_id) const
Check if this objects toolbox class is as specified.
Definition: object.cc:122
FileInfo(const FileInfo &other)
Construct a FileInfo from another FileInfo.
Definition: fileinfo.h:74
FileInfo(const Object &other)
Construct a FileInfo from an Object that refers to a FileInfo.
Definition: fileinfo.h:85
FileInfo()
Construct creates an unassigned FileInfo.
Definition: fileinfo.h:65
int string_property_length(int property_id) const
Gets the size of a string properties buffer.
Definition: object.cc:530
void file_size(int size)
Set the file size.
Definition: fileinfo.h:186
bool modified() const
Read modified flag from dialogue box.
Definition: fileinfo.h:155
FileInfo(const std::string &template_name)
Create a FileInfo from the named template.
Definition: fileinfo.h:93
FileInfo & operator=(const Object &other)
Assign this FileInfo from an Object that refers to a FileInfo.
Definition: fileinfo.h:122
void add_about_to_be_shown_listener(AboutToBeShownListener *listener)
This event is raised just before the FileInfo underlying window is about to be shown.
Definition: fileinfo.cc:75
UTCTime date() const
Get the date.
Definition: fileinfo.cc:59
FileInfo & operator=(const FileInfo &other)
Assign this FileInfo from another.
Definition: fileinfo.h:110
void modified(bool value)
Set to indicate the file has been modified.
Definition: fileinfo.h:150
int int_property(int property_id) const
Return the value of a property that returns an integer.
Definition: object.cc:435
std::string string_property(int property_id) const
Return the value of a property that returns text.
Definition: object.cc:477
bool operator==(const Object &other) const
Check if this FileInfo refers to the same underlying toolbox object as another.
Definition: fileinfo.h:130
void remove_has_been_hidden_listener(HasBeenHiddenListener *listener)
Remove has been hidden listener.
Definition: fileinfo.cc:99
bool bool_property(int property_id) const
Get a boolean property from the toolbox Cobject.
Definition: object.cc:553
unsigned int ObjectId
Type for underlying toolbox object id.
Definition: handles.h:31
void remove_about_to_be_shown_listener(AboutToBeShownListener *listener)
Remove about to be shown listener.
Definition: fileinfo.cc:83
void file_name(std::string name)
Set the file name.
Definition: fileinfo.h:171
int file_name_length() const
Return the length of the file name.
Definition: fileinfo.h:181
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
The Window object represents a toolbox window.
Definition: window.h:69
Class to handle the 5 byte times.
Definition: path.h:51
int file_size() const
Get the file size.
Definition: fileinfo.h:191
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
std::string title() const
Return the title.
Definition: fileinfo.h:211
Window window() const
Return the underlying toolbox window used to implement the FileInfo object.
Definition: fileinfo.h:145
Objects derived from this class can be shown with there full location and size specified as well as t...
Definition: showfullobject.h:40
Class to manipulate a toolbox object.
Definition: object.h:50
Class to show a toolbox FileInfo object.
Definition: fileinfo.h:55
std::string file_name() const
Return the file name.
Definition: fileinfo.h:176
int title_length() const
Return the length of the title.
Definition: fileinfo.h:216