libcdos-fw
CFPlacesSidebar类 参考
+ 类 CFPlacesSidebar 继承关系图:

Public 成员函数

void addShortcut (const Glib::RefPtr< Gio::File > &location)
 添加某些对用户有用的文件夹到侧边栏 更多...
 
 CFPlacesSidebar ()
 默认构造函数.
 
Glib::RefPtr< Gio::File > getLocation ()
 获取 CFPlacesSidebar 的当前选中地址 更多...
 
CFPlacesOpenFlags getOpenFlags ()
 获取 CFPlacesSidebar 的设置位置打开方式 更多...
 
bool getShowConnectToServer ()
 获取 CFPlacesSidebar 是否显示链接网络服务器 更多...
 
bool getShowDesktop ()
 获取 CFPlacesSidebar 的是否有桌面文件夹显示 更多...
 
std::vector< Glib::RefPtr< Gio::File > > listShortcuts ()
 获取 CFPlacesSidebar 的快捷方式列表 更多...
 
void removeShortcut (const Glib::RefPtr< Gio::File > &location)
 从侧边栏中移除快捷方式 更多...
 
void setLocation (Glib::RefPtr< Gio::File > &file)
 获取 CFPlacesSidebar 的地址 更多...
 
void setOpenFlags (CFPlacesOpenFlags flags=CFPLACES_OPEN_NORMAL)
 设置 CFPlacesSidebar 的位置打开方式 更多...
 
void setShowConnectToServer (bool show_connect_to_server=true)
 设置 CFPlacesSidebar 是否显示一个链接网络服务器,默认是关闭的。 更多...
 
void setShowDesktop (bool show_desktop=true)
 设置 CFPlacesSidebar 是否在侧边栏显示一个桌面文件夹 更多...
 
sigc::signal< int, int > signalDragActionAsk ()
 槽函数类型:
bool on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< int, const Glib::RefPtr< Gdk::DragContext > &, const Glib::RefPtr< Gio::File > &, const std::vector< Glib::RefPtr< Gio::File > > & > signalDragActionRequested ()
 槽函数类型:
int on_my_drag_action_requested( const Glib::RefPtr<Gdk::DragContext>& context, const Glib::RefPtr<Gio::File>& dest_file, const std::vector<Glib::RefPtr<Gio::File> >& source_file_list) 更多...
 
sigc::signal< void, const Glib::RefPtr< Gio::File > &, const std::vector< Glib::RefPtr< Gio::File > > &, int > signalDragPerformDrop ()
 槽函数类型:
void on_my_drag_perform_drop( const Glib::RefPtr<Gio::File>& dest_file, const std::vector< Glib::RefPtr<Gio::File> >& source_file_list, int action) 更多...
 
sigc::signal< void, const Glib::RefPtr< Gio::MountOperation > & > signalMount ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void, const Glib::RefPtr< Gio::File > &, CFPlacesOpenFlagssignalOpenLocation ()
 槽函数类型:
int on_my_drag_action_ask(int actions) 更多...
 
sigc::signal< void, CFMenu *, const Glib::RefPtr< Gio::File > &, const Glib::RefPtr< Gio::Volume > & > signalPolulatePopup ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void > signalShowConnectToServer ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void > signalShowEnterLocation ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void, const Glib::ustring &, const Glib::ustring & > signalShowErrorMessage ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void > signalShowOtherLocations ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void, CFPlacesOpenFlagssignalShowOtherLocationsWithFlags ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
sigc::signal< void, const Glib::RefPtr< Gio::MountOperation > & > signalUnmount ()
 槽函数类型:
void on_my_xx(CFPlacesSidebar param1); 更多...
 
virtual ~CFPlacesSidebar ()
 析构函数. 更多...
 
- Public 成员函数 继承自 CFScrolledView
void add (CFWidget &widget)
 
bool getCaptureButtonPress ()
 
bool getKineticScrolling ()
 
int getMaxContentHeight ()
 
int getMaxContentWidth ()
 
int getMinContentHeight ()
 
int getMinContentWidth ()
 
bool getOverlayScrolling ()
 
CFCornerType getPlacement ()
 
void getPolicy (CFPolicyType &hscrollbar_pollcy, CFPolicyType &vscrollbar_pollcy)
 
bool getPropagateNaturalHeight ()
 
