ServerDialog::ServerDialog(QWidget *parent) :QDialog(parent) { setWindowTitle(tr("Start server")); QLayout *left = createLeft(); QLayout *right = createRight(); QHBoxLayout *hlayout = new QHBoxLayout; hlayout->addLayout(left); hlayout->addLayout(right); QVBoxLayout *layout = new QVBoxLayout; layout->addLayout(hlayout); layout->addLayout(createButtonLayout()); setLayout(layout); }
Dashboard::Dashboard() :left_pixmap("image/system/dashboard-equip.png"), right_pixmap("image/system/dashboard-avatar.png"), selected(NULL), player(NULL), avatar(NULL), weapon(NULL), armor(NULL), defensive_horse(NULL), offensive_horse(NULL), view_as_skill(NULL), filter(NULL) { createLeft(); createMiddle(); createRight(); int left_width = left_pixmap.width(); int middle_width = middle->rect().width(); int right_width = right->rect().width(); min_width = left_width + middle_width + right_width; setMiddleWidth(middle_width); sort_type = 0; }
Dashboard::Dashboard() :left_pixmap(QString("%1/dashboard-equip.png").arg(Config.SkinPath)), right_pixmap(QString("%1/dashboard-avatar.png").arg(Config.SkinPath)), selected(NULL), avatar(NULL), weapon(NULL), armor(NULL), defensive_horse(NULL), offensive_horse(NULL),relic(NULL), //modify by ce add view_as_skill(NULL), filter(NULL) { createLeft(); createMiddle(); createRight(); death_item = NULL; int left_width = left_pixmap.width(); int middle_width = middle->rect().width(); int right_width = right->rect().width(); min_width = left_width + middle_width + right_width; setMiddleWidth(middle_width); sort_type = 0; }
Dashboard::Dashboard(QGraphicsItem *button_widget) :left_pixmap("image/system/dashboard-equip.png"), right_pixmap("image/system/dashboard-avatar.png"), button_widget(button_widget), selected(NULL), avatar(NULL), weapon(NULL), armor(NULL), defensive_horse(NULL), offensive_horse(NULL), view_as_skill(NULL), filter(NULL) { createLeft(); createMiddle(); createRight(); death_item = NULL; if(button_widget) button_widget->setParentItem(this); int middle_width = middle->rect().width(); setMiddleWidth(middle_width); sort_type = 0; animations = new EffectAnimation(); }