You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

171 lines
12 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#include "puppet_cat.h"
#include "ui_puppet_cat.h"
#include "cat_book.h"
#include "puppet_cat_content.h"
#include "ui_puppet_cat_content.h"
Puppet_cat::Puppet_cat(QWidget *parent) :
QWidget(parent),
ui(new Ui::Puppet_cat)
{
ui->setupUi(this);
connect(this->ui->pushButton,SIGNAL(clicked(bool)),this,SLOT(button1()));
connect(this->ui->pushButton_2,SIGNAL(clicked(bool)),this,SLOT(button2()));
connect(this->ui->pushButton_3,SIGNAL(clicked(bool)),this,SLOT(button3()));
connect(this->ui->pushButton_4,SIGNAL(clicked(bool)),this,SLOT(button4()));
connect(this->ui->pushButton_5,SIGNAL(clicked(bool)),this,SLOT(button5()));
connect(this->ui->pushButton_6,SIGNAL(clicked(bool)),this,SLOT(button6()));
connect(this->ui->pushButton_7,SIGNAL(clicked(bool)),this,SLOT(button7()));
connect(this->ui->pushButton_8,SIGNAL(clicked(bool)),this,SLOT(button8()));
connect(this->ui->pushButton_9,SIGNAL(clicked(bool)),this,SLOT(button9()));
ui->pushButton->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_2->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_3->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_4->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_5->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_6->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_7->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_8->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
ui->pushButton_9->setStyleSheet("QPushButton{border-radius:5px;background:rgb(250,234,142);color:black;}");
}
Puppet_cat::~Puppet_cat()
{
delete ui;
}
void Puppet_cat::puppet_cat_set_background()
{
this->setWindowTitle("阅览界面-布偶猫");
// ui->label->setStyleSheet("background-color:red");//背景色
this->setMinimumSize(1280,720);
this->setMaximumSize(1280,720);
this->setAutoFillBackground(true);
QPalette palette;
QPixmap pixmap = QPixmap(":/image/背景_book.png").scaled(this->size());
palette.setBrush(QPalette::Window, QBrush(pixmap));
this->setPalette(palette);
}
void Puppet_cat::on_go_back_clicked()
{
Cat_book *go_back = new Cat_book;
go_back->cat_book_set_background();
go_back->show();
delete this;
}
void Puppet_cat::button1()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 布偶猫又称布拉多尔猫是猫中体形和体重较大的一种。布偶猫于1960年开始繁育1965年在美国获得认可。布偶猫头呈V形眼大而圆被毛丰厚四肢粗大身体柔软多为三色或双色猫。布偶猫全身非常松弛像软绵绵的布偶一样。它性格温顺、恬静对人非常友善对疼痛的忍受性相当强常被误认为缺乏疼痛感。它非常能容忍孩子的玩耍也因此被称为布偶猫是非常理想的家养宠物。"
"布偶猫是一个非常聪明的品种,它性情温顺、安详,爱交际,和其他猫或狗相处友好,叫声轻柔,感情丰富,有爱心,喜欢有人陪伴,对人非常友善,全身特别松弛、柔软,忍耐性强,非常能容忍人们的玩弄。"
"布偶猫喜欢讨好主人,总是形影不离地围着主人转。这种猫非常好静,但也爱玩玩具,并喜欢参与家中的日常生活。布偶猫异常温柔,缺乏保护自己的本能,因此必须作为宠物养在深闺,而不许出门\n");
go->show();
delete this;
}
void Puppet_cat::button2()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 尽管布偶猫是一个新品种它们的历史渊源却始终很不明朗。20世纪60年代加利福尼亚的培育者Ann Baker培育出了最早的布偶猫它们的父亲是只名叫Warbucks的雄性伯曼猫而母亲则是叫做Josephine的白色非纯种长毛猫。她说布偶猫被抱起来的时候就会全身“绵软”。随后Ann Baker成立了一个品种协会但那时的布偶猫还没有得到其他协会的承认。此后又有许多人培养出了布偶猫这才创造了如今被各大主流协会承认的布偶猫品种。布偶猫的成功应该归功于人们对安静的室内猫的需要。如今一些相似的品种正陆续被培养出来并且都有一个温馨的名字。");
go->show();
delete this;
}
void Puppet_cat::button3()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 它的祖先于20世纪60年代出生于美国加利福尼亚州。正如它的名字“布偶”一样它性格温和体表毛发丰厚属于体格较大的猫种成年公猫有的甚至将近10千克。");
go->show();
delete this;
}
void Puppet_cat::button4()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 布偶猫的体毛属于中长型,不会缠结在一起,质地柔滑如兔毛。它的尾巴蓬松,颈部通常带“围脖”,而臀部的体毛也比较长。定期梳理毛发会让布偶猫感到十分舒服。布偶猫是最漂亮的纯种猫之一,带有独特的单色点或双色点的毛。\n\n"
"布偶猫体形大身体长肌肉发达胸部宽颈粗而短发育期长幼猫要三年左右才能完全发育成熟。其特征是头大而呈楔形头顶扁平眼睛为深蓝色吻都呈圆形短鼻子上略有凹陷有的脸上有“V”型斑纹颈部被毛较长属毛长猫类。\n\n"
"布偶猫手套色前脚掌上好象戴着手套两只手套呈白色大小相似且不超出腿和脚掌形成的角度。后腿上白色靴子向上延伸至后脚踝关节整个身体下方由下巴至尾部也都是白色。布偶猫有三种颜色图案双色、手套和重点色。这些图案各分6种颜色海豹色、蓝色、巧克力色、淡紫色、红色和乳色。所有颜色均可在面部附加山猫纹。");
go->show();
delete this;
}
void Puppet_cat::button5()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 身形较大的布偶猫有着长而美丽的被毛,大而美丽的蓝色眼睛总是水汪汪的,犹如清澈的湖水。它全身特别松弛柔软,像软绵绵的布偶一样,而极强的忍耐性常被误认为缺乏疼痛感。因为性格温顺而恬静,它对人非常友善,那种温柔而甜美的叫声总让人忍不住想拥它入怀。");
go->show();
delete this;
}
void Puppet_cat::button6()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 布偶猫性格较为懒散、平和、友善,不会抵触被抱起来。");
go->show();
delete this;
}
void Puppet_cat::button7()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 布偶猫常常为了讨好主人而表现出超强的忍耐力,对疼痛的忍受性相当强,尤其值得一提的是,它们非常能容忍孩子的玩弄,所以得名布偶猫。正是因为它们拥有强大的“忍者”精神,所以它们能够适应各种家庭的饲养,就算家里的小孩子误踩到了它们的尾巴,它们也不会怒发冲冠,而是咬紧牙关,发出可怜兮兮的求救声,就算大人们在短时间内没有发现,它们也不会对家里的宝宝造成伤害。但主人们不要误认为它们缺乏疼痛感,它们只是很懂事,愿意为主人而忍耐。\n\n"
"布偶猫很是通人性,相比每天爬高上低、上蹿下跳,它们更愿意去跟人打交道,尤其喜欢陪着主人散心。在清洁方面,布偶猫也是尽可能的不劳自己的主人动手,它很能理解主人的生活节奏,能够自己做到的就会自己做。所以说,大多数的布偶猫都不用人们给它做刻意的清洁,它们举止优雅,很少因为调皮或是打闹而掉毛,总是把自己的毛发保持的干干净净。\n");
go->show();
delete this;
}
void Puppet_cat::button8()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 刺激性食物。如胡椒、芥末、辣油、香辛料等,这些食物会让猫的嗅觉迟钝。\n\n"
"高脂肪食物。高油脂食物,甜的食物。如蛋糕、炸鸡、薯条等,易造成猫咪肥胖或疾病的发生,诸如脂肪肝、心包油等。\n\n"
"太冷和太热食物。因为猫咪的舌头是怕热的,身体会对太冷和太热的食物排斥。\n\n"
"动物内脏类食物。动物内脏中内含有对猫咪身体有益的维生素A但这种物质如吸收太多会对猫的骨节、肝脏等功能有损害。");
go->show();
delete this;
}
void Puppet_cat::button9()
{
Puppet_cat_content *go = new Puppet_cat_content;
go->set_background();
go->ui->textBrowser->setFontPointSize(20);
go->ui->textBrowser->setFontFamily("");
go->ui->textBrowser->setStyleSheet("background:transparent;border-width:0;border-style:outset");
go->ui->textBrowser->setText(" 布偶猫体型很大,但是这种猫的性格比较安静,很适应公寓生活。然而,虽然这种猫安静,却喜欢有人为伴,如果你没有很多时间陪伴它的话,那么你最好养两只,给它一个作伴的朋友。");
go->show();
delete this;
}