bool getPropagateNaturalWidth ()
 
CFShadowType getShadowType ()
 
CFScrollbargetVscrollbar ()
 
void removeWithViewport ()
 
void setCaptureButtonPress (bool capture_button_press)
 
CFScrollbarsetHscrollbar ()
 
void setKineticScrolling (bool kinetic_scrolling=true)
 
void setMaxContentHeight (int height)
 
void setMaxContentWidth (int width)
 
void setMinContentHeight (int height)
 
void setMinContentWidth (int width)
 
void setOverlayScrolling (bool overlay_scrolling)
 
void setPlacement (CFCornerType window_placement)
 
void setPolicy (CFPolicyType hscrollbar_pollcy, CFPolicyType vscrollbar_pollcy)
 
void setPropagateNaturalHeight (bool propagate=true)
 
void setPropagateNaturalWidth (bool propagate=true)
 
void setShadowType (CFShadowType type)
 
sigc::signal< void, CFPositionTypesignalEdgeOvershot ()
 
sigc::signal< void, CFPositionTypesignalEdgeReached ()
 
void unsetPlacement ()
 
- Public 成员函数 继承自 CFContainer
virtual void addCssStyleData (const Glib::ustring &data, CFUInt priority)
 
virtual void addCssStylePath (const Glib::ustring &path, CFUInt priority)
 
void forall (ForeachSlot slot)
 
void foreach (ForeachSlot slot)
 
bool isContainer ()
 判断控件是否为容器。 更多...
 
virtual void remove (CFWidget &widget)
 
- Public 成员函数 继承自 CFWidget
void addEvents (Gdk::EventMask events)
 将 events 位字段添加到控件的事件监听掩码中。 更多...
 
int getAllocatedHeight ()
 返回当前给控件分配的高度。 更多...
 
int getAllocatedWidth ()
 返回当前给控件分配的宽度。 更多...
 
bool getCanFocus ()
 获取控件是否可以拥有输入焦点。 更多...
 
CFAlign getHalign ()
 获取横向对齐方式。 更多...
 
bool getHasTooltip ()
 获取是否使用提示信息。 更多...
 
int getMarginBottom ()
 获取控件的下边距 更多...
 
int getMarginLeft ()
 获取控件的左边距 更多...
 
int getMarginRight ()
 获取控件的右边距 更多...
 
int getMarginTop ()
 获取控件的上边距 更多...
 
bool getSensitive ()
 获取控件可用状态 更多...
 
Glib::ustring getTooltipMarkup ()
 获取当前控件提示信息的内容。 更多...
 
Glib::ustring getTooltipText ()
 获取当前控件提示信息的内容。 更多...
 
CFAlign getValign ()
 获取纵向对齐方式。 更多...
 
bool getVisible ()
 判断本控件是否为可见状态。 更多...
 
void grabFocus ()
 控件获取键盘输入焦点。 更多...
 
bool hasFocus ()
 判断控件是否拥有全局输入焦点。 更多...
 
void hide ()
 隐藏控件 更多...
 
bool isFocus ()
 判断控件是否当前拥有焦点的控件。 更多...
 
bool isSensitive ()
 获取控件及其所在容器控件的可用状态 更多...
 
bool isVisible ()
 判断本控件以及控件所在容器(直到顶层容器)是否为可见状态。 更多...
 
void queueDraw ()
 请求重新描画控件 更多...
 
void queueDrawArea (int x, int y, int width, int height)
 请求重新描画的指定区域 更多...
 
void reparent (CFWidget &new_parent)
 将控件从当前的容器中移动到 newParent 指定的容器中。 更多...
 
void setCanFocus (bool can_focus=true)
 指定控件是否可以获取输入焦点。 更多...
 
void setEvents (Gdk::EventMask events)
 设置控件的事件监听掩码。 更多...
 
void setHalign (CFAlign align)
 设置控件横向对齐方式。 更多...
 
void setHasTooltip (bool has_tooltip=true)
 设置是否使用提示信息。 更多...
 
void setMarginBottom (int margin)
 设置控件的下边距 更多...
 
void setMarginLeft (int margin)
 设置控件的左边距 更多...
 
void setMarginRight (int margin)
 设置控件的右边距 更多...
 
void setMarginTop (int margin)
 设置控件的上边距 更多...
 
