Пример #1
0
Файл: string7.c Проект: rioru/42
int					ft_puto(char **ptr, va_list *ap, t_format *f)
{
	unsigned int	i;
	int				w;
	int				p;

	set_space(ap, f);
	w = f->width;
	p = f->prec;
	i = va_arg(*ap, unsigned int);
	(*ptr)++;
	if (f->flags & 4)
		return (align_left(i, w, p, f));
	else
		return (align_right(i, w, p, f));
}
Пример #2
0
Файл: string8.c Проект: rioru/42
int					ft_putp(char **ptr, va_list *ap, t_format *f)
{
	unsigned long	l;
	int				p;
	int				w;

	set_space(ap, f);
	w = f->width;
	p = f->prec;
	l = va_arg(*ap, unsigned long);
	(*ptr)++;
	if (f->flags & 4)
		return (align_left(l, w, p, f));
	else
		return (align_right(l, w, p, f));
}
Пример #3
0
 inline auto align_left_bottom(Subject&& subject)
 {
    return align_left(align_bottom(std::forward<Subject>(subject)));
 }
Пример #4
0
 inline auto align_left_middle(Subject&& subject)
 {
    return align_left(align_middle(std::forward<Subject>(subject)));
 }
Пример #5
0
 inline auto align_left_top(Subject&& subject)
 {
    return align_left(align_top(std::forward<Subject>(subject)));
 }
Пример #6
0
  // separator before 6
  ,{QN("Set foreground color"), NULL, "icon-foreground-color.png", SLOT(foreground_color()), NA }
  ,{QN("Set background color"), NULL, "icon-background-color.png", SLOT(background_color()), NA }
  ,{QN("Insert image"), NULL, "icon-image.png", SLOT(insert_image()), NA }
  ,{QN("Insert link"), NULL, "icon-link.png", SLOT(insert_link()), NA }
  ,{QN("Insert horizontal rule"), NULL, "icon-hr.png", SLOT(insert_hr()), NA }
  ,{QN("Insert unordered list"), NULL, "icon-bullet-list.png", SLOT(insert_unordered_list()), NA }
  ,{QN("Insert ordered list"), NULL, "icon-ordered-list.png", SLOT(insert_ordered_list()), NA }
  ,{QN("Remove format"), NULL, "icon-eraser.png", SLOT(remove_format()), NA }
  ,{QN("Cut"), NULL, "icon-cut.png", NULL, QWebPage::Cut }
  ,{QN("Copy"), NULL, "icon-copy.png", NULL, QWebPage::Copy }
  ,{QN("Paste"), NULL, "icon-paste.png", NULL, QWebPage::Paste }
  ,{QN("Undo"), QN("Ctrl+Z"), "icon-undo.png", NULL, QWebPage::Undo }
  ,{QN("Redo"), NULL, "icon-redo.png", NULL, QWebPage::Redo }
  ,{QN("Align left"), NULL, "icon-align-left.png", SLOT(align_left()), NA }
  ,{QN("Justify"), NULL, "icon-justify.png", SLOT(justify()), NA }
  ,{QN("Align right"), NULL, "icon-align-right.png", SLOT(align_right()), NA }
  ,{QN("Center"), NULL, "icon-center.png", SLOT(center()), NA }
  ,{QN("Indent right"), NULL, "icon-indent-right.png", SLOT(indent_right()), NA }
  ,{QN("Indent left"), NULL, "icon-indent-left.png", SLOT(indent_left()), NA }

#undef NA
#undef QN
};

link_editor::link_editor(QWidget* parent): QDialog(parent)
{
  setWindowTitle(tr("Edit link"));
  QVBoxLayout* layout = new QVBoxLayout(this);
  QGridLayout* grid = new QGridLayout();