void setName (const Glib::ustring &name)
 设置控件的名称,以便于使用CSS文件来控制样式。 更多...
 
void setSensitive (bool sensitive=true)
 设置控件是否可用。 更多...
 
void setSizeRequest (int width=-1, int height=-1)
 设置控件的最小尺寸。 更多...
 
void setTooltipMarkup (const Glib::ustring &markup)
 设置提示信息的内容。 更多...
 
void setTooltipText (const Glib::ustring &text)
 设置提示信息的内容。 更多...
 
void setValign (CFAlign align)
 设置控件纵向对齐方式。 更多...
 
void setVisible (bool visible=true)
 设置控件的可见状态。 更多...
 
void show ()
 显示控件。 更多...
 
void showAll ()
 显示控件以及控件所容纳的所有控件(包括所容纳容器控件的所有子控件) 更多...
 
virtual ~CFWidget ()
 析构函数 更多...
 
virtual void addCssStyleName (const Glib::ustring &name)
 
virtual void addCssStyleFromPath (const Glib::ustring &css_file_path, const Glib::ustring &name, CFUInt priority)
 通过自定义css样式文件路径设置样式 更多...
 
virtual void listCssStyle ()
 查看样式列表 更多...
 
virtual std::vector< Glib::ustring > getCssStyleVector ()
 获取控件样式列表 更多...
 
virtual void removeCssStyle (const Glib::ustring &name)
 通过样式名移除样式 更多...
 
Glib::RefPtr< Gdk::Window > getWindow ()
 
sigc::signal< bool, const ::Cairo::RefPtr< ::Cairo::Context > &> signalDraw ()
 
sigc::signal< bool, GdkEvent *> signalEvent ()
 
sigc::signal< bool, GdkEventButton *> signalButtonPressEvent ()
 
sigc::signal< bool, GdkEventButton *> signalButtonReleaseEvent ()
 
sigc::signal< bool, GdkEventAny *> signalDeleteEvent ()
 
sigc::signal< bool, GdkEventKey *> signalKeyPressEvent ()
 
sigc::signal< bool, GdkEventKey *> signalKeyReleaseEvent ()
 
sigc::signal< void > signalShow ()
 
- Public 成员函数 继承自 CFObject
void * getObj ()
 获取支持库类实例所绑定的对象实例。 更多...
 
virtual ~CFObject ()
 析构函数。 更多...
 

Protected 成员函数

int onDragActionAsk (int actions)
 
int onDragActionRequestd (const Glib::RefPtr< Gdk::DragContext > &context, const Glib::RefPtr< Gio::File > &dest_file, const std::vector< Glib::RefPtr< Gio::File >> &source_file_list)
 
void onDragPerformDrop (const Glib::RefPtr< Gio::File > &dest_file, const std::vector< Glib::RefPtr< Gio::File >> &source_file_list, int action)
 
void onMount (const Glib::RefPtr< Gio::MountOperation > &mount_operation)
 
virtual void onRealObjectFinalize ()
 对象解除绑定前的回调函数。 更多...
 
virtual void onRealObjectInit ()
 对象绑定后进行初始化的回调函数。 更多...
 
void onShowConnectToServer ()
 
void onShowEnterLocation ()
 
void onShowErrorMessage (const Glib::ustring &primary, const Glib::ustring &secondary)
 
void onShowOtherLocations ()
 
void onUnmount (const Glib::RefPtr< Gio::MountOperation > &mount_operation)
 
- Protected 成员函数 继承自 CFBin
 CFBin ()
 构造函数. 更多...
 
- Protected 成员函数 继承自 CFContainer
void onApplyCssData (CFWidget *widget)
 
void onApplyCssPath (CFWidget *widget)
 
- Protected 成员函数 继承自 CFWidget
virtual bool onDraw (const ::Cairo::RefPtr< ::Cairo::Context > &cr)
 
virtual bool onEvent (GdkEvent *event)
 
virtual bool onButtonPressEvent (GdkEventButton *event)
 
virtual bool onButtonReleaseEvent (GdkEventButton *event)
 
virtual bool onDeleteEvent (GdkEventAny *event)
 
virtual bool onKeyPressEvent (GdkEventKey *event)
 
virtual bool onKeyReleaseEvent (GdkEventKey *event)
 
virtual void onShow ()
 
 CFWidget ()
 
- Protected 成员函数 继承自 CFObject
 CFObject ()
 构造函数 更多...
 
void setRealObject (void *obj)
 将自身实例与需要使用的对象实例进行绑定。 更多...
 

额外继承的成员函数

- Public 类型 继承自 CFContainer
typedef sigc::slot< void, CFWidget * > ForeachSlot
 
- 静态 Public 成员函数 继承自 CFObject
static CFObjectgetCFObject (void *realObj)
 通过对象实例获取所对应的 CFObject的子类对象实例。 更多...
 

构造及析构函数说明

§ ~CFPlacesSidebar()

virtual CFPlacesSidebar::~CFPlacesSidebar ( )
virtual

析构函数.

CFPlacesSidebar 被销毁时会被自动调用。 在析构函数中进行内存释放等操作。

成员函数说明

§ addShortcut()

void CFPlacesSidebar::addShortcut ( const Glib::RefPtr< Gio::File > &  location)

添加某些对用户有用的文件夹到侧边栏

参数
[in]location要添加的快捷方式

§ getLocation()

Glib::RefPtr<Gio::File> CFPlacesSidebar::getLocation ( )

获取 CFPlacesSidebar 的当前选中地址

返回
返回选中地址的 GFile, 或者在没有可见的选中时,返回 nullptr

§ getOpenFlags()

CFPlacesOpenFlags CFPlacesSidebar::getOpenFlags ( )

获取 CFPlacesSidebar 的设置位置打开方式

返回
返回打开方式

§ getShowConnectToServer()

bool CFPlacesSidebar::getShowConnectToServer ( )

获取 CFPlacesSidebar 是否显示链接网络服务器

弃用:
建议将此功能与新的“其他位置”项下的驱动器和网络位置分组。
返回
侧边栏显示链接服务器,返回true

§ getShowDesktop()

bool CFPlacesSidebar::getShowDesktop ( )

获取 CFPlacesSidebar 的是否有桌面文件夹显示

返回
返回 CFPlacesSidebar 的桌面文件夹的显示状态

§ listShortcuts()

std::vector<Glib::RefPtr<Gio::File> > CFPlacesSidebar::listShortcuts ( )

获取 CFPlacesSidebar 的快捷方式列表

返回
返回 CFPlacesSidebar 快捷方式的一个SList。如果这个地址不是一个 快捷方式,就什么都不做。

§ onRealObjectFinalize()

virtual void CFPlacesSidebar::onRealObjectFinalize ( )
protectedvirtual

对象解除绑定前的回调函数。

若需要在类实例解除绑定前, 对使用类进行信号解除绑定或其它必要操作时,需要重写父类的 onRealObjectFinalize() 函数,
在子类继承并重写父类的 onRealObjectFinalize() 函数时,请在该函数返回前调用父类的 onRealObjectFinalize() 函数,以便
父类进行必要的操作。

重载 CFScrolledView .

§ onRealObjectInit()

virtual void CFPlacesSidebar::onRealObjectInit ( )
protectedvirtual

对象绑定后进行初始化的回调函数。

在使用 setRealObject() 绑定对象实例后, 本回调函数即会被调用,
若需要在类实例绑定后, 对使用类进行信号绑定或其它必要操作时,需要重写父类的 onRealObjectInit() 函数,
在子类继承并重写父类的 onRealObjectInit() 函数时,请在其内部调用父类的 onRealObjectInit() 函数,以便
父类进行必要的操作。

重载 CFScrolledView .

§ removeShortcut()

void CFPlacesSidebar::removeShortcut ( const Glib::RefPtr< Gio::File > &  location)

从侧边栏中移除快捷方式

参数
[in]location快捷方式的路径

§ setLocation()

void CFPlacesSidebar::setLocation ( Glib::RefPtr< Gio::File > &  file)

获取 CFPlacesSidebar 的地址

设置在侧边栏周围的窗口小部件中显示的位置,例如,在文件管理器中的文件夹视图中。 相反的,如果它在地点列表中显示,侧边栏将突出显示该位置;如果该位置不在列表中的 位置之间,它将取消高亮显示。

§ setOpenFlags()

void CFPlacesSidebar::setOpenFlags ( CFPlacesOpenFlags  flags = CFPLACES_OPEN_NORMAL)

设置 CFPlacesSidebar 的位置打开方式

参数
[in]flags位置打开方式

§ setShowConnectToServer()

void CFPlacesSidebar::setShowConnectToServer ( bool  show_connect_to_server = true)

设置 CFPlacesSidebar 是否显示一个链接网络服务器,默认是关闭的。

弃用:
建议将此功能与新的“其他位置”项下的驱动器和网络位置分组。
参数
[in]show_connect_to_server是否显示链接服务器的项

§ setShowDesktop()

void CFPlacesSidebar::setShowDesktop ( bool  show_desktop = true)

设置 CFPlacesSidebar 是否在侧边栏显示一个桌面文件夹

参数
[in]show_desktop是否在侧边栏显示一个桌面文件夹

§ signalDragActionAsk()

sigc::signal<int, int> CFPlacesSidebar::signalDragActionAsk ( )

槽函数类型:
bool on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text
返回
more_text

§ signalDragActionRequested()

sigc::signal<int, const Glib::RefPtr<Gdk::DragContext>&, const Glib::RefPtr<Gio::File>&, const std::vector<Glib::RefPtr<Gio::File> >&> CFPlacesSidebar::signalDragActionRequested ( )

槽函数类型:
int on_my_drag_action_requested( const Glib::RefPtr<Gdk::DragContext>& context, const Glib::RefPtr<Gio::File>& dest_file, const std::vector<Glib::RefPtr<Gio::File> >& source_file_list)

参数
[in]context带有拖拽信息的Gdk::DragContext
[in]dest_file目标文件按
[in]source_file_list被拖拽的源文件列表
返回
more_text

§ signalDragPerformDrop()

sigc::signal<void, const Glib::RefPtr<Gio::File>&, const std::vector<Glib::RefPtr<Gio::File> >&, int> CFPlacesSidebar::signalDragPerformDrop ( )

槽函数类型:
void on_my_drag_perform_drop( const Glib::RefPtr<Gio::File>& dest_file, const std::vector< Glib::RefPtr<Gio::File> >& source_file_list, int action)

当用户完成拖放操作并且侧边栏的项目之一是目标时,位置侧边栏会发出此信号。 这个项目在dest_file中,source_file_list有被删除的文件列表,应该被复制/移动等。 基于指定的action。

参数
[in]dest_file目标文件
[in]source_file_list丢弃的文件列表
[in]action指定的动作

§ signalMount()

sigc::signal<void, const Glib::RefPtr<Gio::MountOperation>&> CFPlacesSidebar::signalMount ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

§ signalOpenLocation()

sigc::signal<void, const Glib::RefPtr<Gio::File>&, CFPlacesOpenFlags> CFPlacesSidebar::signalOpenLocation ( )

槽函数类型:
int on_my_drag_action_ask(int actions)

当需要请求应用程序弹出菜单以询问用户执行哪个拖动操作时,位置边栏会发出此信号。

参数
[in]actions需要被询问的可能拖拽动作
返回
侧边栏应该传递到拖放侧的最终拖放动作

§ signalPolulatePopup()

sigc::signal<void, CFMenu*, const Glib::RefPtr<Gio::File>&, const Glib::RefPtr<Gio::Volume>&> CFPlacesSidebar::signalPolulatePopup ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

§ signalShowConnectToServer()

sigc::signal<void> CFPlacesSidebar::signalShowConnectToServer ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

§ signalShowEnterLocation()

sigc::signal<void> CFPlacesSidebar::signalShowEnterLocation ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

§ signalShowErrorMessage()

sigc::signal<void, const Glib::ustring&, const Glib::ustring&> CFPlacesSidebar::signalShowErrorMessage ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

§ signalShowOtherLocations()

sigc::signal<void> CFPlacesSidebar::signalShowOtherLocations ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

§ signalShowOtherLocationsWithFlags()

sigc::signal<void, CFPlacesOpenFlags> CFPlacesSidebar::signalShowOtherLocationsWithFlags ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

§ signalUnmount()

sigc::signal<void, const Glib::RefPtr<Gio::MountOperation>&> CFPlacesSidebar::signalUnmount ( )

槽函数类型:
void on_my_xx(CFPlacesSidebar param1);

参数
[in]param1more_text

该类的文档由以下文件生成: